1 #ifndef AMReX_extrapolater_1D_K_H_
2 #define AMReX_extrapolater_1D_K_H_
3 #include <AMReX_Config.H>
15 constexpr
int crsecell = 0;
20 if (
mask(lo.x-1,lo.y,lo.z) == crsecell) {
21 for (
int n = 0; n <
nComp; n++) {
22 data(lo.x-1,lo.y,lo.z,n) = data(lo.x,lo.y,lo.z,n);
25 if (
mask(hi.x+1,hi.y,hi.z) == crsecell) {
26 for (
int n = 0; n <
nComp; n++) {
27 data(hi.x+1,hi.y,hi.z,n) = data(hi.x,hi.y,hi.z,n);
41 constexpr
int crsecell = 0;
46 if ( (i == lo.x-1) && (
mask(i,j,k) == crsecell ) ) {
47 data(i,j,k,n) = data(i+1,j,k,n);
50 if ( (i == hi.x+1) && (
mask(i,j,k) == crsecell ) ) {
51 data(i,j,k,n) = data(i-1,j,k,n);
#define AMREX_FORCE_INLINE
Definition: AMReX_Extension.H:119
#define AMREX_GPU_HOST_DEVICE
Definition: AMReX_GpuQualifiers.H:20
Array4< int const > mask
Definition: AMReX_InterpFaceRegister.cpp:93
Definition: AMReX_Amr.cpp:49
int nComp(FabArrayBase const &fa)
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Dim3 ubound(Array4< T > const &a) noexcept
Definition: AMReX_Array4.H:315
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Dim3 lbound(Array4< T > const &a) noexcept
Definition: AMReX_Array4.H:308
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void amrex_first_order_extrap_gpu(int i, int j, int k, int n, amrex::Box const &bx, amrex::Array4< const int > const &mask, amrex::Array4< amrex::Real > const &data) noexcept
Definition: AMReX_extrapolater_1D_K.H:36
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void amrex_first_order_extrap_cpu(amrex::Box const &bx, int nComp, amrex::Array4< const int > const &mask, amrex::Array4< amrex::Real > const &data) noexcept
Definition: AMReX_extrapolater_1D_K.H:10
Definition: AMReX_Array4.H:61