diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp index b874c151f36..c58318bbd53 100644 --- a/Source/Utils/WarpXAlgorithmSelection.cpp +++ b/Source/Utils/WarpXAlgorithmSelection.cpp @@ -249,7 +249,7 @@ GetParticleBCTypeInteger( std::string BCType ){ std::string GetFieldBCTypeString( int fb_type ) { - std::string boundary_name = ""; + std::string boundary_name; for (const auto &valid_pair : FieldBCType_algo_to_int) { if ((valid_pair.second == fb_type)&&(valid_pair.first != "default")){ boundary_name = valid_pair.first;