aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2020-08-24 23:14:30 +0200
committerGravatar GitHub <noreply@github.com> 2020-08-24 14:14:30 -0700
commitbb58c764f9f21f8baac5e2fb1d81fed4983d1242 (patch)
tree3e1f5914d8f1e2be1168b79509718719745ebb93 /Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
parent78f9be325d894bbae867aa279efdfd2212690825 (diff)
downloadWarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.gz
WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.zst
WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.zip
Fix some warnings (#1239)
This PR fixes the source of several compilation warnings. Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp b/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
index b0903b5a4..e14199b02 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
@@ -1,6 +1,8 @@
#include "FlushFormatAscent.H"
#include "WarpX.H"
+#include <AMReX.H>
+
using namespace amrex;
void
@@ -11,7 +13,7 @@ FlushFormatAscent::WriteToFile (
const amrex::Vector<int> iteration, const double time,
const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
const std::string prefix, bool plot_raw_fields,
- bool plot_raw_fields_guards, bool plot_raw_rho, bool plot_raw_F) const
+ bool plot_raw_fields_guards, bool /*plot_raw_rho*/, bool plot_raw_F) const
{
#ifdef AMREX_USE_ASCENT
@@ -39,6 +41,10 @@ FlushFormatAscent::WriteToFile (
ascent.execute(actions);
ascent.close();
+#else
+ amrex::ignore_unused(varnames, mf, geom, iteration, time,
+ particle_diags, nlev, prefix, plot_raw_fields,
+ plot_raw_fields_guards, plot_raw_F);
#endif // AMREX_USE_ASCENT
}