Skip to content

Commit

Permalink
add fvolumesum to GNUmakefile (#2836)
Browse files Browse the repository at this point in the history
* add fvolumesum to GNUmakefile and CMakeLists.txt

* initialize vol as NAN
  • Loading branch information
BenWibking authored Jun 15, 2022
1 parent cd166dd commit a06cb41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Tools/Plotfile/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ set(_exe_names
fsnapshot
ftime
fvarnames
fvolumesum
)

# Build targets one by one
Expand Down
1 change: 1 addition & 0 deletions Tools/Plotfile/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ifeq ($(strip $(programs)),)
programs += fsnapshot
programs += ftime
programs += fvarnames
programs += fvolumesum
endif

include $(AMREX_HOME)/Tools/GNUMake/Make.defs
Expand Down
4 changes: 2 additions & 2 deletions Tools/Plotfile/fvolumesum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void main_main()
problo[2]+static_cast<Real>(k+0.5)*dx[2])};

// compute the volume
Real vol;
Real vol = std::numeric_limits<Real>::quiet_NaN();
if (coord == 0) {
// Cartesian
vol = 1.0_rt;
Expand Down Expand Up @@ -163,7 +163,7 @@ void main_main()
problo[2]+static_cast<Real>(k+0.5)*dx[2])};

// compute the volume
Real vol;
Real vol = std::numeric_limits<Real>::quiet_NaN();
if (coord == 0) {
// Cartesian
vol = 1.0_rt;
Expand Down

0 comments on commit a06cb41

Please sign in to comment.