Skip to content

Commit

Permalink
Merge branch 'fix-regressions' into 'master'
Browse files Browse the repository at this point in the history
Fix particle base bugs

See merge request OPAL/Libraries/ippl!194
  • Loading branch information
Arc676 committed Jul 11, 2023
2 parents 75fcd6c + 350455a commit d47514c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Particle/ParticleBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ namespace ippl {
*/
unsigned getAttributeNum() const {
unsigned total = 0;
forAllAttributes([&]<typename Attributes>(const Attributes& att) {
total += att.size();
detail::runForAllSpaces([&]<typename MemorySpace>() {
total += attributes_m.template get<MemorySpace>().size();
});
return total;
}
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/Particle/ParticleBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ParticleBaseTest : public ::testing::Test, public MultirankUtils<1, 2, 3,
using playout_type = ippl::detail::ParticleLayout<double, Dim>;

template <unsigned Dim>
using bunch_type = ippl::ParticleBase<playout_type<Dim>>;
using bunch_type = ippl::ParticleBase<playout_type<Dim>, Kokkos::DefaultExecutionSpace>;

ParticleBaseTest() { setup(this); }

Expand Down

0 comments on commit d47514c

Please sign in to comment.