aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-07-18 01:03:09 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-17 16:03:09 -0700
commitead89d6b402d9323390f25a44f0bf100bba4083c (patch)
tree4d4b602aa8d87b25b418a4e4908d45d1acf58d05 /Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
parentf5917bf5dd42db01eb4aabf3459852b7bf1627a6 (diff)
downloadWarpX-ead89d6b402d9323390f25a44f0bf100bba4083c.tar.gz
WarpX-ead89d6b402d9323390f25a44f0bf100bba4083c.tar.zst
WarpX-ead89d6b402d9323390f25a44f0bf100bba4083c.zip
Clang-tidy CI test: add some performance checks in clang-tidy CI test (#4077)
* add some performance checks in clang-tidy CI test * fix few smalle performance issues found with clang-tidy * fix bug * fixed bug * fixed performance issue
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
index eb011f7fb..6608123bb 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
@@ -211,7 +211,7 @@ FlushFormatCheckpoint::WriteDMaps (const std::string& dir, int nlev) const
for (int lev = 0; lev < nlev; ++lev) {
std::string DMFileName = dir;
if (!DMFileName.empty() && DMFileName[DMFileName.size()-1] != '/') {DMFileName += '/';}
- DMFileName = amrex::Concatenate(DMFileName + "Level_", lev, 1);
+ DMFileName = amrex::Concatenate(DMFileName.append("Level_"), lev, 1);
DMFileName += "/DM";
std::ofstream DMFile;