diff options
author | 2019-08-21 12:54:08 -0700 | |
---|---|---|
committer | 2019-08-21 12:54:08 -0700 | |
commit | e71f1cc255f169652ac0d6c0138035ea732b8e65 (patch) | |
tree | 28ca38560eac23beddfcb1f4d1fadafe35141dfa /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 2f5d6b183d140988c919f873a35f25820bf1cf62 (diff) | |
download | WarpX-e71f1cc255f169652ac0d6c0138035ea732b8e65.tar.gz WarpX-e71f1cc255f169652ac0d6c0138035ea732b8e65.tar.zst WarpX-e71f1cc255f169652ac0d6c0138035ea732b8e65.zip |
error if ionization on GPU
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 18a2c9646..1d1d6c1b7 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -39,6 +39,12 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp pp.query("do_boosted_frame_diags", do_boosted_frame_diags); pp.query("do_field_ionization", do_field_ionization); +#ifdef AMREX_USE_GPU + AMREX_ALWAYS_ASSERT_WITH_MESSAGE( + do_field_ionization == 0, + "Field ionization does not work on GPU so far, because the current " + "version of Redistribute in AMReX does not work with runtime parameters"); +#endif pp.query("plot_species", plot_species); int do_user_plot_vars; |