Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahdhn committed Feb 26, 2024
1 parent 5ba9e26 commit 0c84c2b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/lbmMultiRes/fusedFinest.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inline NEON_CUDA_HOST_DEVICE void stream(const typename Neon::domain::mGrid::Idx
const auto nghCell = out.helpGetNghIdx(cell, dir);
if (!out.hasChildren(nghCell)) {
if (out.isActive(nghCell)) {
auto nghType = type(nghCell);
auto nghType = type(nghCell,0);
if (nghType == CellType::bulk) {
out(nghCell, q) = cellVal;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ namespace Neon::domain::details::disaggregated::bGrid {
isActive(const Idx &cell,
const typename SBlock::BitMask *mask = nullptr) const -> bool;

NEON_CUDA_HOST_DEVICE inline auto
isActive(const Idx& cell,
const NghIdx nghDir) const -> bool;

NEON_CUDA_HOST_DEVICE inline auto
getDomainSize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,4 +454,16 @@ bPartition<T, C, SBlock>::isActive(const Idx& cell,
}
}

template <typename T, int C, typename SBlock>
NEON_CUDA_HOST_DEVICE inline auto
bPartition<T, C, SBlock>::isActive(const Idx& cell,
const NghIdx nghDir) const -> bool
{
Idx nghCell = this->helpGetNghIdx(cell, nghDir);
if (nghCell.mDataBlockIdx == std::numeric_limits<typename Idx::DataBlockIdx>::max()) {
return false;
}
return isActive(nghCell);
}

} // namespace Neon::domain::details::disaggregated::bGrid

0 comments on commit 0c84c2b

Please sign in to comment.