Skip to content

Commit

Permalink
Fix GroupCommunicator issue in scalarGrad3D (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevilo committed Jul 19, 2024
1 parent 732a166 commit c5a587a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,9 @@ void scalarGrad3D(ParGridFunction &u, ParGridFunction &gu) {
gcomm.Bcast(zones_per_vdof);

// Accumulate for all vdofs.
gcomm.Reduce<double>(gu.GetData(), GroupCommunicator::Sum);
gcomm.Bcast<double>(gu.GetData());
GroupCommunicator &gcomm_g = gu.ParFESpace()->GroupComm();
gcomm_g.Reduce<double>(gu.GetData(), GroupCommunicator::Sum);
gcomm_g.Bcast<double>(gu.GetData());

// Compute means.
for (int dir = 0; dir < dim; dir++) {
Expand Down

0 comments on commit c5a587a

Please sign in to comment.