From 9040d62bc6b6fac9c00c0521e7dde5b8ed04f510 Mon Sep 17 00:00:00 2001 From: Alexander Sinn <64009254+AlexanderSinn@users.noreply.github.com> Date: Tue, 9 Apr 2024 15:32:50 +0200 Subject: [PATCH] Fix Spin in-situ diagnostic for NVCC 11.5 (#1094) * fix spin insitu diagnostic for NVCC 115 * put CI back to CUDA 11 8 --- src/particles/beam/BeamParticleContainer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/particles/beam/BeamParticleContainer.cpp b/src/particles/beam/BeamParticleContainer.cpp index b262faf5f0..126228245f 100644 --- a/src/particles/beam/BeamParticleContainer.cpp +++ b/src/particles/beam/BeamParticleContainer.cpp @@ -579,9 +579,9 @@ BeamParticleContainer::InSituComputeDiags (int islice) amrex::constexpr_for<0, m_insitu_n_spin>( [&] (auto idx) { - m_insitu_spin_data[islice + idx.value * m_nslices] = - amrex::get(a_spin) * sum_w_inv; - m_insitu_sum_spin_data[idx.value] += amrex::get(a_spin); + m_insitu_spin_data[islice + idx * m_nslices] = + amrex::get(a_spin) * sum_w_inv; + m_insitu_sum_spin_data[idx] += amrex::get(a_spin); } ); }