Skip to content

Commit 54e2d4e

Browse files
committed
query aosoa for vector length instead of call[Cing directly
1 parent 0d560ea commit 54e2d4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SliceWrapper.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ using namespace Cabana;
2626

2727
template <class ExecutionSpace, class MemorySpace, class... Ts>
2828
class CabSliceFactory {
29-
public:
30-
static constexpr int vecLen = Impl::PerformanceTraits<ExecutionSpace>::vector_length;
31-
private:
3229
using TypeTuple = std::tuple<Ts...>;
3330
using DeviceType = Kokkos::Device<ExecutionSpace, MemorySpace>;
3431
using DataTypes = Cabana::MemberTypes<Ts...>;
32+
public:
33+
static constexpr int vecLen = Cabana::AoSoA<DataTypes, DeviceType>::vector_length;
34+
private:
3535
using soa_t = SoA<DataTypes, vecLen>;
3636

3737
template <class T, int stride>

0 commit comments

Comments
 (0)