aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FieldIO.cpp
diff options
context:
space:
mode:
authorGravatar Weiqun Zhang <weiqunzhang@lbl.gov> 2019-12-06 12:51:25 -0800
committerGravatar Weiqun Zhang <weiqunzhang@lbl.gov> 2019-12-06 12:51:25 -0800
commit8ca5ae4207f41f50e97c3919846671fc436616e8 (patch)
treea3607aad04f3974052801b71b8b44c62665ab33c /Source/Diagnostics/FieldIO.cpp
parent748db38f36ecc1aba42a038e50f43df907b7fe07 (diff)
downloadWarpX-8ca5ae4207f41f50e97c3919846671fc436616e8.tar.gz
WarpX-8ca5ae4207f41f50e97c3919846671fc436616e8.tar.zst
WarpX-8ca5ae4207f41f50e97c3919846671fc436616e8.zip
add parameter 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");