Block-Structured AMR Software Framework
amrex::CellConservativeProtected Class Reference

Lin. cons. interp. on cc data with protection against under/over-shoots. More...

#include <AMReX_Interpolater.H>

Inheritance diagram for amrex::CellConservativeProtected:
amrex::CellConservativeLinear amrex::Interpolater amrex::InterpBase

Public Member Functions

 CellConservativeProtected ()
 The constructor. More...
 
void protect (const FArrayBox &crse, int crse_comp, FArrayBox &fine, int fine_comp, FArrayBox &fine_state, int state_comp, int ncomp, const Box &fine_region, const IntVect &ratio, const Geometry &crse_geom, const Geometry &fine_geom, Vector< BCRec > &bcr, RunOn runon) override
 Re-visit the interpolation to protect against under- or overshoots. More...
 
- Public Member Functions inherited from amrex::CellConservativeLinear
 CellConservativeLinear (bool do_linear_limiting_=true)
 The constructor. More...
 
Box CoarseBox (const Box &fine, int ratio) override
 Returns coarsened box given fine box and refinement ratio. More...
 
Box CoarseBox (const Box &fine, const IntVect &ratio) override
 Returns coarsened box given fine box and refinement ratio. More...
 
void interp (const FArrayBox &crse, int crse_comp, FArrayBox &fine, int fine_comp, int ncomp, const Box &fine_region, const IntVect &ratio, const Geometry &crse_geom, const Geometry &fine_geom, Vector< BCRec > const &bcr, int, int, RunOn runon) override
 Coarse to fine interpolation in space. More...
 
- Public Member Functions inherited from amrex::Interpolater
virtual void interp_face (const FArrayBox &, const int, FArrayBox &, const int, const int, const Box &, const IntVect &, const IArrayBox &, const Geometry &, const Geometry &, Vector< BCRec > const &, const int, RunOn)
 Coarse to fine interpolation in space for face-based data. More...
 
virtual void interp_arr (Array< FArrayBox *, AMREX_SPACEDIM > const &, const int, Array< FArrayBox *, AMREX_SPACEDIM > const &, const int, const int, const Box &, const IntVect &, Array< IArrayBox *, AMREX_SPACEDIM > const &, const Geometry &, const Geometry &, Vector< Array< BCRec, AMREX_SPACEDIM > > const &, const int, const int, const RunOn)
 Coarse to fine interpolation in space. Takes an Array of FArrayBox*s. More...
 
- Public Member Functions inherited from amrex::InterpBase
 InterpBase ()=default
 
virtual ~InterpBase ()=default
 
 InterpBase (InterpBase const &) noexcept=default
 
 InterpBase (InterpBase &&) noexcept=default
 
InterpBaseoperator= (InterpBase const &) noexcept=default
 
InterpBaseoperator= (InterpBase &&) noexcept=default
 
InterpolaterBoxCoarsener BoxCoarsener (const IntVect &ratio)
 

Additional Inherited Members

- Static Public Member Functions inherited from amrex::InterpBase
static Vector< intGetBCArray (const Vector< BCRec > &bcr)
 
- Protected Attributes inherited from amrex::CellConservativeLinear
bool do_linear_limiting
 

Detailed Description

Lin. cons. interp. on cc data with protection against under/over-shoots.

Linear conservative interpolation on cell centered data but with protection against undershoots or overshoots.

Constructor & Destructor Documentation

◆ CellConservativeProtected()

amrex::CellConservativeProtected::CellConservativeProtected ( )

The constructor.

Member Function Documentation

◆ protect()

void amrex::CellConservativeProtected::protect ( const FArrayBox crse,
int  crse_comp,
FArrayBox fine,
int  fine_comp,
FArrayBox fine_state,
int  state_comp,
int  ncomp,
const Box fine_region,
const IntVect ratio,
const Geometry crse_geom,
const Geometry fine_geom,
Vector< BCRec > &  bcr,
RunOn  runon 
)
overridevirtual

Re-visit the interpolation to protect against under- or overshoots.

Parameters
crse
crse_comp
fine
fine_comp
fine_state
state_comp
ncomp
fine_region
ratio
crse_geom
fine_geom
bcr

Reimplemented from amrex::Interpolater.


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