From ed1b8484faee24a851f8baa661c9850db9db83cd Mon Sep 17 00:00:00 2001 From: Sigfried Haering Date: Wed, 10 Jul 2024 14:44:18 -0700 Subject: [PATCH] fix to scalargrad3d comm and reinstatment of curl calc comms --- src/utils.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index 8bb9ac27a..8caf58eed 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -763,7 +763,7 @@ void ComputeCurl3D(const ParGridFunction &u, ParGridFunction &cu) { // Communication - /* + /**/ // Count the zones globally. GroupCommunicator &gcomm = u.ParFESpace()->GroupComm(); gcomm.Reduce(zones_per_vdof, GroupCommunicator::Sum); @@ -772,7 +772,7 @@ void ComputeCurl3D(const ParGridFunction &u, ParGridFunction &cu) { // Accumulate for all vdofs. gcomm.Reduce(cu.GetData(), GroupCommunicator::Sum); gcomm.Bcast(cu.GetData()); - */ + /**/ // Compute means. for (int i = 0; i < cu.Size(); i++) { @@ -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(zones_per_vdof, GroupCommunicator::Sum); gcomm.Bcast(zones_per_vdof); // Accumulate for all vdofs. gcomm.Reduce(gu.GetData(), GroupCommunicator::Sum); gcomm.Bcast(gu.GetData()); - */ // Compute means. for (int dir = 0; dir < dim_; dir++) {