From 947263e0076e08e3ef44db8009fd2ebd46238bd0 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Fri, 21 Jan 2022 13:46:36 -0500 Subject: [PATCH] fix vol initialization for Cartesian (#2596) --- Tools/Plotfile/fvolumesum.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/Plotfile/fvolumesum.cpp b/Tools/Plotfile/fvolumesum.cpp index b1977793202..1a55961b777 100644 --- a/Tools/Plotfile/fvolumesum.cpp +++ b/Tools/Plotfile/fvolumesum.cpp @@ -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]; } @@ -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]; }