46 for (
int lvl=0; lvl < nlvl; lvl++)
73 int finestLevel,
bool ownData);
210 virtual void print();
Vector< LevelData< FArrayBox > * > getData()
Definition: AmrAdaptor.H:79
virtual void compare(ChomboSundialsAdaptor &ax, Real b)
void define(Vector< LevelData< FArrayBox > *> amrData, Vector< int > refRatio, int finestLevel, bool ownData)
virtual bool constrMask(ChomboSundialsAdaptor &ac, ChomboSundialsAdaptor &am)
virtual Real dotProd(ChomboSundialsAdaptor &ax)
virtual void setConst(Real c)
bool getOwnData()
Definition: AmrAdaptor.H:97
virtual void prod(ChomboSundialsAdaptor &ax, ChomboSundialsAdaptor &ay)
virtual void linearSum(ChomboSundialsAdaptor &x, ChomboSundialsAdaptor &y, Real a, Real b)
virtual bool copyTo(ChomboSundialsAdaptor &a)
virtual unsigned long getLength()
one dimensional dynamic array
Definition: Vector.H:53
virtual void abs(ChomboSundialsAdaptor &ax)
virtual ChomboSundialsAdaptor * newAdaptor()
virtual void printFileHDF(const char *filename)
Vector< LevelData< FArrayBox > * > m_amrData
Pointers to AMR hierarchy data.
Definition: AmrAdaptor.H:237
Virtual base class contract to interact with SUNDIALS.
Definition: ChomboSundialsAdaptor.H:26
Data holder for AMR hierarchy data to interact with SUNDIALS.
Definition: AmrAdaptor.H:30
unsigned long m_length
Cached nvector length, sum of all unmasked values, across all ranks.
Definition: AmrAdaptor.H:245
virtual Real wL2Norm(ChomboSundialsAdaptor &aw)
virtual ~AmrAdaptor()
Definition: AmrAdaptor.H:44
virtual void inv(ChomboSundialsAdaptor &ax)
Vector< int > m_refRatio
AMR hierarchy refinement ratios between levels
Definition: AmrAdaptor.H:239
virtual void div(ChomboSundialsAdaptor &ax, ChomboSundialsAdaptor &ay)
virtual Real minQuotient(ChomboSundialsAdaptor &adenom)
double Real
Definition: REAL.H:33
size_t size() const
Definition: Vector.H:192
bool m_ownData
If true, will call delete in destructor.
Definition: AmrAdaptor.H:249
AmrAdaptor()
Definition: AmrAdaptor.H:38
virtual void printFile(FILE *outfile)
size_t getFinestLevel()
Definition: AmrAdaptor.H:91
Vector< int > getRefRatio()
Definition: AmrAdaptor.H:85
int m_comp
Number of components in the LevelData<FArrayBox>'s.
Definition: AmrAdaptor.H:247
Vector< LevelData< FArrayBox > * > m_amrMask
AMR mask, 1 for uncovered values, 0 for covered values
Definition: AmrAdaptor.H:243
virtual void scale(ChomboSundialsAdaptor &ax, Real c)
virtual bool invTest(ChomboSundialsAdaptor &ax)
virtual Real wRMSNorm(ChomboSundialsAdaptor &aw)
virtual void addConst(ChomboSundialsAdaptor &ax, Real b)
virtual Real wRMSNormMask(ChomboSundialsAdaptor &aw, ChomboSundialsAdaptor &aid)
size_t m_finestLevel
finest active AMR level
Definition: AmrAdaptor.H:241