aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Resampling/Resampling.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-08-01 13:38:19 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-01 13:38:19 +0200
commit0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661 (patch)
tree3a96aabdc6ad518c2d1300800aaa8ee2cafebba3 /Source/Particles/Resampling/Resampling.cpp
parent63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814 (diff)
downloadWarpX-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/Particles/Resampling/Resampling.cpp')
-rw-r--r--Source/Particles/Resampling/Resampling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/Resampling/Resampling.cpp b/Source/Particles/Resampling/Resampling.cpp
index 40510a05c..63ac44888 100644
--- a/Source/Particles/Resampling/Resampling.cpp
+++ b/Source/Particles/Resampling/Resampling.cpp
@@ -18,7 +18,7 @@ Resampling::Resampling (const std::string species_name)
std::string resampling_algorithm_string = "leveling_thinning"; // default resampling algorithm
pp_species_name.query("resampling_algorithm", resampling_algorithm_string);
- if (resampling_algorithm_string.compare("leveling_thinning") == 0)
+ if (resampling_algorithm_string == "leveling_thinning")
{
m_resampling_algorithm = std::make_unique<LevelingThinning>(species_name);
}