1 #ifndef AMREX_ML_NODE_LINOP_K_H_
2 #define AMREX_ML_NODE_LINOP_K_H_
3 #include <AMReX_Config.H>
16 int icell =
offset / nsten;
17 node.z = icell / (len.x*len.y);
18 node.y = (icell - node.z*(len.x*len.y)) / len.x;
19 node.x = (icell - node.z*(len.x*len.y)) - node.y*len.x;
35 constexpr
int nstenhalf = AMREX_SPACEDIM == 2 ? 4 : 13;
42 node2.y = (
offset - node2.z*9) / 3;
43 node2.x = (
offset - node2.z*9) - node2.y*3;
69 bclo[1] != LinOpBCType::Periodic,
70 bclo[2] != LinOpBCType::Periodic)}};
72 bchi[1] != LinOpBCType::Periodic,
73 bchi[2] != LinOpBCType::Periodic)}};
83 bclo[0] == LinOpBCType::inflow,
84 bclo[1] == LinOpBCType::Neumann ||
85 bclo[1] == LinOpBCType::inflow,
86 bclo[2] == LinOpBCType::Neumann ||
87 bclo[2] == LinOpBCType::inflow)}};
89 bchi[0] == LinOpBCType::inflow,
90 bchi[1] == LinOpBCType::Neumann ||
91 bchi[1] == LinOpBCType::inflow,
92 bchi[2] == LinOpBCType::Neumann ||
93 bchi[2] == LinOpBCType::inflow)}};
99 #if (AMREX_SPACEDIM == 1)
101 #elif (AMREX_SPACEDIM == 2)
#define AMREX_GPU_DEVICE
Definition: AMReX_GpuQualifiers.H:18
Array4< int const > offset
Definition: AMReX_HypreMLABecLap.cpp:1089
#define AMREX_D_TERM(a, b, c)
Definition: AMReX_SPACE.H:129
#define AMREX_D_DECL(a, b, c)
Definition: AMReX_SPACE.H:104
Definition: AMReX_MLNodeLap_3D_K.H:1947
constexpr int fine_cell
Definition: AMReX_MLNodeLinOp_K.H:55
constexpr int fine_node
Definition: AMReX_MLNodeLinOp_K.H:58
constexpr int crse_node
Definition: AMReX_MLNodeLinOp_K.H:56
constexpr int crse_cell
Definition: AMReX_MLNodeLinOp_K.H:54
constexpr int crse_fine_node
Definition: AMReX_MLNodeLinOp_K.H:57
Definition: AMReX_Amr.cpp:49
void mlndlap_bc_doit(Box const &vbx, Array4< T > const &a, Box const &domain, GpuArray< bool, AMREX_SPACEDIM > const &bflo, GpuArray< bool, AMREX_SPACEDIM > const &bfhi) noexcept
Definition: AMReX_MLNodeLinOp_1D_K.H:8
void mlndlap_fillbc_cc(Box const &vbx, Array4< T > const &sigma, Box const &domain, GpuArray< LinOpBCType, AMREX_SPACEDIM > bclo, GpuArray< LinOpBCType, AMREX_SPACEDIM > bchi) noexcept
Definition: AMReX_MLNodeLinOp_K.H:64
void mlndlap_applybc(Box const &vbx, Array4< T > const &phi, Box const &domain, GpuArray< LinOpBCType, AMREX_SPACEDIM > bclo, GpuArray< LinOpBCType, AMREX_SPACEDIM > bchi) noexcept
Definition: AMReX_MLNodeLinOp_K.H:78
Definition: AMReX_Array4.H:61
Definition: AMReX_Array.H:34