Skip to content

Commit

Permalink
fix vol initialization for Cartesian (AMReX-Codes#2596)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Jan 21, 2022
1 parent e3b1468 commit 947263e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tools/Plotfile/fvolumesum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ void main_main()
Real vol;
if (coord == 0) {
// Cartesian
vol = 1.0_rt;
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
vol *= dx[idim];
}
Expand Down Expand Up @@ -163,6 +164,7 @@ void main_main()
Real vol;
if (coord == 0) {
// Cartesian
vol = 1.0_rt;
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
vol *= dx[idim];
}
Expand Down

0 comments on commit 947263e

Please sign in to comment.