aboutsummaryrefslogtreecommitdiff
path: root/Source/Initialization/WarpXInitData.cpp
diff options
context:
space:
mode:
authorGravatar RevathiJambunathan <revanathan@gmail.com> 2020-01-06 17:42:07 -0800
committerGravatar RevathiJambunathan <revanathan@gmail.com> 2020-01-06 17:42:07 -0800
commit14b8a62600b323b42f264237fe3b4562ab345600 (patch)
treef20bce5f251d24f82b795af7f9e9a82b8dff52eb /Source/Initialization/WarpXInitData.cpp
parent1ef0e65b956b8c6cf789c3a9ef9b565a221cce49 (diff)
downloadWarpX-14b8a62600b323b42f264237fe3b4562ab345600.tar.gz
WarpX-14b8a62600b323b42f264237fe3b4562ab345600.tar.zst
WarpX-14b8a62600b323b42f264237fe3b4562ab345600.zip
correcting comment
Diffstat (limited to 'Source/Initialization/WarpXInitData.cpp')
-rw-r--r--Source/Initialization/WarpXInitData.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp
index 2390ee4ec..ea7437183 100644
--- a/Source/Initialization/WarpXInitData.cpp
+++ b/Source/Initialization/WarpXInitData.cpp
@@ -286,9 +286,9 @@ WarpX::InitLevelData (int lev, Real time)
}
}
- // if the input string is "constant", the values for the
- // external field on the grid must be provided in the input file.
-
+ // if the input string for the B-field is "parse_b_ext_grid_function",
+ // then the analytical expression or function must be
+ // provided in the input file.
if (B_ext_grid_s == "parse_b_ext_grid_function") {
Store_parserString("Bx_external_grid_function(x,y,z)",
@@ -327,6 +327,9 @@ WarpX::InitLevelData (int lev, Real time)
}
}
+ // if the input string for the E-field is "parse_e_ext_grid_function",
+ // then the analytical expression or function must be
+ // provided in the input file.
if (E_ext_grid_s == "parse_e_ext_grid_function") {
Store_parserString("Ex_external_grid_function(x,y,z)",