diff options
author | 2023-08-27 03:49:02 +0200 | |
---|---|---|
committer | 2023-08-27 01:49:02 +0000 | |
commit | 84a1a6c479753d8636ee9d26d621581ced2aab3b (patch) | |
tree | 3708cd953898a5788f1645c7a9d9642fbc8ce5d7 /Source/Initialization/WarpXInitData.cpp | |
parent | 56105a218652a5fd4c5087b0c07abe3c97925048 (diff) | |
download | WarpX-84a1a6c479753d8636ee9d26d621581ced2aab3b.tar.gz WarpX-84a1a6c479753d8636ee9d26d621581ced2aab3b.tar.zst WarpX-84a1a6c479753d8636ee9d26d621581ced2aab3b.zip |
remove unnecessary static variables from WarpX.H (#4239)
Diffstat (limited to 'Source/Initialization/WarpXInitData.cpp')
-rw-r--r-- | Source/Initialization/WarpXInitData.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 78b3129c3..bfac6db54 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -807,6 +807,12 @@ WarpX::InitLevelData (int lev, Real /*time*/) WARPX_ABORT_WITH_MESSAGE( "E and B parser for external fields does not work with RZ -- TO DO"); #endif + + //! Strings storing parser function to initialize the components of the magnetic field on the grid + std::string str_Bx_ext_grid_function; + std::string str_By_ext_grid_function; + std::string str_Bz_ext_grid_function; + utils::parser::Store_parserString(pp_warpx, "Bx_external_grid_function(x,y,z)", str_Bx_ext_grid_function); utils::parser::Store_parserString(pp_warpx, "By_external_grid_function(x,y,z)", @@ -865,6 +871,12 @@ WarpX::InitLevelData (int lev, Real /*time*/) WARPX_ABORT_WITH_MESSAGE( "E and B parser for external fields does not work with RZ -- TO DO"); #endif + + //! Strings storing parser function to initialize the components of the electric field on the grid + std::string str_Ex_ext_grid_function; + std::string str_Ey_ext_grid_function; + std::string str_Ez_ext_grid_function; + utils::parser::Store_parserString(pp_warpx, "Ex_external_grid_function(x,y,z)", str_Ex_ext_grid_function); utils::parser::Store_parserString(pp_warpx, "Ey_external_grid_function(x,y,z)", |