Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix refine/coarsen logging #1036

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
oops x2
  • Loading branch information
lkotipal committed Oct 9, 2024
commit 667c37c143584af5bf3cda08f1d6598f57925c63
2 changes: 1 addition & 1 deletion grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ bool adaptRefinement(dccrg::Dccrg<SpatialCell,dccrg::Cartesian_Geometry>& mpiGri
initTimer.stop();

refines = mpiGrid.get_local_cells_to_refine().size();
int coarsens {mpiGrid.get_local_cells_to_unrefine().size()};
uint64_t coarsens {mpiGrid.get_local_cells_to_unrefine().size()};
MPI_Allreduce(MPI_IN_PLACE, &refines, 1, MPI_UINT64_T, MPI_SUM, MPI_COMM_WORLD);
MPI_Allreduce(MPI_IN_PLACE, &coarsens, 1, MPI_UINT64_T, MPI_SUM, MPI_COMM_WORLD);
ratio_refines = static_cast<double>(refines) / static_cast<double>(cells);
Expand Down
Loading