Skip to content

Commit

Permalink
WIP: adding missing function to bGrid::Partition
Browse files Browse the repository at this point in the history
  • Loading branch information
massimim committed Dec 6, 2023
1 parent 4760cf5 commit 13c51e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libNeonDomain/include/Neon/domain/details/bGrid/bPartition.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ class bPartition
getDomainSize()
const -> Neon::index_3d;

auto mem() const -> T const *;

/**
* Gets the Idx for in the block view space.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ operator()(const Idx& cell,
return mMem[helpGetPitch(cell, card)];
}

template <typename T, int C, typename SBlock>
NEON_CUDA_HOST_DEVICE inline auto bPartition<T, C, SBlock>::
mem() const -> T const *{
return mMem;
}

template <typename T, int C, typename SBlock>
inline NEON_CUDA_HOST_DEVICE auto bPartition<T, C, SBlock>::
helpGetPitch(const Idx& idx, int card)
Expand Down

0 comments on commit 13c51e2

Please sign in to comment.