diff options
author | 2023-08-01 13:38:19 +0200 | |
---|---|---|
committer | 2023-08-01 13:38:19 +0200 | |
commit | 0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661 (patch) | |
tree | 3a96aabdc6ad518c2d1300800aaa8ee2cafebba3 /Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp | |
parent | 63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814 (diff) | |
download | WarpX-0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661.tar.gz WarpX-0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661.tar.zst WarpX-0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661.zip |
Clang tidy CI test: add several readability checks to clang tidy CI test (#4124)
* add few readability checks to clang-tidy CI test
* address all the issues found with clang-tidy
* fix bug
* fixed bug
* fix residual issue
* fix issue found with clang-tidy
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp')
-rw-r--r-- | Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp index 2c7e5350a..3832bf5e9 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp @@ -37,11 +37,11 @@ FlushFormatOpenPMD::FlushFormatOpenPMD (const std::string& diag_name) const bool encodingDefined = pp_diag_name.query("openpmd_encoding", openpmd_encoding); openPMD::IterationEncoding encoding = openPMD::IterationEncoding::groupBased; - if ( 0 == openpmd_encoding.compare("v") ) + if ( openpmd_encoding == "v" ) encoding = openPMD::IterationEncoding::variableBased; - else if ( 0 == openpmd_encoding.compare("g") ) + else if ( openpmd_encoding == "g" ) encoding = openPMD::IterationEncoding::groupBased; - else if ( 0 == openpmd_encoding.compare("f") ) + else if ( openpmd_encoding == "f" ) encoding = openPMD::IterationEncoding::fileBased; std::string diag_type_str; @@ -74,7 +74,7 @@ FlushFormatOpenPMD::FlushFormatOpenPMD (const std::string& diag_name) pp_diag_name.query("adios2_operator.type", operator_type); std::string const prefix = diag_name + ".adios2_operator.parameters"; const ParmParse pp; - auto entr = pp.getEntries(prefix); + auto entr = amrex::ParmParse::getEntries(prefix); std::map< std::string, std::string > operator_parameters; auto const prefix_len = prefix.size() + 1; @@ -90,7 +90,7 @@ FlushFormatOpenPMD::FlushFormatOpenPMD (const std::string& diag_name) pp_diag_name.query("adios2_engine.type", engine_type); std::string const engine_prefix = diag_name + ".adios2_engine.parameters"; const ParmParse ppe; - auto eng_entr = ppe.getEntries(engine_prefix); + auto eng_entr = amrex::ParmParse::getEntries(engine_prefix); std::map< std::string, std::string > engine_parameters; auto const prefixlen = engine_prefix.size() + 1; |