aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Sorting/SortingUtils.H
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers@lbl.gov> 2020-04-21 09:25:41 -0700
committerGravatar GitHub <noreply@github.com> 2020-04-21 09:25:41 -0700
commite6d4e61d00dcde33a68bba8748f6b1d3d3b34902 (patch)
tree2247864c188c5c577f48c3b7fc79ee4200672c89 /Source/Particles/Sorting/SortingUtils.H
parent94cfb0340376ed21a92f33cd495363a8c704d0d3 (diff)
downloadWarpX-e6d4e61d00dcde33a68bba8748f6b1d3d3b34902.tar.gz
WarpX-e6d4e61d00dcde33a68bba8748f6b1d3d3b34902.tar.zst
WarpX-e6d4e61d00dcde33a68bba8748f6b1d3d3b34902.zip
This macro needs to be updated due to a recent change in amrex (#935)
Diffstat (limited to 'Source/Particles/Sorting/SortingUtils.H')
-rw-r--r--Source/Particles/Sorting/SortingUtils.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/Sorting/SortingUtils.H b/Source/Particles/Sorting/SortingUtils.H
index 754acadf2..73eb76305 100644
--- a/Source/Particles/Sorting/SortingUtils.H
+++ b/Source/Particles/Sorting/SortingUtils.H
@@ -25,7 +25,7 @@ void fillWithConsecutiveIntegers( amrex::Gpu::DeviceVector<long>& v )
// On GPU: Use amrex
auto data = v.data();
auto N = v.size();
- AMREX_FOR_1D( N, i, data[i] = i;);
+ AMREX_FOR_1D( N, i, {data[i] = i;});
#else
// On CPU: Use std library
std::iota( v.begin(), v.end(), 0L );