Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
shamrock::amr::AMRBlockCoord< Tcoord, dim > Class Template Reference

Public Member Functions

auto split ()
 

Static Public Member Functions

static auto get_split_coord (Tcoord bmin, Tcoord bmax) -> Tcoord
 
static auto get_split (Tcoord bmin, Tcoord bmax) -> std::array< AMRBlockCoord, splts_count >
 
static AMRBlockCoord get_merge (AMRBlockCoord c1, AMRBlockCoord c2)
 
static AMRBlockCoord get_merge (std::array< AMRBlockCoord, splts_count > others)
 
static bool are_mergeable (std::array< AMRBlockCoord, splts_count > others)
 

Public Attributes

Tcoord bmin
 
Tcoord bmax
 

Static Public Attributes

static constexpr u32 splts_count = 1U << dim
 

Detailed Description

template<class Tcoord, u32 dim>
class shamrock::amr::AMRBlockCoord< Tcoord, dim >

Definition at line 26 of file AMRCell.hpp.

Member Function Documentation

◆ are_mergeable()

template<class Tcoord , u32 dim>
static bool shamrock::amr::AMRBlockCoord< Tcoord, dim >::are_mergeable ( std::array< AMRBlockCoord< Tcoord, dim >, splts_count >  others)
inlinestatic

Definition at line 83 of file AMRCell.hpp.

◆ get_merge() [1/2]

template<class Tcoord , u32 dim>
static AMRBlockCoord shamrock::amr::AMRBlockCoord< Tcoord, dim >::get_merge ( AMRBlockCoord< Tcoord, dim >  c1,
AMRBlockCoord< Tcoord, dim >  c2 
)
inlinestatic

Definition at line 69 of file AMRCell.hpp.

◆ get_merge() [2/2]

template<class Tcoord , u32 dim>
static AMRBlockCoord shamrock::amr::AMRBlockCoord< Tcoord, dim >::get_merge ( std::array< AMRBlockCoord< Tcoord, dim >, splts_count >  others)
inlinestatic

Definition at line 73 of file AMRCell.hpp.

◆ get_split()

template<class Tcoord , u32 dim>
static auto shamrock::amr::AMRBlockCoord< Tcoord, dim >::get_split ( Tcoord  bmin,
Tcoord  bmax 
) -> std::array<AMRBlockCoord, splts_count>
inlinestatic

Definition at line 36 of file AMRCell.hpp.

◆ get_split_coord()

template<class Tcoord , u32 dim>
static auto shamrock::amr::AMRBlockCoord< Tcoord, dim >::get_split_coord ( Tcoord  bmin,
Tcoord  bmax 
) -> Tcoord
inlinestatic

Definition at line 32 of file AMRCell.hpp.

◆ split()

template<class Tcoord , u32 dim>
auto shamrock::amr::AMRBlockCoord< Tcoord, dim >::split ( )
inline

Definition at line 67 of file AMRCell.hpp.

Member Data Documentation

◆ bmax

template<class Tcoord , u32 dim>
Tcoord shamrock::amr::AMRBlockCoord< Tcoord, dim >::bmax

Definition at line 30 of file AMRCell.hpp.

◆ bmin

template<class Tcoord , u32 dim>
Tcoord shamrock::amr::AMRBlockCoord< Tcoord, dim >::bmin

Definition at line 30 of file AMRCell.hpp.

◆ splts_count

template<class Tcoord , u32 dim>
constexpr u32 shamrock::amr::AMRBlockCoord< Tcoord, dim >::splts_count = 1U << dim
staticconstexpr

Definition at line 29 of file AMRCell.hpp.


The documentation for this class was generated from the following file: