aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/WarpXRegrid.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2021-11-09 18:34:09 +0100
committerGravatar GitHub <noreply@github.com> 2021-11-09 09:34:09 -0800
commit181f2042429a53da570fe9a2d61d01778f74502c (patch)
tree189130b90e3a73691041195678b512f02a48ad71 /Source/Parallelization/WarpXRegrid.cpp
parent014c7cdafe8ff52cc0cd1b8f89c0822e03c9679d (diff)
downloadWarpX-181f2042429a53da570fe9a2d61d01778f74502c.tar.gz
WarpX-181f2042429a53da570fe9a2d61d01778f74502c.tar.zst
WarpX-181f2042429a53da570fe9a2d61d01778f74502c.zip
Fix some issues with Fujitsu compiler (#2529)
* make some code compilable with Fujitsu compiler in clang mode * update documentation
Diffstat (limited to 'Source/Parallelization/WarpXRegrid.cpp')
-rw-r--r--Source/Parallelization/WarpXRegrid.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp
index e2e10158e..59ca25ed3 100644
--- a/Source/Parallelization/WarpXRegrid.cpp
+++ b/Source/Parallelization/WarpXRegrid.cpp
@@ -408,7 +408,8 @@ WarpX::RemakeLevel (int lev, Real /*time*/, const BoxArray& ba, const Distributi
if (costs[lev] != nullptr)
{
costs[lev] = std::make_unique<LayoutData<Real>>(ba, dm);
- for (int i : costs[lev]->IndexArray())
+ const auto iarr = costs[lev]->IndexArray();
+ for (int i : iarr)
{
(*costs[lev])[i] = 0.0;
setLoadBalanceEfficiency(lev, -1);
@@ -464,7 +465,8 @@ WarpX::ResetCosts ()
{
for (int lev = 0; lev <= finest_level; ++lev)
{
- for (int i : costs[lev]->IndexArray())
+ const auto iarr = costs[lev]->IndexArray();
+ for (int i : iarr)
{
// Reset costs
(*costs[lev])[i] = 0.0;