1 #ifndef AMREX_MLNODEABECLAPLACIAN_H_
2 #define AMREX_MLNODEABECLAPLACIAN_H_
3 #include <AMReX_Config.H>
36 std::string
name ()
const override {
return std::string(
"MLNodeABecLaplacian"); }
62 void reflux (
int crse_amrlev,
80 Real
m_a_scalar = std::numeric_limits<Real>::quiet_NaN();
81 Real
m_b_scalar = std::numeric_limits<Real>::quiet_NaN();
Array4< Real > fine
Definition: AMReX_InterpFaceRegister.cpp:90
Array4< Real const > crse
Definition: AMReX_InterpFaceRegister.cpp:92
Definition: AMReX_MLNodeABecLaplacian.H:14
void setACoeffs(int amrlev, Real a_acoef)
Definition: AMReX_MLNodeABecLaplacian.cpp:55
void averageDownCoeffsSameAmrLevel(int amrlev)
Definition: AMReX_MLNodeABecLaplacian.cpp:336
void Fapply(int amrlev, int mglev, MultiFab &out, const MultiFab &in) const final
Definition: AMReX_MLNodeABecLaplacian.cpp:85
bool m_needs_update
Definition: AMReX_MLNodeABecLaplacian.H:78
Vector< Vector< MultiFab > > m_a_coeffs
Definition: AMReX_MLNodeABecLaplacian.H:82
void fixUpResidualMask(int amrlev, iMultiFab &resmsk) final
Definition: AMReX_MLNodeABecLaplacian.cpp:271
std::string name() const override
Definition: AMReX_MLNodeABecLaplacian.H:36
MLNodeABecLaplacian & operator=(const MLNodeABecLaplacian &)=delete
Vector< Vector< MultiFab > > m_b_coeffs
Definition: AMReX_MLNodeABecLaplacian.H:83
void define(const Vector< Geometry > &a_geom, const Vector< BoxArray > &a_grids, const Vector< DistributionMapping > &a_dmap, const LPInfo &a_info=LPInfo(), const Vector< FabFactory< FArrayBox > const * > &a_factory={})
Definition: AMReX_MLNodeABecLaplacian.cpp:17
MLNodeABecLaplacian()=default
bool isSingular(int) const final
Is it singular on given AMR level?
Definition: AMReX_MLNodeABecLaplacian.H:54
~MLNodeABecLaplacian() override=default
void setBCoeffs(int amrlev, Real a_bcoef)
Definition: AMReX_MLNodeABecLaplacian.cpp:70
void update() final
Update for reuse.
Definition: AMReX_MLNodeABecLaplacian.cpp:263
void Fsmooth(int amrlev, int mglev, MultiFab &sol, const MultiFab &rhs) const final
Definition: AMReX_MLNodeABecLaplacian.cpp:116
bool isBottomSingular() const final
Is the bottom of MG singular?
Definition: AMReX_MLNodeABecLaplacian.H:55
void averageDownCoeffsToCoarseAmrLevel(int flev)
Definition: AMReX_MLNodeABecLaplacian.cpp:321
MLNodeABecLaplacian(MLNodeABecLaplacian &&)=delete
void setScalars(Real a, Real b)
Definition: AMReX_MLNodeABecLaplacian.H:38
void prepareForSolve() final
Definition: AMReX_MLNodeABecLaplacian.cpp:249
Real m_b_scalar
Definition: AMReX_MLNodeABecLaplacian.H:81
MLNodeABecLaplacian(const MLNodeABecLaplacian &)=delete
void averageDownSolutionRHS(int camrlev, MultiFab &crse_sol, MultiFab &crse_rhs, const MultiFab &fine_sol, const MultiFab &fine_rhs) final
Definition: AMReX_MLNodeABecLaplacian.cpp:232
Real m_a_scalar
Definition: AMReX_MLNodeABecLaplacian.H:80
bool needsUpdate() const final
Does it need update if it's reused?
Definition: AMReX_MLNodeABecLaplacian.H:68
void averageDownCoeffs()
Definition: AMReX_MLNodeABecLaplacian.cpp:287
void reflux(int crse_amrlev, MultiFab &res, const MultiFab &crse_sol, const MultiFab &crse_rhs, MultiFab &fine_res, MultiFab &fine_sol, const MultiFab &fine_rhs) const final
Definition: AMReX_MLNodeABecLaplacian.cpp:240
void interpolation(int amrlev, int fmglev, MultiFab &fine, const MultiFab &crse) const final
Definition: AMReX_MLNodeABecLaplacian.cpp:204
void restriction(int amrlev, int cmglev, MultiFab &crse, MultiFab &fine) const final
Definition: AMReX_MLNodeABecLaplacian.cpp:173
Definition: AMReX_MLNodeLinOp.H:16
A collection (stored as an array) of FArrayBox objects.
Definition: AMReX_MultiFab.H:38
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
Definition: AMReX_iMultiFab.H:32
Definition: AMReX_Amr.cpp:49
Definition: AMReX_MLLinOp.H:35