chombo-discharge
Public Member Functions | Protected Attributes | List of all members
Physics::CdrPlasma::CdrPlasmaGodunovStepper::RtStorage Class Reference

Utility class for memory handling in CdrPlasmaStepper. More...

#include <CD_CdrPlasmaGodunovStorage.H>

Collaboration diagram for Physics::CdrPlasma::CdrPlasmaGodunovStepper::RtStorage:
Collaboration graph
[legend]

Public Member Functions

 RtStorage ()=delete
 Disallowed weak constructor.
 
 RtStorage (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 ~RtStorage ()
 Destructor.
 
virtual void allocateStorage ()
 Allocate function – allocates the flux data holders.
 
virtual void deallocateStorage ()
 Allocate function – deallocates the flux data holders.
 
EBAMRIVDatagetEbFlux () const
 Get scratch storage that holds the EB flux.
 
EBAMRIFDatagetDomainFlux () const
 Get scratch storage that holds the domain.
 

Protected Attributes

RefCountedPtr< AmrMeshm_amr
 Reference to AmrMesh.
 
std::string m_realm
 Realm where data lives.
 
phase::which_phase m_phase
 Phase where data lives.
 
EBAMRIVData m_scratchIV
 Scratch storage on EB.
 
EBAMRIFData m_scratchIF
 Scratch storage on domain faces.
 

Detailed Description

Utility class for memory handling in CdrPlasmaStepper.

This class exists because we often need some extra storage when advancing the equations.

Constructor & Destructor Documentation

◆ RtStorage()

CdrPlasmaGodunovStepper::RtStorage::RtStorage ( const RefCountedPtr< AmrMesh > &  a_amr,
const std::string  a_realm,
const phase::which_phase  a_phase 
)

Full constructor. Can call allocation functions after this.

Parameters
[in]a_amrReference to AmrMesh
[in]a_realmRealm where storage lives
[in]a_phasePhase where storage lives (only single-phased data in here)

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