aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ReducedDiags/ChargeOnEB.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/Diagnostics/ReducedDiags/ChargeOnEB.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/Diagnostics/ReducedDiags/ChargeOnEB.cpp')
-rw-r--r--Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp b/Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp
index c9ce3523f..c6f75e4a7 100644
--- a/Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp
+++ b/Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp
@@ -50,7 +50,7 @@ ChargeOnEB::ChargeOnEB (std::string rd_name)
const amrex::ParmParse pp_rd_name(rd_name);
m_do_parser_weighting = pp_rd_name.query("weighting_function(x,y,z)", buf);
if (m_do_parser_weighting) {
- std::string weighting_string = "";
+ std::string weighting_string;
utils::parser::Store_parserString(
pp_rd_name,"weighting_function(x,y,z)", weighting_string);
m_parser_weighting = std::make_unique<amrex::Parser>(