From fa5dc424956cae58ec910bee49e1b9118fc1feb0 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 8 Aug 2023 01:55:13 +0200 Subject: Clang-tidy CI test: add 4 new readability checks (#4163) --- Source/WarpX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/WarpX.cpp') 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 WarpX::E_external_grid(3, 0.0); Vector 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 abort_on_warning_threshold = std::nullopt; if (str_abort_on_warning_threshold == "high") -- cgit v1.2.3