/home/runner/work/spades/spades/Source/Models/Phold.H Source File
SPADES API
|
Phold.H
Go to the documentation of this file.
InitMessageType init_message_op() const
Initialize message operator.
Definition Phold.H:224
ProcessType process_op() const
Message processing operator.
Definition Phold.H:130
InitEntityType init_entity_op() const
Initialize entity operator.
Definition Phold.H:169
void read_parameters()
Read user parameters.
Definition Phold.cpp:7
static std::string identifier()
Class identifier name.
Definition Phold.H:21
Definition Phold.cpp:3
amrex::Real random_exponential(const amrex::Real lambda)
Exponential distribution.
Definition Utilities.cpp:4
A struct that defines an operator for initializing entities.
Definition Phold.H:140
int m_entities_per_lp
Number of entities per logical process (optional user input)
Definition Phold.H:160
AMREX_GPU_DEVICE void operator()(const EParrs &ent_parrs, const int n) const
Callable operator to initialize an entity.
Definition Phold.H:150
A struct that defines an operator for initializing entities.
Definition Phold.H:182
AMREX_GPU_DEVICE void operator()(const MParrs &msg_parrs, const int n, amrex::RandomEngine const &engine) const
Callable operator to initialize an message.
Definition Phold.H:192
amrex::Real m_lookahead
Lookahead value (optional user input)
Definition Phold.H:207
int m_messages_per_lp
Initial messages per LP.
Definition Phold.H:210
A struct that defines an operator for processing messages.
Definition Phold.H:36
int m_entities_per_lp
Number of entities per logical process (optional user input)
Definition Phold.H:112
AMREX_GPU_DEVICE int operator()(const MParrs &msg_parrs, const EParrs &ent_parrs, const amrex::IntVect &iv, const int rcv_msg, const int snd_msg, const int ent, const int ent_idx, amrex::RandomEngine const &engine) const
Callable operator to process a message.
Definition Phold.H:53
amrex::Real m_lookahead
Lookahead value (optional user input)
Definition Phold.H:104
amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > m_dx
Spatial discretization.
Definition Phold.H:115
amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > m_plo
Problem low bounds.
Definition Phold.H:121
static constexpr int MESSAGE
Message.
Definition MessageData.H:36
static constexpr int PROCESSED
Processed message.
Definition MessageData.H:38
Generated by