47 amrex::Real &lo, amrex::Real &hi,
53 using namespace amrex;
60 if (bclo == BCType::ext_dir)
62 lo = s(domlo-1, j, k, n);
67 if ( n==
XVEL && is_velocity ) hi=lo;
69 else if ( bclo == BCType::foextrap || bclo == BCType::hoextrap ||
70 bclo == BCType::reflect_even )
74 else if (bclo == BCType::reflect_odd)
80 else if (i == domhi+1)
82 if (bchi == BCType::ext_dir)
84 hi = s(domhi+1, j, k, n);
85 if ( n==
XVEL && is_velocity ) lo = hi;
87 else if ( bchi == BCType::foextrap || bchi == BCType::hoextrap ||
88 bchi == BCType::reflect_even )
92 else if (bchi == BCType::reflect_odd)
114 amrex::Real &lo, amrex::Real &hi,
119 using namespace amrex;
126 if (bclo == BCType::ext_dir)
128 lo = s(i, domlo-1, k, n);
129 if ( n==
YVEL && is_velocity ) hi=lo;
131 else if ( bclo == BCType::foextrap || bclo == BCType::hoextrap ||
132 bclo == BCType::reflect_even )
136 else if (bclo == BCType::reflect_odd)
142 else if (j == domhi+1)
144 if (bchi == BCType::ext_dir)
146 hi = s(i, domhi+1, k, n);
147 if ( n==
YVEL && is_velocity ) lo=hi;
149 else if ( bchi == BCType::foextrap || bchi == BCType::hoextrap ||
150 bchi == BCType::reflect_even )
154 else if(bchi == BCType::reflect_odd)
168 #if (AMREX_SPACEDIM==3)
179 void SetZEdgeBCs (
int i,
int j,
int k,
int n,
181 amrex::Real &lo, amrex::Real &hi,
186 using namespace amrex;
193 if (bclo == BCType::ext_dir)
195 lo = s(i, j, domlo-1, n);
196 if ( n==
ZVEL && is_velocity ) hi=lo;
198 else if ( bclo == BCType::foextrap || bclo == BCType::hoextrap ||
199 bclo == BCType::reflect_even )
203 else if(bclo == BCType::reflect_odd)
209 else if (k == domhi+1)
211 if (bchi == BCType::ext_dir)
213 hi = s(i,j,domhi+1, n);
214 if ( n==
ZVEL && is_velocity ) lo=hi;
216 else if ( bchi == BCType::foextrap || bchi == BCType::hoextrap ||
217 bchi == BCType::reflect_even )
221 else if(bchi == BCType::reflect_odd)
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
#define YVEL
Definition: hydro_constants.H:29
#define XVEL
Definition: hydro_constants.H:28
#define ZVEL
Definition: hydro_constants.H:30
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void SetXEdgeBCs(int i, int j, int k, int n, const amrex::Array4< const amrex::Real > &s, amrex::Real &lo, amrex::Real &hi, int bclo, int domlo, int bchi, int domhi, bool is_velocity)
Boundary condition effects.
Definition: hydro_bcs_K.H:45
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void SetYEdgeBCs(int i, int j, int k, int n, const amrex::Array4< const amrex::Real > &s, amrex::Real &lo, amrex::Real &hi, int bclo, int domlo, int bchi, int domhi, bool is_velocity)
Boundary condition effects.
Definition: hydro_bcs_K.H:112