diff options
author | 2020-06-25 09:24:20 -0700 | |
---|---|---|
committer | 2020-06-25 09:24:20 -0700 | |
commit | 55693cf21da201fc9788489ee561fe0a19d4b591 (patch) | |
tree | 7ea3088263a8a07b1fde6fe033b40836d8b20bad /Source/WarpX.cpp | |
parent | 19565cd7dc45b67dedcc4bd8be9f2a08e9e9b990 (diff) | |
download | WarpX-55693cf21da201fc9788489ee561fe0a19d4b591.tar.gz WarpX-55693cf21da201fc9788489ee561fe0a19d4b591.tar.zst WarpX-55693cf21da201fc9788489ee561fe0a19d4b591.zip |
For RZ, added assert that periodicity is not set radially (#1115)
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 8139fc92a..2db829477 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -554,6 +554,11 @@ WarpX::ReadParameters () // Only needs to be set with WARPX_DIM_RZ, otherwise defaults to 1 pp.query("n_rz_azimuthal_modes", n_rz_azimuthal_modes); + +#if defined WARPX_DIM_RZ + AMREX_ALWAYS_ASSERT_WITH_MESSAGE(Geom(0).isPeriodic(0) == 0, + "The problem must not be periodic in the radial direction"); +#endif #if (defined WARPX_DIM_RZ) && (defined WARPX_USE_PSATD) // Force do_nodal=true (that is, not staggered) and // use same shape factors in all directions, for gathering |