diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp index 4f6069085ea7046a866fa76e03a5b88b993cd5c7..1b320af2e5c07ccfe03b09d620c706f59062add1 100644 --- a/src/cluster/cluster.cpp +++ b/src/cluster/cluster.cpp @@ -317,12 +317,7 @@ void cluster(const string& config_file, const string& data_file, const string& o // do the first iteration on jxi488 separately, since it seems to be different from the others int jxi488 = 1; - // In the first iteration, if refinement is enabled, determine the number of refinement iterations required to arrive at the target accuracy (if achievable in a reasonable number of iterations) - cid->refinemode = 2; - // maxrefiters and accuracygoal should be configurable and preferably set somewhere else - cid->maxrefiters = 20; int initialmaxrefiters = cid->maxrefiters; - cid->accuracygoal = 1e-6; chrono::time_point start_iter_1 = chrono::high_resolution_clock::now(); #ifdef USE_NVTX nvtxRangePush("First iteration"); diff --git a/src/inclusion/inclusion.cpp b/src/inclusion/inclusion.cpp index 5d15de2a061c3a46cfa9ef19225a4b66f78191f9..8b01327cfc027683d4680e77303a0f9a3e48f889 100644 --- a/src/inclusion/inclusion.cpp +++ b/src/inclusion/inclusion.cpp @@ -302,6 +302,12 @@ InclusionIterationData::InclusionIterationData(GeometryConfiguration *gconf, Sca #else proc_device = 0; #endif + + // In the first iteration, if refinement is enabled, determine the number of refinement iterations required to arrive at the target accuracy (if achievable in a reasonable number of iterations) + refinemode = 2; + // maxrefiters and accuracygoal should be configurable and preferably set somewhere else + maxrefiters = 20; + accuracygoal = 1e-6; } InclusionIterationData::InclusionIterationData(const InclusionIterationData& rhs) { @@ -961,12 +967,7 @@ void inclusion(const string& config_file, const string& data_file, const string& // do the first iteration on jxi488 separately, since it seems to be different from the others int jxi488 = 1; - // In the first iteration, if refinement is enabled, determine the number of refinement iterations required to arrive at the target accuracy (if achievable in a reasonable number of iterations) - cid->refinemode = 2; - // maxrefiters and accuracygoal should be configurable and preferably set somewhere else - cid->maxrefiters = 20; int initialmaxrefiters = cid->maxrefiters; - cid->accuracygoal = 1e-6; chrono::time_point start_iter_1 = chrono::high_resolution_clock::now(); #ifdef USE_NVTX diff --git a/src/libnptm/Commons.cpp b/src/libnptm/Commons.cpp index eb0d5a9599546fb279c7bd7689d7d834cf417d7f..126ca007bacfdb2acbafaf3c1d2e32855b0a5da9 100644 --- a/src/libnptm/Commons.cpp +++ b/src/libnptm/Commons.cpp @@ -160,6 +160,12 @@ ClusterIterationData::ClusterIterationData(GeometryConfiguration *gconf, Scatter #else proc_device = 0; #endif + + // In the first iteration, if refinement is enabled, determine the number of refinement iterations required to arrive at the target accuracy (if achievable in a reasonable number of iterations) + refinemode = 2; + // maxrefiters and accuracygoal should be configurable and preferably set somewhere else + maxrefiters = 20; + accuracygoal = 1e-6; } ClusterIterationData::ClusterIterationData(const ClusterIterationData& rhs) {