1 #ifndef ERF_TIME_INTERP_DATA_H_
2 #define ERF_TIME_INTERP_DATA_H_
4 #include <AMReX_MultiFab.H>
5 #include <AMReX_Vector.H>
6 #include <AMReX_REAL.H>
40 void add_var(amrex::MultiFab* var_data,
int own_data) {
41 m_data.push_back(var_data);
53 for (
int i = 0; i <
num_vars(); ++i) {
67 amrex::Vector<amrex::MultiFab*>
m_data;
Definition: ERF_ConsoleIO.cpp:12
Definition: ERF_TimeInterpolatedData.H:8
void set_time(amrex::Real time)
Definition: ERF_TimeInterpolatedData.H:34
TimeInterpolatedData()=default
void add_var(amrex::MultiFab *var_data, int own_data)
Definition: ERF_TimeInterpolatedData.H:40
amrex::Real get_time() const
Definition: ERF_TimeInterpolatedData.H:38
amrex::MultiFab & get_var(int var_idx)
Definition: ERF_TimeInterpolatedData.H:45
void clear()
Definition: ERF_TimeInterpolatedData.H:51
int num_vars()
Definition: ERF_TimeInterpolatedData.H:49
amrex::Vector< int > m_owns_data
Definition: ERF_TimeInterpolatedData.H:68
amrex::Vector< amrex::MultiFab * > m_data
Definition: ERF_TimeInterpolatedData.H:67
amrex::Real m_time
Definition: ERF_TimeInterpolatedData.H:69
TimeInterpolatedData(amrex::Real time)
Definition: ERF_TimeInterpolatedData.H:11
~TimeInterpolatedData()
Definition: ERF_TimeInterpolatedData.H:13
TimeInterpolatedData(TimeInterpolatedData &&) noexcept=default