Initializer< ICOp > Class Template Reference
SPADES API
|
spades::ic::Initializer< ICOp > Class Template Reference
Initial condition class. More...
#include <IC.H>
Inheritance diagram for spades::ic::Initializer< ICOp >:
Collaboration diagram for spades::ic::Initializer< ICOp >:
Public Types | |
using | ICDeviceOp = typename ICOp::DeviceType |
Public Member Functions | |
Initializer (const ICOp ic_op, amrex::MultiFab &state) | |
~Initializer () override=default | |
void | initialize (amrex::GeometryData const &geom) override |
Initialize m_state using the initial condition operator. | |
![]() | |
InitializerBase ()=default | |
virtual | ~InitializerBase ()=default |
Public Attributes | |
const ICOp | m_op |
Initial condition operator. | |
amrex::MultiFab & | m_state |
State that will be filled with the initial condition operator. | |
Detailed Description
template<typename ICOp>
class spades::ic::Initializer< ICOp >
class spades::ic::Initializer< ICOp >
Initial condition class.
Member Typedef Documentation
◆ ICDeviceOp
template<typename ICOp >
using spades::ic::Initializer< ICOp >::ICDeviceOp = typename ICOp::DeviceType |
Constructor & Destructor Documentation
◆ Initializer()
template<typename ICOp >
|
inline |
63 {}
amrex::MultiFab & m_state
State that will be filled with the initial condition operator.
Definition IC.H:91
◆ ~Initializer()
template<typename ICOp >
|
overridedefault |
Member Function Documentation
◆ initialize()
template<typename ICOp >
|
inlineoverridevirtual |
Initialize m_state using the initial condition operator.
- Parameters
-
geom [in] geometry information
Implements spades::ic::InitializerBase.
72 {
75 amrex::ParallelFor(
77 [=] AMREX_GPU_DEVICE(int nbx, int i, int j, int k, int n) noexcept {
78 const amrex::IntVect iv(AMREX_D_DECL(i, j, k));
79 amrex::Real state = 0.0;
80 ic(iv, geom, state);
81
82 s_arrs[nbx](i, j, k, n) = state;
83 });
84 amrex::Gpu::streamSynchronize();
85 }
Member Data Documentation
◆ m_op
template<typename ICOp >
const ICOp spades::ic::Initializer< ICOp >::m_op |
Initial condition operator.
◆ m_state
template<typename ICOp >
amrex::MultiFab& spades::ic::Initializer< ICOp >::m_state |
State that will be filled with the initial condition operator.
The documentation for this class was generated from the following file:
- /home/runner/work/spades/spades/Source/IC.H
Generated by