372 amrex::Real b1 = ( sm3 * sm3 * 6649./2880.0
373 - sm3 * sm2 * 2623./160.0
374 + sm3 * sm1 * 9449./480.0
375 - sm3 * s * 11389./1440.0
376 + sm2 * sm2 * 28547./960.0
377 - sm2 * sm1 * 35047./480.0
378 + sm2 * s * 14369./480.0
379 + sm1 * sm1 * 44747./960.0
380 - sm1 * s * 6383./160.0
381 + s * s * 25729./2880.0 );
382 amrex::Real b2 = ( sm2 * sm2 * 3169/2880.0
383 - sm2 * sm1 * 3229/480.0
384 + sm2 * s * 3169/480.0
385 - sm2 * sp1 * 2989/1440.0
386 + sm1 * sm1 * 11147/960.0
387 - sm1 * s * 11767/480.0
388 + sm1 * sp1 * 1283/160.0
389 + s * s * 13667/960.0
390 - s * sp1 * 5069/480.0
391 + sp1 * sp1 * 6649/2880.0 );
392 amrex::Real b3 = ( sm1 * sm1 * 6649./2880.0
393 - sm1 * s * 5069./480.0
394 + sm1 * sp1 * 1283./160.0
395 - sm1 * sp2 * 2989./1440.0
396 + s * s * 13667./960.0
397 - s * sp1 * 11767./480.0
398 + s * sp2 * 3169./480.0
399 + sp1 * sp1 * 11147./960.0
400 - sp1 * sp2 * 3229./480.0
401 + sp2 * sp2 * 3169./2880.0 );
402 amrex::Real b4 = ( s * s * 25729./2880.
403 - s * sp1 * 6383./160.
404 + s * sp2 * 14369./480.
405 - s * sp3 * 11389./1440.
406 + sp1 * sp1 * 44747./960.
407 - sp1 * sp2 * 35047./480.
408 + sp1 * sp3 * 9449./480.
409 + sp2 * sp2 * 28547./960.
410 - sp2 * sp3 * 2623./160.
411 + sp3 * sp3 * 6649./2880. );
414 amrex::Real w1 =
g1 / ( (
eps + b1) * (
eps + b1) );
415 amrex::Real w2 =
g2 / ( (
eps + b2) * (
eps + b2) );
416 amrex::Real w3 =
g3 / ( (
eps + b3) * (
eps + b3) );
417 amrex::Real w4 =
g4 / ( (
eps + b4) * (
eps + b4) );
420 amrex::Real wsum = w1 + w2 + w3 + w4;
423 amrex::Real v1 = (-0.3125)*sm3 + ( 1.3125)*sm2 + (-2.1875)*sm1 + ( 2.1875)*s;
424 amrex::Real v2 = ( 0.0625)*sm2 + (-0.3125)*sm1 + ( 0.9375)*s + ( 0.3125)*sp1;
425 amrex::Real v3 = (-0.0625)*sm1 + ( 0.5625)*s + ( 0.5625)*sp1 + (-0.0625)*sp2;
426 amrex::Real v4 = ( 0.3125)*s + ( 0.9375)*sp1 + (-0.3125)*sp2 + ( 0.0625)*sp3;
429 return ( (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4) / (wsum) );
const amrex::Real eps
Definition: ERF_Interpolation_WENO.H:434
static constexpr amrex::Real g4
Definition: ERF_Interpolation_WENO.H:439
static constexpr amrex::Real g3
Definition: ERF_Interpolation_WENO.H:438
static constexpr amrex::Real g2
Definition: ERF_Interpolation_WENO.H:437
static constexpr amrex::Real g1
Definition: ERF_Interpolation_WENO.H:436