diff options
author | 2021-07-07 01:00:12 +0200 | |
---|---|---|
committer | 2021-07-06 16:00:12 -0700 | |
commit | f76fc32644dbe491293db3c844eb802b4d7ee9bd (patch) | |
tree | 5bd1bd1c908db6b8f18bf014bb6ac1f1cc3fdc29 /Source/BoundaryConditions/PML.cpp | |
parent | 0356216f504643a0e33a6932efc5c2cbf9a2abe1 (diff) | |
download | WarpX-f76fc32644dbe491293db3c844eb802b4d7ee9bd.tar.gz WarpX-f76fc32644dbe491293db3c844eb802b4d7ee9bd.tar.zst WarpX-f76fc32644dbe491293db3c844eb802b4d7ee9bd.zip |
Fix readability-container-size-empty warning raised by clang-tidy (#2055)
* fix readability-container-size-empty warning raised by clang-tidy
* fix bug
Diffstat (limited to 'Source/BoundaryConditions/PML.cpp')
-rw-r--r-- | Source/BoundaryConditions/PML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp index 95dcc27e5..234cfbabb 100644 --- a/Source/BoundaryConditions/PML.cpp +++ b/Source/BoundaryConditions/PML.cpp @@ -482,7 +482,7 @@ PML::PML (const int lev, const BoxArray& grid_ba, const DistributionMapping& /*g const BoxArray& ba = (do_pml_in_domain)? MakeBoxArray(*geom, grid_ba_reduced, ncell, do_pml_in_domain, do_pml_Lo, do_pml_Hi) : MakeBoxArray(*geom, grid_ba, ncell, do_pml_in_domain, do_pml_Lo, do_pml_Hi); - if (ba.size() == 0) { + if (ba.empty()) { m_ok = false; return; } else { |