diff options
author | 2019-12-06 12:51:25 -0800 | |
---|---|---|
committer | 2019-12-06 12:51:25 -0800 | |
commit | 8ca5ae4207f41f50e97c3919846671fc436616e8 (patch) | |
tree | a3607aad04f3974052801b71b8b44c62665ab33c /Source/Diagnostics/FieldIO.cpp | |
parent | 748db38f36ecc1aba42a038e50f43df907b7fe07 (diff) | |
download | WarpX-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.cpp | 4 |
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"); |