Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ShamrockCtx Class Reference
+ Collaboration diagram for ShamrockCtx:

Public Member Functions

void pdata_layout_new ()
 
shamrock::patch::PatchDataLayerLayoutget_pdl_write ()
 
template<class T >
void pdata_layout_add_field (std::string fname, u32 nvar)
 
void pdata_layout_add_field_t (std::string fname, u32 nvar, std::string type)
 
void pdata_layout_print ()
 
void dump_status ()
 
void init_sched (u64 crit_split, u64 crit_merge)
 
void close_sched ()
 
std::vector< std::unique_ptr< shamrock::patch::PatchDataLayer > > gather_data (u32 rank)
 
std::vector< std::unique_ptr< shamrock::patch::PatchDataLayer > > allgather_data ()
 
void set_coord_domain_bound (std::tuple< f64_3, f64_3 > box)
 
void scheduler_step (bool do_split_merge, bool do_load_balancing)
 
std::vector< shamrock::patch::Patchget_patch_list_global ()
 
bool is_scheduler_initialized ()
 returns true if the scheduler is initialized
 

Public Attributes

std::shared_ptr< shamrock::patch::PatchDataLayerLayoutpdl
 
std::unique_ptr< PatchSchedulersched
 

Detailed Description

Definition at line 42 of file ShamrockCtx.hpp.

Constructor & Destructor Documentation

◆ ShamrockCtx()

ShamrockCtx::ShamrockCtx ( )
inline

Definition at line 117 of file ShamrockCtx.hpp.

◆ ~ShamrockCtx()

ShamrockCtx::~ShamrockCtx ( )
inline

Definition at line 121 of file ShamrockCtx.hpp.

Member Function Documentation

◆ allgather_data()

std::vector< std::unique_ptr< shamrock::patch::PatchDataLayer > > ShamrockCtx::allgather_data ( )
inline

Definition at line 129 of file ShamrockCtx.hpp.

◆ close_sched()

void ShamrockCtx::close_sched ( )
inline

Definition at line 115 of file ShamrockCtx.hpp.

◆ dump_status()

void ShamrockCtx::dump_status ( )
inline

Definition at line 97 of file ShamrockCtx.hpp.

◆ gather_data()

std::vector< std::unique_ptr< shamrock::patch::PatchDataLayer > > ShamrockCtx::gather_data ( u32  rank)
inline

Definition at line 125 of file ShamrockCtx.hpp.

◆ get_patch_list_global()

std::vector< shamrock::patch::Patch > ShamrockCtx::get_patch_list_global ( )
inline

Definition at line 184 of file ShamrockCtx.hpp.

◆ get_pdl_write()

shamrock::patch::PatchDataLayerLayout & ShamrockCtx::get_pdl_write ( )
inline

Definition at line 68 of file ShamrockCtx.hpp.

◆ init_sched()

void ShamrockCtx::init_sched ( u64  crit_split,
u64  crit_merge 
)
inline

Definition at line 105 of file ShamrockCtx.hpp.

◆ is_scheduler_initialized()

bool ShamrockCtx::is_scheduler_initialized ( )
inline

returns true if the scheduler is initialized

Definition at line 192 of file ShamrockCtx.hpp.

◆ pdata_layout_add_field()

template<class T >
void ShamrockCtx::pdata_layout_add_field ( std::string  fname,
u32  nvar 
)
inline

Definition at line 76 of file ShamrockCtx.hpp.

◆ pdata_layout_add_field_t()

void ShamrockCtx::pdata_layout_add_field_t ( std::string  fname,
u32  nvar,
std::string  type 
)
inline

Definition at line 83 of file ShamrockCtx.hpp.

◆ pdata_layout_new()

void ShamrockCtx::pdata_layout_new ( )
inline

Definition at line 47 of file ShamrockCtx.hpp.

◆ pdata_layout_print()

void ShamrockCtx::pdata_layout_print ( )
inline

Definition at line 90 of file ShamrockCtx.hpp.

◆ scheduler_step()

void ShamrockCtx::scheduler_step ( bool  do_split_merge,
bool  do_load_balancing 
)
inline

Definition at line 177 of file ShamrockCtx.hpp.

◆ set_coord_domain_bound()

void ShamrockCtx::set_coord_domain_bound ( std::tuple< f64_3, f64_3 >  box)
inline

Definition at line 147 of file ShamrockCtx.hpp.

Member Data Documentation

◆ pdl

std::shared_ptr<shamrock::patch::PatchDataLayerLayout> ShamrockCtx::pdl

Definition at line 44 of file ShamrockCtx.hpp.

◆ sched

std::unique_ptr<PatchScheduler> ShamrockCtx::sched

Definition at line 45 of file ShamrockCtx.hpp.


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