Skip to content

Commit

Permalink
Fix Spin in-situ diagnostic for NVCC 11.5 (#1094)
Browse files Browse the repository at this point in the history
* fix spin insitu diagnostic for NVCC 115

* put CI back to CUDA 11 8
  • Loading branch information
AlexanderSinn authored Apr 9, 2024
1 parent 2d52008 commit 9040d62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/particles/beam/BeamParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<idx.value>(a_spin) * sum_w_inv;
m_insitu_sum_spin_data[idx.value] += amrex::get<idx.value>(a_spin);
m_insitu_spin_data[islice + idx * m_nslices] =
amrex::get<idx>(a_spin) * sum_w_inv;
m_insitu_sum_spin_data[idx] += amrex::get<idx>(a_spin);
}
);
}
Expand Down

0 comments on commit 9040d62

Please sign in to comment.