Skip to content

Commit 87bcee0

Browse files
authored
Merge pull request #2552 from SCIInstitute/amorris/fix-2530-try2
Fix race condition in debug code
2 parents b9ebcdd + e1c7a14 commit 87bcee0

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Libs/Optimize/Function/SamplingFunction.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
#include "SamplingFunction.h"
33

4-
#include <set>
5-
64
#include "Libs/Common/Logging.h"
75
#include "Libs/Optimize/Domain/DomainType.h"
86
#include "vnl/vnl_vector_fixed.h"
@@ -267,14 +265,6 @@ SamplingFunction::VectorType SamplingFunction::evaluate(unsigned int idx, unsign
267265

268266
// Scale factor is proportional to surface area
269267
scale_factor = surface_area / reference_surface_area;
270-
271-
// Log once per domain using static set
272-
static std::set<int> logged_domains;
273-
if (logged_domains.find(d) == logged_domains.end()) {
274-
logged_domains.insert(d);
275-
SW_DEBUG("SamplingFunction: Auto scale for domain " + std::to_string(d) + ", surface_area = " +
276-
std::to_string(surface_area) + ", scale_factor = " + std::to_string(scale_factor));
277-
}
278268
}
279269

280270
// multiply by scaling value (whether auto is on or off)

0 commit comments

Comments
 (0)