Skip to content

Commit 2d8cb53

Browse files
committed
[fix] remove omp for RemoveWeights* to avoid race condition in sparse format
1 parent 2037709 commit 2d8cb53

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

maps/src/maputils.cxx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ void RemoveWeights(G3SkyMap &T, G3SkyMap &Q, G3SkyMap &U, const G3SkyMapWeights
4848
v /= W.at(pix);
4949
}
5050
} else {
51-
#ifdef _OPENMP
52-
#pragma omp parallel for schedule(static)
53-
#endif
5451
for (size_t pix = 0; pix < W.size(); pix++) {
5552
double t = T.at(pix);
5653
MuellerMatrix m = W.at(pix);
@@ -94,9 +91,6 @@ void RemoveWeightsT(G3SkyMap &T, const G3SkyMapWeights &W, bool zero_nans)
9491
T.ConvertToDense();
9592
T /= *(W.TT);
9693
} else {
97-
#ifdef _OPENMP
98-
#pragma omp parallel for schedule(static)
99-
#endif
10094
for (size_t pix = 0; pix < W.size(); pix++) {
10195
double t = T.at(pix);
10296
MuellerMatrix m = W.at(pix);

0 commit comments

Comments
 (0)