Skip to content

Commit

Permalink
fixed bug in MLCurlCurL::xdoty() to prevent doing MPI sum twice. (AMR…
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinRayAngus authored Feb 21, 2024
1 parent 1959b1f commit d8d4828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLCurlCurl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Real MLCurlCurl::xdoty (int amrlev, int mglev, const MF& x, const MF& y,
auto result = Real(0.0);
for (int idim = 0; idim < 3; ++idim) {
auto rtmp = MultiFab::Dot(getDotMask(amrlev,mglev,idim),
x[idim], 0, y[idim], 0, 1, 0, false);
x[idim], 0, y[idim], 0, 1, 0, true);
result += rtmp;
}
if (!local) {
Expand Down

0 comments on commit d8d4828

Please sign in to comment.