aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
diff options
context:
space:
mode:
authorGravatar Corey Wetterer-Nelson <78513275+c-wetterer-nelson@users.noreply.github.com> 2021-09-01 19:14:06 -0400
committerGravatar GitHub <noreply@github.com> 2021-09-01 16:14:06 -0700
commit89a77dc1104e5716751217973ae06d6cba285a9c (patch)
treed6984284a009333e41be388790f8c370d726889c /Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
parent75de2af8e8edd7f75523a244eef56e9c5b29b8ae (diff)
downloadWarpX-89a77dc1104e5716751217973ae06d6cba285a9c.tar.gz
WarpX-89a77dc1104e5716751217973ae06d6cba285a9c.tar.zst
WarpX-89a77dc1104e5716751217973ae06d6cba285a9c.zip
silence unused params errors in FlushFormatSensei (#2265)
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp34
1 files changed, 14 insertions, 20 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp b/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
index 367f24672..1e18dfd3b 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
@@ -53,25 +53,20 @@ FlushFormatSensei::WriteToFile (
const amrex::Vector<amrex::MultiFab>& mf,
amrex::Vector<amrex::Geometry>& geom,
const amrex::Vector<int> iteration, const double time,
- const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
- const std::string prefix, int /*file_min_digits*/, bool plot_raw_fields,
- bool plot_raw_fields_guards, bool plot_raw_rho, bool plot_raw_F,
- bool /*isBTD*/, int /*snapshotID*/,
- const amrex::Geometry& /*full_BTD_snapshot*/, bool /*isLastBTDFlush*/) const
+ const amrex::Vector<ParticleDiag>& particle_diags,
+ int nlev, const std::string prefix, int file_min_digits,
+ bool plot_raw_fields, bool plot_raw_fields_guards,
+ bool plot_raw_rho, bool plot_raw_F, bool isBTD, int snapshotID,
+ const amrex::Geometry& full_BTD_snapshot, bool isLastBTDFlush) const
{
+ amrex::ignore_unused(
+ geom, particle_diags, nlev, prefix, file_min_digits,
+ plot_raw_fields, plot_raw_fields_guards, plot_raw_rho,
+ plot_raw_F, isBTD, snapshotID, full_BTD_snapshot,
+ isLastBTDFlush);
+
#ifndef AMREX_USE_SENSEI_INSITU
- (void)varnames;
- (void)mf;
- (void)geom;
- (void)iteration;
- (void)time;
- (void)particle_diags;
- (void)nlev;
- (void)prefix;
- (void)plot_raw_fields;
- (void)plot_raw_fields_guards;
- (void)plot_raw_rho;
- (void)plot_raw_F;
+ amrex::ignore_unused(varnames, mf, iteration, time);
#else
WARPX_PROFILE("FlushFormatSensei::WriteToFile()");
@@ -93,9 +88,8 @@ void
FlushFormatSensei::WriteParticles (
const amrex::Vector<ParticleDiag>& particle_diags) const
{
-#ifndef AMREX_USE_SENSEI_INSITU
- (void)particle_diags;
-#else
+ amrex::ignore_unused(particle_diags);
+#ifdef AMREX_USE_SENSEI_INSITU
amrex::ErrorStream() << "FlushFormatSensei::WriteParticles : "
"Not yet implemented." << std::endl;