aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-08-08 01:55:13 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-07 16:55:13 -0700
commitfa5dc424956cae58ec910bee49e1b9118fc1feb0 (patch)
tree7c7cb88fb407806235878004d12f1c6d3d9b3274 /Source/WarpX.cpp
parentfb33708501b986922066f332afa76ea8610ba31a (diff)
downloadWarpX-fa5dc424956cae58ec910bee49e1b9118fc1feb0.tar.gz
WarpX-fa5dc424956cae58ec910bee49e1b9118fc1feb0.tar.zst
WarpX-fa5dc424956cae58ec910bee49e1b9118fc1feb0.zip
Clang-tidy CI test: add 4 new readability checks (#4163)
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 24e3ceb30..8d4e98462 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -86,7 +86,7 @@ using namespace amrex;
Vector<Real> WarpX::E_external_grid(3, 0.0);
Vector<Real> WarpX::B_external_grid(3, 0.0);
-std::string WarpX::authors = "";
+std::string WarpX::authors;
std::string WarpX::B_ext_grid_s = "default";
std::string WarpX::E_ext_grid_s = "default";
bool WarpX::add_external_E_field = false;
@@ -546,7 +546,7 @@ WarpX::ReadParameters ()
ablastr::warn_manager::GetWMInstance().SetAlwaysWarnImmediately(always_warn_immediately);
// Set the WarnPriority threshold to decide if WarpX has to abort when a warning is recorded
- if(std::string str_abort_on_warning_threshold = "";
+ if(std::string str_abort_on_warning_threshold;
pp_warpx.query("abort_on_warning_threshold", str_abort_on_warning_threshold)){
std::optional<ablastr::warn_manager::WarnPriority> abort_on_warning_threshold = std::nullopt;
if (str_abort_on_warning_threshold == "high")