aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Initialization/WarpXInitData.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp
index 6d59ce34d..f4c2afd57 100644
--- a/Source/Initialization/WarpXInitData.cpp
+++ b/Source/Initialization/WarpXInitData.cpp
@@ -291,6 +291,9 @@ WarpX::InitLevelData (int lev, Real time)
// provided in the input file.
if (B_ext_grid_s == "parse_b_ext_grid_function") {
+#ifdef WARPX_DIM_RZ
+ amrex::Abort("E and B parser for external fields does not work with RZ -- TO DO");
+#endif
Store_parserString(pp, "Bx_external_grid_function(x,y,z)",
str_Bx_ext_grid_function);
Store_parserString(pp, "By_external_grid_function(x,y,z)",
@@ -340,6 +343,9 @@ WarpX::InitLevelData (int lev, Real time)
// provided in the input file.
if (E_ext_grid_s == "parse_e_ext_grid_function") {
+#ifdef WARPX_DIM_RZ
+ amrex::Abort("E and B parser for external fields does not work with RZ -- TO DO");
+#endif
Store_parserString(pp, "Ex_external_grid_function(x,y,z)",
str_Ex_ext_grid_function);
Store_parserString(pp, "Ey_external_grid_function(x,y,z)",