aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FieldIO.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-12-06 13:55:39 -0800
committerGravatar GitHub <noreply@github.com> 2019-12-06 13:55:39 -0800
commit49d1a640c455a7cb0794a913214fbc2a79a9b6a9 (patch)
tree050c461bd7b0350349744337254b67273a884512 /Source/Diagnostics/FieldIO.cpp
parent748db38f36ecc1aba42a038e50f43df907b7fe07 (diff)
parent6e7e78df54f719a4ceabf7a6bfd976e3b68b2e95 (diff)
downloadWarpX-49d1a640c455a7cb0794a913214fbc2a79a9b6a9.tar.gz
WarpX-49d1a640c455a7cb0794a913214fbc2a79a9b6a9.tar.zst
WarpX-49d1a640c455a7cb0794a913214fbc2a79a9b6a9.zip
Merge pull request #557 from WeiqunZhang/plot_no_costs
warpx.plot_costs
Diffstat (limited to 'Source/Diagnostics/FieldIO.cpp')
-rw-r--r--Source/Diagnostics/FieldIO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/FieldIO.cpp b/Source/Diagnostics/FieldIO.cpp
index d4d46f1bd..e1bb8cb54 100644
--- a/Source/Diagnostics/FieldIO.cpp
+++ b/Source/Diagnostics/FieldIO.cpp
@@ -399,7 +399,7 @@ WarpX::AverageAndPackFields ( Vector<std::string>& varnames,
const int ncomp = fields_to_plot.size()
+ static_cast<int>(plot_finepatch)*6
+ static_cast<int>(plot_crsepatch)*6
- + static_cast<int>(costs[0] != nullptr);
+ + static_cast<int>(costs[0] != nullptr and plot_costs);
// Loop over levels of refinement
for (int lev = 0; lev <= finest_level; ++lev)
@@ -558,7 +558,7 @@ WarpX::AverageAndPackFields ( Vector<std::string>& varnames,
dcomp += 3;
}
- if (costs[0] != nullptr)
+ if (costs[0] != nullptr and plot_costs)
{
AverageAndPackScalarField( mf_avg[lev], *costs[lev], dcomp, ngrow );
if(lev==0) varnames.push_back("costs");