aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FieldIO.cpp
diff options
context:
space:
mode:
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");