ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_EBRedistribute.H
Go to the documentation of this file.
1 /**
2  * \file ERF_EBRedistribute.H
3  * \brief Declares embedded-boundary conservative redistribution helpers.
4  */
5 #ifndef ERF_EBRedistribute_H_
6 #define ERF_EBRedistribute_H_
7 
8 #include <AMReX.H>
9 #include <AMReX_MultiFab.H>
10 #include <AMReX_Geometry.H>
11 #include <AMReX_BCRec.H>
12 #include <AMReX_MFIter.H>
13 #include <ERF_EB.H>
14 
15 /**
16  * \brief Apply EB state redistribution to a temporary tendency field.
17  * \tparam EBFactType EB factory interface type, either AMReX native or ERF auxiliary.
18  * \param ncomp Number of components to redistribute.
19  * \param geom Geometry associated with the result field.
20  * \param result Output redistributed field.
21  * \param result_tmp Input temporary field before redistribution.
22  * \param state State field used by redistribution slopes.
23  * \param ebfact EB factory supplying flags and geometric moments.
24  * \param bc Boundary conditions for the state components.
25  * \param dt Time-step size used by the redistribution operator.
26  * \param igrid Optional ERF integer-variable index for staggered grids; -1 means cell-centered.
27  */
28 template <typename EBFactType>
29 void redistribute_term (int ncomp,
30  const amrex::Geometry& geom,
31  amrex::MultiFab& result,
32  amrex::MultiFab& result_tmp,
33  amrex::MultiFab const& state,
34  EBFactType const& ebfact,
35  amrex::BCRec const* bc,
36  double dt,
37  int const igrid = -1);
38 
39 #endif
void redistribute_term(int ncomp, const amrex::Geometry &geom, amrex::MultiFab &result, amrex::MultiFab &result_tmp, amrex::MultiFab const &state, EBFactType const &ebfact, amrex::BCRec const *bc, double dt, int const igrid=-1)
Apply EB state redistribution to a temporary tendency field.
Declares the embedded-boundary factory manager used by ERF levels.
real(c_double), private bc
Definition: ERF_module_mp_morr_two_moment.F90:182