Skip to content

Commit

Permalink
fix to scalargrad3d comm and reinstatment of curl calc comms
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigfried Haering committed Jul 10, 2024
1 parent 6abe504 commit ed1b848
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ void ComputeCurl3D(const ParGridFunction &u, ParGridFunction &cu) {

// Communication

/*
/**/
// Count the zones globally.
GroupCommunicator &gcomm = u.ParFESpace()->GroupComm();
gcomm.Reduce<int>(zones_per_vdof, GroupCommunicator::Sum);
Expand All @@ -772,7 +772,7 @@ void ComputeCurl3D(const ParGridFunction &u, ParGridFunction &cu) {
// Accumulate for all vdofs.
gcomm.Reduce<double>(cu.GetData(), GroupCommunicator::Sum);
gcomm.Bcast<double>(cu.GetData());
*/
/**/

// Compute means.
for (int i = 0; i < cu.Size(); i++) {
Expand Down Expand Up @@ -896,16 +896,14 @@ void scalarGrad3D(ParGridFunction &u, ParGridFunction &gu) {
}
}

/*
// Count the zones globally.
GroupCommunicator &gcomm = u.ParFESpace()->GroupComm();
GroupCommunicator &gcomm = gu.ParFESpace()->GroupComm();
gcomm.Reduce<int>(zones_per_vdof, GroupCommunicator::Sum);
gcomm.Bcast(zones_per_vdof);

// Accumulate for all vdofs.
gcomm.Reduce<double>(gu.GetData(), GroupCommunicator::Sum);
gcomm.Bcast<double>(gu.GetData());
*/

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

0 comments on commit ed1b848

Please sign in to comment.