We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 589068b + 3eb3a47 commit ace369bCopy full SHA for ace369b
core/src/Cabana_ParticleList.hpp
@@ -213,14 +213,14 @@ class ParticleList
213
}
214
215
//! Get the number of particles in the list.
216
- std::size_t size() const { return _aosoa.size(); }
+ KOKKOS_INLINE_FUNCTION std::size_t size() const { return _aosoa.size(); }
217
//! Update the number of particles in the list.
218
void resize( const std::size_t n ) { _aosoa.resize( n ); }
219
220
//! Get the AoSoA.
221
aosoa_type& aosoa() { return _aosoa; }
222
//! Get the AoSoA (const).
223
- const aosoa_type& aosoa() const { return _aosoa; }
+ KOKKOS_INLINE_FUNCTION const aosoa_type& aosoa() const { return _aosoa; }
224
225
//! Get a single particle.
226
template <class IndexType>
0 commit comments