ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
SampleData Class Reference

#include <ERF_SampleData.H>

Collaboration diagram for SampleData:

Public Member Functions

 SampleData (bool do_line=false, bool do_plane=false)
 
void get_sample_data (amrex::Vector< amrex::Geometry > &geom, amrex::Vector< amrex::Vector< amrex::MultiFab >> &vars_new)
 
void write_sample_data (amrex::Vector< amrex::Real > &time, amrex::Vector< int > &level_steps, amrex::Vector< amrex::IntVect > &ref_ratio, amrex::Vector< amrex::Geometry > &geom)
 

Private Attributes

std::unique_ptr< LineSamplerm_ls = nullptr
 
std::unique_ptr< PlaneSamplerm_ps = nullptr
 

Constructor & Destructor Documentation

◆ SampleData()

SampleData::SampleData ( bool  do_line = false,
bool  do_plane = false 
)
inlineexplicit
381  {
382  if(do_line) m_ls = std::make_unique<LineSampler >();
383  if(do_plane) m_ps = std::make_unique<PlaneSampler>();
384  }
std::unique_ptr< LineSampler > m_ls
Definition: ERF_SampleData.H:407
std::unique_ptr< PlaneSampler > m_ps
Definition: ERF_SampleData.H:410

Member Function Documentation

◆ get_sample_data()

void SampleData::get_sample_data ( amrex::Vector< amrex::Geometry > &  geom,
amrex::Vector< amrex::Vector< amrex::MultiFab >> &  vars_new 
)
inline
389  {
390  if (m_ls) m_ls->get_line_mfs(vars_new);
391  if (m_ps) m_ps->get_plane_mfs(geom, vars_new);
392  }

◆ write_sample_data()

void SampleData::write_sample_data ( amrex::Vector< amrex::Real > &  time,
amrex::Vector< int > &  level_steps,
amrex::Vector< amrex::IntVect > &  ref_ratio,
amrex::Vector< amrex::Geometry > &  geom 
)
inline
399  {
400  if (m_ls) m_ls->write_line_mfs(time, level_steps, ref_ratio, geom);
401  if (m_ls) m_ps->write_plane_mfs(time, level_steps, ref_ratio, geom);
402  }

Member Data Documentation

◆ m_ls

std::unique_ptr<LineSampler> SampleData::m_ls = nullptr
private

◆ m_ps

std::unique_ptr<PlaneSampler> SampleData::m_ps = nullptr
private

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