From e6d4e61d00dcde33a68bba8748f6b1d3d3b34902 Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Tue, 21 Apr 2020 09:25:41 -0700 Subject: This macro needs to be updated due to a recent change in amrex (#935) --- Source/Particles/Sorting/SortingUtils.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Particles/Sorting/SortingUtils.H') 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& 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 ); -- cgit v1.2.3