Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 30, 2023
1 parent e52b57d commit 5fc56d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Initialization/WarpXInitData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ WarpX::InitLevelData (int lev, Real /*time*/)
std::string str_Bx_ext_grid_function;
std::string str_By_ext_grid_function;
std::string str_Bz_ext_grid_function;

#ifdef WARPX_DIM_RZ
std::stringstream warnMsg;
warnMsg << "Parser for external B (r and theta) fields does not work with RZ\n"
Expand All @@ -825,7 +825,7 @@ WarpX::InitLevelData (int lev, Real /*time*/)
#endif
utils::parser::Store_parserString(pp_warpx, "Bz_external_grid_function(x,y,z)",
str_Bz_ext_grid_function);

Bxfield_parser = std::make_unique<amrex::Parser>(
utils::parser::makeParser(str_Bx_ext_grid_function,{"x","y","z"}));
Byfield_parser = std::make_unique<amrex::Parser>(
Expand Down

0 comments on commit 5fc56d4

Please sign in to comment.