From 9f1ccd2cbfb4ed0f978a245541b33fbdf4d0c9ce Mon Sep 17 00:00:00 2001 From: Andy Nonaka Date: Wed, 4 Dec 2024 18:05:26 -0800 Subject: [PATCH] use plot_deltaY_dir instead of project_dir --- src_common/common_functions.cpp | 6 +++--- src_common/common_namespace.H | 2 +- src_compressible_stag/writePlotFileStag.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src_common/common_functions.cpp b/src_common/common_functions.cpp index 8dfa7029..bbc4d429 100644 --- a/src_common/common_functions.cpp +++ b/src_common/common_functions.cpp @@ -240,7 +240,7 @@ int common::plot_means; int common::plot_vars; int common::plot_covars; int common::plot_cross; -int common::plot_deltaY; +int common::plot_deltaY_dir; int common::particle_motion; AMREX_GPU_MANAGED amrex::Real common::turb_a; @@ -609,7 +609,7 @@ void InitializeCommonNamespace() { plot_vars = 0; plot_covars = 0; plot_cross = 0; - plot_deltaY = 0; + plot_deltaY_dir = -1; particle_motion = 0; // turblent forcing parameters @@ -1137,7 +1137,7 @@ void InitializeCommonNamespace() { pp.query("plot_vars",plot_vars); pp.query("plot_covars",plot_covars); pp.query("plot_cross",plot_cross); - pp.query("plot_deltaY",plot_deltaY); + pp.query("plot_deltaY_dir",plot_deltaY_dir); pp.query("particle_motion",particle_motion); pp.query("turb_a",turb_a); pp.query("turb_b",turb_b); diff --git a/src_common/common_namespace.H b/src_common/common_namespace.H index bddc3961..b5493d3a 100644 --- a/src_common/common_namespace.H +++ b/src_common/common_namespace.H @@ -314,7 +314,7 @@ namespace common { extern int plot_vars; extern int plot_covars; extern int plot_cross; - extern int plot_deltaY; + extern int plot_deltaY_dir; extern int particle_motion; // parameters for turbulent forcing example diff --git a/src_compressible_stag/writePlotFileStag.cpp b/src_compressible_stag/writePlotFileStag.cpp index 94f56adc..820c4cd8 100644 --- a/src_compressible_stag/writePlotFileStag.cpp +++ b/src_compressible_stag/writePlotFileStag.cpp @@ -88,7 +88,7 @@ void WritePlotFileStag(int step, if (nspec_surfcov>0) nplot += nspec_surfcov*6; } - if (plot_deltaY == 1) { + if (plot_deltaY_dir != -1) { nplot += nspecies; } @@ -261,10 +261,10 @@ void WritePlotFileStag(int step, } } - if (plot_deltaY == 1) { + if (plot_deltaY_dir != -1) { MultiFab Ybar(ba, dmap, nspecies, 0); // Yk is component 6: in prim - WriteHorizontalAverageToMF(prim,Ybar,project_dir,6,nspecies,0); + WriteHorizontalAverageToMF(prim,Ybar,plot_deltaY_dir,6,nspecies,0); Ybar.mult(-1.); amrex::MultiFab::Add(Ybar,prim,6,0,nspecies,0); amrex::MultiFab::Copy(plotfile,Ybar,0,cnt,nspecies,0); @@ -459,7 +459,7 @@ void WritePlotFileStag(int step, } - if (plot_deltaY == 1) { + if (plot_deltaY_dir != 1) { x = "deltaYk_"; for (i=0; i