500 amrex::Real b1 = ( sm3 * sm3 * 6649./2880.0
501 - sm3 * sm2 * 2623./160.0
502 + sm3 * sm1 * 9449./480.0
503 - sm3 * s * 11389./1440.0
504 + sm2 * sm2 * 28547./960.0
505 - sm2 * sm1 * 35047./480.0
506 + sm2 * s * 14369./480.0
507 + sm1 * sm1 * 44747./960.0
508 - sm1 * s * 6383./160.0
509 + s * s * 25729./2880.0 );
510 amrex::Real b2 = ( sm2 * sm2 * 3169/2880.0
511 - sm2 * sm1 * 3229/480.0
512 + sm2 * s * 3169/480.0
513 - sm2 * sp1 * 2989/1440.0
514 + sm1 * sm1 * 11147/960.0
515 - sm1 * s * 11767/480.0
516 + sm1 * sp1 * 1283/160.0
517 + s * s * 13667/960.0
518 - s * sp1 * 5069/480.0
519 + sp1 * sp1 * 6649/2880.0 );
520 amrex::Real b3 = ( sm1 * sm1 * 6649./2880.0
521 - sm1 * s * 5069./480.0
522 + sm1 * sp1 * 1283./160.0
523 - sm1 * sp2 * 2989./1440.0
524 + s * s * 13667./960.0
525 - s * sp1 * 11767./480.0
526 + s * sp2 * 3169./480.0
527 + sp1 * sp1 * 11147./960.0
528 - sp1 * sp2 * 3229./480.0
529 + sp2 * sp2 * 3169./2880.0 );
530 amrex::Real b4 = ( s * s * 25729./2880.
531 - s * sp1 * 6383./160.
532 + s * sp2 * 14369./480.
533 - s * sp3 * 11389./1440.
534 + sp1 * sp1 * 44747./960.
535 - sp1 * sp2 * 35047./480.
536 + sp1 * sp3 * 9449./480.
537 + sp2 * sp2 * 28547./960.
538 - sp2 * sp3 * 2623./160.
539 + sp3 * sp3 * 6649./2880. );
542 amrex::Real t5 = std::abs(b1 - b2 - b3 + b4);
543 amrex::Real w1 =
g1 * ( 1.0 + (t5*t5) / ((
eps + b1) * (
eps + b1)) );
544 amrex::Real w2 =
g2 * ( 1.0 + (t5*t5) / ((
eps + b2) * (
eps + b2)) );
545 amrex::Real w3 =
g3 * ( 1.0 + (t5*t5) / ((
eps + b3) * (
eps + b3)) );
546 amrex::Real w4 =
g4 * ( 1.0 + (t5*t5) / ((
eps + b3) * (
eps + b3)) );
549 amrex::Real wsum = w1 + w2 + w3 + w4;
552 amrex::Real v1 = (-0.3125)*sm3 + ( 1.3125)*sm2 + (-2.1875)*sm1 + ( 2.1875)*s;
553 amrex::Real v2 = ( 0.0625)*sm2 + (-0.3125)*sm1 + ( 0.9375)*s + ( 0.3125)*sp1;
554 amrex::Real v3 = (-0.0625)*sm1 + ( 0.5625)*s + ( 0.5625)*sp1 + (-0.0625)*sp2;
555 amrex::Real v4 = ( 0.3125)*s + ( 0.9375)*sp1 + (-0.3125)*sp2 + ( 0.0625)*sp3;
558 return ( (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4) / (wsum) );
static constexpr amrex::Real g1
Definition: ERF_Interpolation_WENO_Z.H:565
const amrex::Real eps
Definition: ERF_Interpolation_WENO_Z.H:563
static constexpr amrex::Real g4
Definition: ERF_Interpolation_WENO_Z.H:568
static constexpr amrex::Real g2
Definition: ERF_Interpolation_WENO_Z.H:566
static constexpr amrex::Real g3
Definition: ERF_Interpolation_WENO_Z.H:567