InitEntityOp Struct Reference
|
SPADES API
|
spades::models::Phold::InitEntityOp Struct Reference
A struct that defines an operator for initializing entities. More...
#include <Phold.H>
Public Member Functions | |
| template<class EParrs > | |
| AMREX_GPU_DEVICE void | operator() (const EParrs &ent_parrs, const int n) const |
| Callable operator to initialize an entity. | |
Public Attributes | |
| int | m_entities_per_lp {1} |
| Number of entities per logical process (optional user input) | |
Detailed Description
A struct that defines an operator for initializing entities.
Member Function Documentation
◆ operator()()
template<class EParrs >
|
inline |
Callable operator to initialize an entity.
- Template Parameters
-
EParrs type of the entity particle array
- Parameters
-
ent_parrs entity particle array n index of the particle
151 {
152 const amrex::Real ts = 0.0;
153
154 ent_parrs.m_rdata[particles::CommonRealData::timestamp][n] = ts;
155 ent_parrs.m_idata[particles::CommonIntData::type_id][n] =
157 }
Member Data Documentation
◆ m_entities_per_lp
| int spades::models::Phold::InitEntityOp::m_entities_per_lp {1} |
Number of entities per logical process (optional user input)
160{1};
The documentation for this struct was generated from the following file:
- /home/runner/work/spades/spades/Source/Models/Phold.H
Generated by