chombo-discharge
|
Utility class for memory handling in CdrPlasmaStepper. More...
#include <CD_CdrPlasmaGodunovStorage.H>
Public Member Functions | |
FieldStorage ()=delete | |
Disallowed weak constructor. | |
FieldStorage (const RefCountedPtr< AmrMesh > &a_amr, const std::string a_realm, const phase::which_phase a_phase) | |
Full constructor. Can call allocation functions after this. More... | |
virtual | ~FieldStorage () |
Destructor. | |
virtual void | allocateStorage () |
Allocation function – allocates all the necessary memory. | |
virtual void | deallocateStorage () |
Deallocation function – deallocates all the necessary memory. | |
EBAMRCellData & | getElectricFieldCell () const |
Get scratch storage that holds the electric field at the cell center. | |
EBAMRIVData & | getElectricFieldEB () const |
Get scratch storage that holds the electric field at the EB. | |
EBAMRIFData & | getElectricFieldDomain () const |
Get scratch storage that holds the electric field at the domainf aces. | |
Protected Attributes | |
RefCountedPtr< AmrMesh > | m_amr |
Reference to AmrMesh. | |
std::string | m_realm |
Realm where data lives. | |
phase::which_phase | m_phase |
Phase where data lives. | |
EBAMRCellData | m_electricFieldCell |
Scratch storage for holding electric field at cell center. | |
EBAMRIVData | m_electricFieldEB |
Scratch storage for holding electric field at the EB. | |
EBAMRIFData | m_electricFieldDomain |
Scratch storage for holding electric field at domain faces. | |
Utility class for memory handling in CdrPlasmaStepper.
This class exists because we often need some extra storage when advancing the equations.
CdrPlasmaGodunovStepper::FieldStorage::FieldStorage | ( | const RefCountedPtr< AmrMesh > & | a_amr, |
const std::string | a_realm, | ||
const phase::which_phase | a_phase | ||
) |