A5 Compact-WENO coupling
| ID | Group | Type | Backends | Figure | Program |
|---|---|---|---|---|---|
| A5 | Accuracy | A | CPU (gfortran R4P, R8P, R16P; nvfortran; ifx); GPU (OpenACC) | no | gideon_test_coupling |
Case and scope
A hybrid compact–WENO scheme replaces the compact rows of the faces a sensor flags by the nonlinear values there. This case checks what GIDEON owns of it (the operator and the masked solve, roadmap #2, 4.1 and 4.2) on one line with a step: the flagged faces keep their values, the scheme stays conservative, and away from the step the compact order is kept.
Models and numerics
| Item | Choice | Code |
|---|---|---|
| Data | gideon_test_coupling.F90 | |
| Operators | gideon_fv_face_pbl5, gideon_fv_face_pbl7 and their bands; gideon_tri_periodic_masked | |
| Flags | the faces within 3 cells of a jump; their value: the cell average on the left (the stand-in for WENO) | |
| Given values | every flagged face returns its value, bitwise | |
| Conservation | the flux differences summed in real128 vanish within | |
| Order | ||
| Device | 1024 coupled lines of random data and masks, one per thread, against the host |
Program
bash
./exe-r16/gideon_test_couplingResults
| Build | pbl5, orders away from the step | pbl7, orders away from the step | Device lines bitwise equal | Checks | Failures |
|---|---|---|---|---|---|
| gfortran, R4P | unresolved | unresolved | — | 2100 | 0 |
| gfortran, R8P | unresolved | unresolved | — | 2100 | 0 |
| gfortran, R16P | 5.00, 5.00 (N = 32768) | 7.00, 7.00 (N = 4096) | — | 2100 | 0 |
| nvfortran -acc, R8P | unresolved | unresolved | pbl5: 1024 of 1024; pbl7: 0 of 1024 | 2098 | 0 |
Findings
- Away from the step the coupled line keeps the compact order exactly: 5.00 and 7.00 in quadruple precision. The band's inverse decays geometrically from a flagged face (by about 0.55 per cell downstream and 0.18 upstream for
pbl5), so the step's influence at a fixed distance falls faster than any power of. - The flagged faces return their values bitwise, in the interior of the line and on its periodic border.
- Conservation is a property of the flux form, whatever the face values: the check guards that every face has one value, the one both its cells use.
- Two floors of this test were corrected after its first runs, each stated in its header: the resolution floor omitted the cell averages' own round-off (
, which grows like ), and the conservation sum was compared with in the working kind although a sum of terms rounds to .