Block-Structured AMR Software Framework
AMReX_InterpBndryData_1D_K.H
Go to the documentation of this file.
1 #ifndef AMREX_INTERP_BNDRYDATA_1D_K_H_
2 #define AMREX_INTERP_BNDRYDATA_1D_K_H_
3 #include <AMReX_Config.H>
4 
5 #include <AMReX_Array4.H>
6 
7 namespace amrex {
8 
9 template<typename T>
11 void interpbndrydata_o1 (int i, int /*j*/, int /*k*/, int n,
12  Array4<T> const& bdry, int nb,
13  Array4<T const> const& crse, int nc,
14  Dim3 const& r) noexcept
15 {
16  int ic = amrex::coarsen(i,r.x);
17  bdry(i,0,0,n+nb) = crse(ic,0,0,n+nc);
18 }
19 
20 template<typename T>
22 void interpbndrydata_x_o3 (int i, int /*j*/, int /*k*/, int n,
23  Array4<T> const& bdry, int nb,
24  Array4<T const> const& crse, int nc, Dim3 const& r,
25  Array4<int const> const& /*mask*/, int /*not_covered*/,
26  int /*max_width*/) noexcept
27 {
28  int ic = amrex::coarsen(i,r.x);
29  bdry(i,0,0,n+nb) = crse(ic,0,0,n+nc);
30 }
31 
32 }
33 #endif
#define AMREX_FORCE_INLINE
Definition: AMReX_Extension.H:119
#define AMREX_GPU_HOST_DEVICE
Definition: AMReX_GpuQualifiers.H:20
Array4< Real const > crse
Definition: AMReX_InterpFaceRegister.cpp:92
Definition: AMReX_Amr.cpp:49
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void interpbndrydata_x_o3(int i, int, int, int n, Array4< T > const &bdry, int nb, Array4< T const > const &crse, int nc, Dim3 const &r, Array4< int const > const &, int, int) noexcept
Definition: AMReX_InterpBndryData_1D_K.H:22
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void interpbndrydata_o1(int i, int, int, int n, Array4< T > const &bdry, int nb, Array4< T const > const &crse, int nc, Dim3 const &r) noexcept
Definition: AMReX_InterpBndryData_1D_K.H:11
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE BoxND< dim > coarsen(const BoxND< dim > &b, int ref_ratio) noexcept
Coarsen BoxND by given (positive) refinement ratio. NOTE: if type(dir) = CELL centered: lo <- lo/rati...
Definition: AMReX_Box.H:1304
Definition: AMReX_Array4.H:61
Definition: AMReX_Dim3.H:12