11 #ifndef _SIMPLEADAPTOR_H 12 #define _SIMPLEADAPTOR_H 190 virtual void print();
212 if (sa == NULL)
return false;
virtual void prod(ChomboSundialsAdaptor &ax, ChomboSundialsAdaptor &ay)
Interval interval() const
Definition: BoxLayoutData.H:312
virtual void inv(ChomboSundialsAdaptor &ax)
virtual void addConst(ChomboSundialsAdaptor &ax, Real b)
virtual void printFile(FILE *outfile)
virtual bool invTest(ChomboSundialsAdaptor &ax)
virtual ~SimpleAdaptor()
Definition: SimpleAdaptor.H:45
virtual Real minQuotient(ChomboSundialsAdaptor &adenom)
virtual unsigned long getLength()
bool m_ownData
If true, will call delete in destructor.
Definition: SimpleAdaptor.H:246
Virtual base class contract to interact with SUNDIALS.
Definition: ChomboSundialsAdaptor.H:26
LevelData< FArrayBox > * getData()
Definition: SimpleAdaptor.H:65
virtual void printFileHDF(const char *filename)
bool getOwnData()
Definition: SimpleAdaptor.H:71
virtual Real wRMSNormMask(ChomboSundialsAdaptor &aw, ChomboSundialsAdaptor &aid)
virtual ChomboSundialsAdaptor * newAdaptor()
Definition: SimpleAdaptor.H:223
virtual void exchange(void)
Simplest case – do all components.
Definition: LevelDataI.H:470
virtual Real dotProd(ChomboSundialsAdaptor &ax)
virtual void exchange()
Definition: SimpleAdaptor.H:182
virtual void compare(ChomboSundialsAdaptor &ax, Real b)
int m_nComp
Number of components in the LevelData<FArrayBox>
Definition: SimpleAdaptor.H:242
double Real
Definition: REAL.H:33
virtual void define(const DisjointBoxLayout &dp, int comps, const IntVect &ghost=IntVect::Zero, const DataFactory< T > &a_factory=DefaultDataFactory< T >())
Definition: LevelDataI.H:93
virtual void copyTo(const Interval &srcComps, BoxLayoutData< T > &dest, const Interval &destComps) const
Definition: LevelDataI.H:221
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
LevelData< FArrayBox > * m_data
Pointer to LevelData<FArrayBox> data this wraps.
Definition: SimpleAdaptor.H:238
virtual void abs(ChomboSundialsAdaptor &ax)
SimpleAdaptor()
Definition: SimpleAdaptor.H:40
IntVect m_ghost
Number of ghost cells in the LevelData<FArrayBox>
Definition: SimpleAdaptor.H:244
virtual void setConst(Real c)
virtual void div(ChomboSundialsAdaptor &ax, ChomboSundialsAdaptor &ay)
DisjointBoxLayout m_dp
DisjointBoxLayout of the LevelData<FArrayBox>
Definition: SimpleAdaptor.H:240
virtual void linearSum(ChomboSundialsAdaptor &x, ChomboSundialsAdaptor &y, Real a, Real b)
const DisjointBoxLayout & disjointBoxLayout() const
Definition: LevelData.H:225
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
virtual bool constrMask(ChomboSundialsAdaptor &ac, ChomboSundialsAdaptor &am)
Class to interface a LevelData<FArrayBox> with SUNDIALS.
Definition: SimpleAdaptor.H:32
virtual Real wRMSNorm(ChomboSundialsAdaptor &aw)
virtual void scale(ChomboSundialsAdaptor &ax, Real c)
virtual Real wL2Norm(ChomboSundialsAdaptor &aw)
void define(LevelData< FArrayBox > *lvlData, bool ownData)
virtual bool copyTo(ChomboSundialsAdaptor &a)
Definition: SimpleAdaptor.H:209