Skip to content

Commit 38d7775

Browse files
committed
spr: save the reduction result
duhhhhh
1 parent 61ff01d commit 38d7775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MeshField_SPR_ErrorEstimator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SInt : public MeshField::Integrator {
2424
void reset() { r = 0; }
2525
MeshField::Real r;
2626
Omega_h::CommPtr comm;
27-
void parallelReduce() { comm->allreduce(r, OMEGA_H_SUM); }
27+
void parallelReduce() { r = comm->allreduce(r, OMEGA_H_SUM); }
2828
};
2929

3030
template <typename ShapeField> class Estimation {

0 commit comments

Comments
 (0)