1 #ifndef ERF_INTERPOLATE_UPW_H_
2 #define ERF_INTERPOLATE_UPW_H_
28 amrex::Real s =
m_phi(i , j , k , qty_index);
29 amrex::Real sm1 =
m_phi(i-1, j , k , qty_index);
46 amrex::Real s =
m_phi(i , j , k , qty_index);
47 amrex::Real sm1 =
m_phi(i , j-1, k , qty_index);
64 amrex::Real s =
m_phi(i , j , k , qty_index);
65 amrex::Real sm1 =
m_phi(i , j , k-1, qty_index);
75 const amrex::Real& sm1)
const
78 amrex::Real a1 = (s + sm1);
87 amrex::Array4<const amrex::Real>
m_phi;
99 const amrex::Real upw_frac)
110 const int& qty_index,
112 amrex::Real upw_lo)
const
115 amrex::Real sp1 =
m_phi(i+1, j , k , qty_index);
116 amrex::Real s =
m_phi(i , j , k , qty_index);
117 amrex::Real sm1 =
m_phi(i-1, j , k , qty_index);
118 amrex::Real sm2 =
m_phi(i-2, j , k , qty_index);
121 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
127 val_lo =
Evaluate(sp1,s,sm1,sm2,upw_lo);
136 const int& qty_index,
138 amrex::Real upw_lo)
const
141 amrex::Real sp1 =
m_phi(i , j+1, k , qty_index);
142 amrex::Real s =
m_phi(i , j , k , qty_index);
143 amrex::Real sm1 =
m_phi(i , j-1, k , qty_index);
144 amrex::Real sm2 =
m_phi(i , j-2, k , qty_index);
147 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
153 val_lo =
Evaluate(sp1,s,sm1,sm2,upw_lo);
162 const int& qty_index,
164 amrex::Real upw_lo)
const
167 amrex::Real sp1 =
m_phi(i , j , k+1, qty_index);
168 amrex::Real s =
m_phi(i , j , k , qty_index);
169 amrex::Real sm1 =
m_phi(i , j , k-1, qty_index);
170 amrex::Real sm2 =
m_phi(i , j , k-2, qty_index);
173 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
179 val_lo =
Evaluate(sp1,s,sm1,sm2,upw_lo);
186 const amrex::Real& s,
187 const amrex::Real& sm1,
188 const amrex::Real& sm2,
189 const amrex::Real& upw)
const
192 amrex::Real a1 = (s + sm1);
193 amrex::Real d1 = (s - sm1);
194 amrex::Real
a2 = (sp1 + sm2);
195 amrex::Real d2 = (sp1 - sm2);
203 AMREX_GPU_HOST_DEVICE
208 amrex::Array4<const amrex::Real>
m_phi;
210 static constexpr amrex::Real
g1=(amrex::Real(7.0)/amrex::Real(12.0));
211 static constexpr amrex::Real
g2=(amrex::Real(1)/amrex::Real(12.0));
220 AMREX_GPU_HOST_DEVICE
233 const int& qty_index,
235 amrex::Real upw_lo)
const
238 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
241 amrex::Real sp1 =
m_phi(i+1, j , k , qty_index);
242 amrex::Real s =
m_phi(i , j , k , qty_index);
243 amrex::Real sm1 =
m_phi(i-1, j , k , qty_index);
244 amrex::Real sm2 =
m_phi(i-2, j , k , qty_index);
247 amrex::Real Fhi =
Evaluate(s ,sm1,sm2);
248 amrex::Real Flo =
Evaluate(sm1,s ,sp1);
251 val_lo = (amrex::Real(1) + upw_lo)/amrex::Real(2) * Fhi + (amrex::Real(1) - upw_lo)/amrex::Real(2) * Flo;
260 const int& qty_index,
262 amrex::Real upw_lo)
const
265 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
268 amrex::Real sp1 =
m_phi(i , j+1, k , qty_index);
269 amrex::Real s =
m_phi(i , j , k , qty_index);
270 amrex::Real sm1 =
m_phi(i , j-1, k , qty_index);
271 amrex::Real sm2 =
m_phi(i , j-2, k , qty_index);
274 amrex::Real Fhi =
Evaluate(s ,sm1,sm2);
275 amrex::Real Flo =
Evaluate(sm1,s ,sp1);
278 val_lo = (amrex::Real(1) + upw_lo)/amrex::Real(2) * Fhi + (amrex::Real(1) - upw_lo)/amrex::Real(2) * Flo;
287 const int& qty_index,
289 amrex::Real upw_lo)
const
292 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
295 amrex::Real sp1 =
m_phi(i , j , k+1, qty_index);
296 amrex::Real s =
m_phi(i , j , k , qty_index);
297 amrex::Real sm1 =
m_phi(i , j , k-1, qty_index);
298 amrex::Real sm2 =
m_phi(i , j , k-2, qty_index);
301 amrex::Real Fhi =
Evaluate(s ,sm1,sm2);
302 amrex::Real Flo =
Evaluate(sm1,s ,sp1);
305 val_lo = (amrex::Real(1) + upw_lo)/amrex::Real(2) * Fhi + (amrex::Real(1) - upw_lo)/amrex::Real(2) * Flo;
312 const amrex::Real& sm1,
313 const amrex::Real& sm2)
const
315 amrex::Real rmh = (s - sm1) / ((sm1 - sm2) +
eps);
316 amrex::Real K =
l2 + amrex::Real(2)*
l2*rmh;
317 amrex::Real
phi = amrex::max(amrex::Real(0), amrex::min(amrex::Real(2)*rmh, amrex::min(amrex::Real(2), K)));
318 return (sm1 +
myhalf *
phi * (sm1 - sm2));
324 amrex::Array4<const amrex::Real>
m_phi;
325 static constexpr amrex::Real
eps=(amrex::Real(1.0e-16));
326 static constexpr amrex::Real
l1 =(amrex::Real(1)/amrex::Real(6.0));
327 static constexpr amrex::Real
l2 =(amrex::Real(1)/
three);
336 AMREX_GPU_HOST_DEVICE
348 const int& qty_index,
353 amrex::Real sp1 =
m_phi(i+1, j , k , qty_index);
354 amrex::Real s =
m_phi(i , j , k , qty_index);
355 amrex::Real sm1 =
m_phi(i-1, j , k , qty_index);
356 amrex::Real sm2 =
m_phi(i-2, j , k , qty_index);
368 const int& qty_index,
373 amrex::Real sp1 =
m_phi(i , j+1, k , qty_index);
374 amrex::Real s =
m_phi(i , j , k , qty_index);
375 amrex::Real sm1 =
m_phi(i , j-1, k , qty_index);
376 amrex::Real sm2 =
m_phi(i , j-2, k , qty_index);
388 const int& qty_index,
393 amrex::Real sp1 =
m_phi(i , j , k+1, qty_index);
394 amrex::Real s =
m_phi(i , j , k , qty_index);
395 amrex::Real sm1 =
m_phi(i , j , k-1, qty_index);
396 amrex::Real sm2 =
m_phi(i , j , k-2, qty_index);
406 const amrex::Real& s,
407 const amrex::Real& sm1,
408 const amrex::Real& sm2)
const
411 amrex::Real a1 = (s + sm1);
412 amrex::Real
a2 = (sp1 + sm2);
421 amrex::Array4<const amrex::Real>
m_phi;
422 static constexpr amrex::Real
g1=(amrex::Real(7.0)/amrex::Real(12.0));
423 static constexpr amrex::Real
g2=(amrex::Real(1)/amrex::Real(12.0));
431 AMREX_GPU_HOST_DEVICE
434 const amrex::Real upw_frac)
445 const int& qty_index,
447 amrex::Real upw_lo)
const
450 amrex::Real sp2 =
m_phi(i+2, j , k , qty_index);
451 amrex::Real sp1 =
m_phi(i+1, j , k , qty_index);
452 amrex::Real s =
m_phi(i , j , k , qty_index);
453 amrex::Real sm1 =
m_phi(i-1, j , k , qty_index);
454 amrex::Real sm2 =
m_phi(i-2, j , k , qty_index);
455 amrex::Real sm3 =
m_phi(i-3, j , k , qty_index);
458 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
464 val_lo =
Evaluate(sp2,sp1,s,sm1,sm2,sm3,upw_lo);
473 const int& qty_index,
475 amrex::Real upw_lo)
const
478 amrex::Real sp2 =
m_phi(i , j+2, k , qty_index);
479 amrex::Real sp1 =
m_phi(i , j+1, k , qty_index);
480 amrex::Real s =
m_phi(i , j , k , qty_index);
481 amrex::Real sm1 =
m_phi(i , j-1, k , qty_index);
482 amrex::Real sm2 =
m_phi(i , j-2, k , qty_index);
483 amrex::Real sm3 =
m_phi(i , j-3, k , qty_index);
486 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
492 val_lo =
Evaluate(sp2,sp1,s,sm1,sm2,sm3,upw_lo);
501 const int& qty_index,
503 amrex::Real upw_lo)
const
506 amrex::Real sp2 =
m_phi(i , j , k+2, qty_index);
507 amrex::Real sp1 =
m_phi(i , j , k+1, qty_index);
508 amrex::Real s =
m_phi(i , j , k , qty_index);
509 amrex::Real sm1 =
m_phi(i , j , k-1, qty_index);
510 amrex::Real sm2 =
m_phi(i , j , k-2, qty_index);
511 amrex::Real sm3 =
m_phi(i , j , k-3, qty_index);
514 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
520 val_lo =
Evaluate(sp2,sp1,s,sm1,sm2,sm3,upw_lo);
527 const amrex::Real& sp1,
528 const amrex::Real& s,
529 const amrex::Real& sm1,
530 const amrex::Real& sm2,
531 const amrex::Real& sm3,
532 const amrex::Real& upw)
const
535 amrex::Real a1 = (s + sm1);
536 amrex::Real
a2 = (sp1 + sm2);
537 amrex::Real
a3 = (sp2 + sm3);
538 amrex::Real d1 = (s - sm1);
539 amrex::Real d2 = (sp1 - sm2);
540 amrex::Real d3 = (sp2 - sm3);
543 return (
g1*a1 -
g2*
a2 +
g3*
a3 - upw *
g3 * (d3 - amrex::Real(5.0)*d2 + amrex::Real(10.0)*d1) );
548 AMREX_GPU_HOST_DEVICE
553 amrex::Array4<const amrex::Real>
m_phi;
555 static constexpr amrex::Real
g1=(amrex::Real(37.0)/amrex::Real(60.0));
556 static constexpr amrex::Real
g2=(amrex::Real(2)/amrex::Real(15.0));
557 static constexpr amrex::Real
g3=(amrex::Real(1)/amrex::Real(60.0));
565 AMREX_GPU_HOST_DEVICE
577 const int& qty_index,
582 amrex::Real sp2 =
m_phi(i+2, j , k , qty_index);
583 amrex::Real sp1 =
m_phi(i+1, j , k , qty_index);
584 amrex::Real s =
m_phi(i , j , k , qty_index);
585 amrex::Real sm1 =
m_phi(i-1, j , k , qty_index);
586 amrex::Real sm2 =
m_phi(i-2, j , k , qty_index);
587 amrex::Real sm3 =
m_phi(i-3, j , k , qty_index);
590 val_lo =
Evaluate(sp2,sp1,s,sm1,sm2,sm3);
599 const int& qty_index,
604 amrex::Real sp2 =
m_phi(i , j+2, k , qty_index);
605 amrex::Real sp1 =
m_phi(i , j+1, k , qty_index);
606 amrex::Real s =
m_phi(i , j , k , qty_index);
607 amrex::Real sm1 =
m_phi(i , j-1, k , qty_index);
608 amrex::Real sm2 =
m_phi(i , j-2, k , qty_index);
609 amrex::Real sm3 =
m_phi(i , j-3, k , qty_index);
612 val_lo =
Evaluate(sp2,sp1,s,sm1,sm2,sm3);
621 const int& qty_index,
626 amrex::Real sp2 =
m_phi(i , j , k+2, qty_index);
627 amrex::Real sp1 =
m_phi(i , j , k+1, qty_index);
628 amrex::Real s =
m_phi(i , j , k , qty_index);
629 amrex::Real sm1 =
m_phi(i , j , k-1, qty_index);
630 amrex::Real sm2 =
m_phi(i , j , k-2, qty_index);
631 amrex::Real sm3 =
m_phi(i , j , k-3, qty_index);
634 val_lo =
Evaluate(sp2,sp1,s,sm1,sm2,sm3);
641 const amrex::Real& sp1,
642 const amrex::Real& s,
643 const amrex::Real& sm1,
644 const amrex::Real& sm2,
645 const amrex::Real& sm3)
const
648 amrex::Real a1 = (s + sm1);
649 amrex::Real
a2 = (sp1 + sm2);
650 amrex::Real
a3 = (sp2 + sm3);
659 amrex::Array4<const amrex::Real>
m_phi;
660 static constexpr amrex::Real
g1=(amrex::Real(37.0)/amrex::Real(60.0));
661 static constexpr amrex::Real
g2=(amrex::Real(2)/amrex::Real(15.0));
662 static constexpr amrex::Real
g3=(amrex::Real(1)/amrex::Real(60.0));
670 AMREX_GPU_HOST_DEVICE
673 const amrex::Real upw_frac)
684 const int& qty_index,
695 amrex::Real sp1 =
m_phi(i , j , k+1, qty_index);
696 amrex::Real s =
m_phi(i , j , k , qty_index);
697 amrex::Real sm1 =
m_phi(i , j , k-1, qty_index);
698 amrex::Real sm2 =
m_phi(i , j , k-2, qty_index);
702 if (upw_lo != amrex::Real(0)) upw_lo = (upw_lo > 0) ? amrex::Real(1) : -amrex::Real(1);
708 val_lo =
Evaluate(sp2,sp1,s,sm1,sm2,sm3,upw_lo,adv_type);
716 const amrex::Real& sp1,
717 const amrex::Real& s,
718 const amrex::Real& sm1,
719 const amrex::Real& sm2,
720 const amrex::Real& sm3,
721 const amrex::Real& upw,
725 amrex::Real a1 = (s + sm1);
726 amrex::Real
a2 = (sp1 + sm2);
727 amrex::Real d1 = (s - sm1);
728 amrex::Real d2 = (sp1 - sm2);
729 amrex::Real
a3 = (sp2 + sm3);
730 amrex::Real d3 = (sp2 - sm3);
736 amrex::Real iv(amrex::Real(0));
752 amrex::Array4<const amrex::Real>
m_phi;
754 static constexpr amrex::Real
g1_3_4=( amrex::Real(7.0)/amrex::Real(12.0));
755 static constexpr amrex::Real
g2_3_4=( amrex::Real(1)/amrex::Real(12.0));
756 static constexpr amrex::Real
g1_5_6=(amrex::Real(37.0)/amrex::Real(60.0));
757 static constexpr amrex::Real
g2_5_6=( amrex::Real(2)/amrex::Real(15.0));
758 static constexpr amrex::Real
g3_5_6=( amrex::Real(1)/amrex::Real(60.0));
AdvType
Definition: ERF_IndexDefines.H:329
constexpr amrex::Real three
Definition: ERF_NumericalConstants.H:39
constexpr amrex::Real myhalf
Definition: ERF_NumericalConstants.H:41
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real phi(amrex::Real d, amrex::Real z0, amrex::Real psi) noexcept
Definition: ERF_ImmersedWallCell.H:176
real(c_double), parameter a2
Definition: ERF_module_model_constants.F90:95
real(c_double), parameter a3
Definition: ERF_module_model_constants.F90:96
Definition: ERF_Interpolation_UPW.H:10
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &s, const amrex::Real &sm1) const
Definition: ERF_Interpolation_UPW.H:74
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInY(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:38
int GetUpwindCellNumber() const
Definition: ERF_Interpolation_UPW.H:84
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInZ(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:56
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_UPW.H:87
static constexpr amrex::Real g1
Definition: ERF_Interpolation_UPW.H:88
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInX(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:20
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE CENTERED2(const amrex::Array4< const amrex::Real > &phi, const amrex::Real)
Definition: ERF_Interpolation_UPW.H:13
Definition: ERF_Interpolation_UPW.H:335
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInZ(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:385
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInY(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:365
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_UPW.H:421
static constexpr amrex::Real g1
Definition: ERF_Interpolation_UPW.H:422
int GetUpwindCellNumber() const
Definition: ERF_Interpolation_UPW.H:418
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInX(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:345
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &sp1, const amrex::Real &s, const amrex::Real &sm1, const amrex::Real &sm2) const
Definition: ERF_Interpolation_UPW.H:405
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE CENTERED4(const amrex::Array4< const amrex::Real > &phi, const amrex::Real)
Definition: ERF_Interpolation_UPW.H:338
static constexpr amrex::Real g2
Definition: ERF_Interpolation_UPW.H:423
Definition: ERF_Interpolation_UPW.H:564
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInX(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:574
static constexpr amrex::Real g2
Definition: ERF_Interpolation_UPW.H:661
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE CENTERED6(const amrex::Array4< const amrex::Real > &phi, const amrex::Real)
Definition: ERF_Interpolation_UPW.H:567
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInY(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:596
int GetUpwindCellNumber() const
Definition: ERF_Interpolation_UPW.H:656
static constexpr amrex::Real g1
Definition: ERF_Interpolation_UPW.H:660
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_UPW.H:659
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInZ(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real) const
Definition: ERF_Interpolation_UPW.H:618
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &sp2, const amrex::Real &sp1, const amrex::Real &s, const amrex::Real &sm1, const amrex::Real &sm2, const amrex::Real &sm3) const
Definition: ERF_Interpolation_UPW.H:640
static constexpr amrex::Real g3
Definition: ERF_Interpolation_UPW.H:662
Definition: ERF_Interpolation_UPW.H:219
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInX(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:230
static constexpr amrex::Real eps
Definition: ERF_Interpolation_UPW.H:325
int GetUpwindCellNumber() const
Definition: ERF_Interpolation_UPW.H:321
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &s, const amrex::Real &sm1, const amrex::Real &sm2) const
Definition: ERF_Interpolation_UPW.H:311
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE UPWIND3SL(const amrex::Array4< const amrex::Real > &phi, const amrex::Real)
Definition: ERF_Interpolation_UPW.H:222
static constexpr amrex::Real l1
Definition: ERF_Interpolation_UPW.H:326
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInZ(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:284
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInY(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:257
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_UPW.H:324
static constexpr amrex::Real l2
Definition: ERF_Interpolation_UPW.H:327
Definition: ERF_Interpolation_UPW.H:95
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &sp1, const amrex::Real &s, const amrex::Real &sm1, const amrex::Real &sm2, const amrex::Real &upw) const
Definition: ERF_Interpolation_UPW.H:185
static constexpr amrex::Real g2
Definition: ERF_Interpolation_UPW.H:211
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void SetUpwinding(amrex::Real upw_frac)
Definition: ERF_Interpolation_UPW.H:205
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInZ(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:159
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_UPW.H:208
static constexpr amrex::Real g1
Definition: ERF_Interpolation_UPW.H:210
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE UPWIND3(const amrex::Array4< const amrex::Real > &phi, const amrex::Real upw_frac)
Definition: ERF_Interpolation_UPW.H:98
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInY(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:133
int GetUpwindCellNumber() const
Definition: ERF_Interpolation_UPW.H:201
amrex::Real m_upw_frac
Definition: ERF_Interpolation_UPW.H:209
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInX(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:107
Definition: ERF_Interpolation_UPW.H:430
amrex::Real m_upw_frac
Definition: ERF_Interpolation_UPW.H:554
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE UPWIND5(const amrex::Array4< const amrex::Real > &phi, const amrex::Real upw_frac)
Definition: ERF_Interpolation_UPW.H:433
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &sp2, const amrex::Real &sp1, const amrex::Real &s, const amrex::Real &sm1, const amrex::Real &sm2, const amrex::Real &sm3, const amrex::Real &upw) const
Definition: ERF_Interpolation_UPW.H:526
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_UPW.H:553
static constexpr amrex::Real g2
Definition: ERF_Interpolation_UPW.H:556
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInZ(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:498
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void SetUpwinding(amrex::Real upw_frac)
Definition: ERF_Interpolation_UPW.H:550
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInY(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:470
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInX(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const
Definition: ERF_Interpolation_UPW.H:442
int GetUpwindCellNumber() const
Definition: ERF_Interpolation_UPW.H:546
static constexpr amrex::Real g1
Definition: ERF_Interpolation_UPW.H:555
static constexpr amrex::Real g3
Definition: ERF_Interpolation_UPW.H:557
Definition: ERF_Interpolation_UPW.H:669
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_UPW.H:752
static constexpr amrex::Real g1_5_6
Definition: ERF_Interpolation_UPW.H:756
static constexpr amrex::Real g1_3_4
Definition: ERF_Interpolation_UPW.H:754
amrex::Real m_upw_frac
Definition: ERF_Interpolation_UPW.H:753
static constexpr amrex::Real g2_3_4
Definition: ERF_Interpolation_UPW.H:755
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &sp2, const amrex::Real &sp1, const amrex::Real &s, const amrex::Real &sm1, const amrex::Real &sm2, const amrex::Real &sm3, const amrex::Real &upw, const AdvType adv_type) const
Definition: ERF_Interpolation_UPW.H:715
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE UPWINDALL(const amrex::Array4< const amrex::Real > &phi, const amrex::Real upw_frac)
Definition: ERF_Interpolation_UPW.H:672
static constexpr amrex::Real g3_5_6
Definition: ERF_Interpolation_UPW.H:758
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void InterpolateInZ(const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo, const AdvType adv_type) const
Definition: ERF_Interpolation_UPW.H:681
static constexpr amrex::Real g2_5_6
Definition: ERF_Interpolation_UPW.H:757