1 #ifndef AMREX_Habec_K_H_
2 #define AMREX_Habec_K_H_
3 #include <AMReX_Config.H>
11 void comp_bf (Real& bf1, Real& bf2, Real sb, Real h,
int bct, Real bcl,
int bho)
13 Real fac = sb / (h*h);
15 Real h2 = Real(0.5)*h;
17 Real h3 = Real(3.0)*h2;
18 bf1 = fac*((h3 - bcl)/(bcl + h2) - Real(1.0));
19 bf2 = fac*(bcl - h2)/(bcl + h3);
21 bf1 = fac*( h/(bcl + h2) - Real(1.0));
28 bf1 = bf2 = Real(0.0);
34 void comp_bflo (Real& bf1, Real& bf2, Real& bflo, Real sb, Real h,
int bct, Real bcl,
int bho)
36 Real fac = sb / (h*h);
38 Real h2 = Real(0.5)*h;
39 bflo = fac * ( h / (bcl + h2) - Real(1.0));
41 Real h3 = Real(3.0)*h2;
42 bf1 = fac*((h3 - bcl)/(bcl + h2) - Real(1.0));
43 bf2 = fac*(bcl - h2)/(bcl + h3);
53 bf1 = bf2 = bflo = Real(0.0);
59 #if (AMREX_SPACEDIM == 2)
61 #elif (AMREX_SPACEDIM == 3)
#define AMREX_ASSERT_WITH_MESSAGE(EX, MSG)
Definition: AMReX_BLassert.H:37
#define AMREX_FORCE_INLINE
Definition: AMReX_Extension.H:119
#define AMREX_GPU_HOST_DEVICE
Definition: AMReX_GpuQualifiers.H:20
#define AMREX_LO_NEUMANN
Definition: AMReX_LO_BCTYPES.H:6
#define AMREX_LO_DIRICHLET
Definition: AMReX_LO_BCTYPES.H:5
Definition: AMReX_FillPatchUtil_I.H:7
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void comp_bf(Real &bf1, Real &bf2, Real sb, Real h, int bct, Real bcl, int bho)
Definition: AMReX_Habec_K.H:11
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void comp_bflo(Real &bf1, Real &bf2, Real &bflo, Real sb, Real h, int bct, Real bcl, int bho)
Definition: AMReX_Habec_K.H:34