aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/FieldSolver/WarpXFFT.cpp5
-rw-r--r--Source/WarpX.cpp33
2 files changed, 5 insertions, 33 deletions
diff --git a/Source/FieldSolver/WarpXFFT.cpp b/Source/FieldSolver/WarpXFFT.cpp
index 9815d43dc..e5105a4b3 100644
--- a/Source/FieldSolver/WarpXFFT.cpp
+++ b/Source/FieldSolver/WarpXFFT.cpp
@@ -410,6 +410,8 @@ void WarpX::PushPSATD_localFFT (int lev, amrex::Real /* dt */)
void
WarpX::PushPSATD_hybridFFT (int lev, amrex::Real /* dt */)
{
+#ifndef AMREX_USE_CUDA // Running on CPU ; use PICSAR code for the hybrid FFT
+
BL_PROFILE_VAR_NS("WarpXFFT::CopyDualGrid", blp_copy);
BL_PROFILE_VAR_NS("PICSAR::FftPushEB", blp_push_eb);
@@ -484,5 +486,8 @@ WarpX::PushPSATD_hybridFFT (int lev, amrex::Real /* dt */)
{
amrex::Abort("WarpX::PushPSATD: TODO");
}
+#else // AMREX_USE_CUDA is defined ; running on GPU
+ amrex::Abort("The option `psatd.fft_hybrid_mpi_decomposition` does not work on GPU.");
+#endif
}
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 65079428b..1f8784428 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -449,39 +449,6 @@ WarpX::ReadParameters ()
fine_tag_hi = RealVect{hi};
}
- // select which particle comps to write
- {
- pp.queryarr("particle_plot_vars", particle_plot_vars);
-
- if (particle_plot_vars.size() == 0)
- {
- if (WarpX::do_boosted_frame_diagnostic && WarpX::do_boosted_frame_particles)
- {
- particle_plot_flags.resize(PIdx::nattribs + 6, 1);
- }
- else
- {
- particle_plot_flags.resize(PIdx::nattribs, 1);
- }
- }
- else
- {
- if (WarpX::do_boosted_frame_diagnostic && WarpX::do_boosted_frame_particles)
- {
- particle_plot_flags.resize(PIdx::nattribs + 6, 0);
- }
- else
- {
- particle_plot_flags.resize(PIdx::nattribs, 0);
- }
-
- for (const auto& var : particle_plot_vars)
- {
- particle_plot_flags[ParticleStringNames::to_index.at(var)] = 1;
- }
- }
- }
-
pp.query("load_balance_int", load_balance_int);
pp.query("load_balance_with_sfc", load_balance_with_sfc);
pp.query("load_balance_knapsack_factor", load_balance_knapsack_factor);