![]() |
Shamrock 2025.10.0
Astrophysical Code
|
utility class to handle AMR blocks More...
#include <shammodels/common/include/shammodels/common/amr/AMRBlock.hpp>
Public Types | |
| using | Tscal = shambase::VecComponent< Tvec > |
Public Member Functions | |
| template<class Acccellcoord > | |
| void | for_each_neigh_faces (shamrock::tree::ObjectCacheIterator &block_faces_iter, Acccellcoord acc_block_min, Acccellcoord acc_block_max, const u32 id_a, const shammath::AABB< TgridVec > aabb_cell) |
Static Public Member Functions | |
| static constexpr u32 | get_index (std::array< u32, dim > coord) noexcept |
| Get the local index within the AMR block. | |
| static constexpr i32 | get_index_relative (std::array< i32, dim > coord) noexcept |
| static constexpr std::array< u32, dim > | get_coord (u32 i) noexcept |
| static std::pair< Tvec, Tvec > | utils_get_cell_coords (std::pair< TgridVec, TgridVec > input, u32 lid) |
| template<class Func > | |
| static void | for_each_cell_in_block (Tvec delta_cell, Func &&functor) noexcept |
| template<class Func > | |
| static void | for_each_cells (sycl::handler &cgh, u32 block_cnt, const char *name, Func &&f) |
| for each cell routine for amr block. This handle a loop over all the cells in blocks. | |
| template<class Func > | |
| static void | for_each_cells_lid (sycl::handler &cgh, u32 block_cnt, const char *name, Func &&f) |
Static Public Attributes | |
| static constexpr u32 | dim = shambase::VectorProperties<TgridVec>::dimension |
| static constexpr u32 | NsideBlockPow = _NsideBlockPow |
| static constexpr u32 | Nside = 1U << NsideBlockPow |
| static constexpr u32 | side_size = Nside |
| static constexpr u32 | block_size = shambase::pow_constexpr<dim>(Nside) |
utility class to handle AMR blocks
| Tvec | |
| NsideBlockPow |
Definition at line 35 of file AMRBlock.hpp.
| using shammodels::amr::AMRBlock< Tvec, TgridVec, _NsideBlockPow >::Tscal = shambase::VecComponent<Tvec> |
Definition at line 36 of file AMRBlock.hpp.
|
inlinestaticnoexcept |
Definition at line 126 of file AMRBlock.hpp.
|
inlinestatic |
for each cell routine for amr block. This handle a loop over all the cells in blocks.
| Func |
| cgh | |
| name | |
| block_cnt | |
| f |
Definition at line 162 of file AMRBlock.hpp.
|
inlinestatic |
Definition at line 174 of file AMRBlock.hpp.
|
inline |
Definition at line 187 of file AMRBlock.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 98 of file AMRBlock.hpp.
|
inlinestaticconstexprnoexcept |
Get the local index within the AMR block.
| coord | wanted integer coordinates |
Definition at line 52 of file AMRBlock.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 75 of file AMRBlock.hpp.
|
inlinestatic |
Definition at line 109 of file AMRBlock.hpp.
|
staticconstexpr |
Definition at line 44 of file AMRBlock.hpp.
|
staticconstexpr |
Definition at line 38 of file AMRBlock.hpp.
|
staticconstexpr |
Definition at line 41 of file AMRBlock.hpp.
|
staticconstexpr |
Definition at line 40 of file AMRBlock.hpp.
|
staticconstexpr |
Definition at line 42 of file AMRBlock.hpp.