Skip to content

Commit 9b81720

Browse files
committed
increase weno_eps
1 parent 01b4c83 commit 9b81720

27 files changed

+222
-225
lines changed

src/simulation/m_weno.fpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ contains
808808
elseif (weno_order == 7) then
809809
#:for WENO_DIR, XYZ in [(1, 'x'), (2, 'y'), (3, 'z')]
810810
if (weno_dir == ${WENO_DIR}$) then
811-
!$acc parallel loop vector gang collapse(3) default(present) private(poly, beta, alpha, omega, tau)
811+
!$acc parallel loop vector gang collapse(3) default(present) private(poly, beta, alpha, omega, tau, delta)
812812
! Note: dvd is not used as the equations are not cast in terms of the differences
813813
do l = is3_weno%beg, is3_weno%end
814814
do k = is2_weno%beg, is2_weno%end
@@ -828,12 +828,10 @@ contains
828828
+ 13d0*v_rs_ws_${XYZ}$ (j+2, k, l, i) - 3d0*v_rs_ws_${XYZ}$ (j+3, k, l, i)) / 12d0 !&
829829
else
830830
! (Fu, et al., 2016) Table 1
831-
! Note: Unlike TENO5, TENO7 stencils differ from the WENO7 stencils. TENO7 stencils are explained below:
832-
! First, consider the right-sided flux (at i+1/2) computed in the subsequent section.
833-
! Then, by drawing the stencils following Fig 2 (right) (Fu, et al., 2016) and writing each coefficient beside each stencil point,
834-
! we can flip everything with respect to the x=i point. This allows the formulas to work for the left-sided flux (at i-1/2), which is what we want here.
835-
! However, the stencils must follow the same order as the right-sided flux (k=0: i-1 to i+1; k=1: i to i+2; k=2: i-1 to i; k=3: i to i+3, k=4: i-3 to i).
836-
! By remapping the coefficients to these stencils, we obtain the correct polynomial coefficients for the left-sided flux:
831+
! Note: Unlike TENO5, TENO7 stencils differ from WENO7 stencils.
832+
! See Figure 2 (right) in Fu et al. (2016).
833+
! Flip the weights with respect to the x=i point, but keep the stencil order to obtain left-sided flux (at i-1/2).
834+
! It is easier to first consider the right-sided flux (at i+1/2) later in the code.
837835
poly(0) = ( 2d0*v_rs_ws_${XYZ}$ (j-1, k, l, i) + 5d0*v_rs_ws_${XYZ}$ (j , k, l, i) - 1d0*v_rs_ws_${XYZ}$ (j+1, k, l, i)) / 6d0 !&
838836
poly(1) = (11d0*v_rs_ws_${XYZ}$ (j , k, l, i) - 7d0*v_rs_ws_${XYZ}$ (j+1, k, l, i) + 2d0*v_rs_ws_${XYZ}$ (j+2, k, l, i)) / 6d0 !&
839837
poly(2) = (-1d0*v_rs_ws_${XYZ}$ (j-2, k, l, i) + 5d0*v_rs_ws_${XYZ}$ (j-1, k, l, i) + 2d0*v_rs_ws_${XYZ}$ (j , k, l, i)) / 6d0 !&

tests/0347811A/golden-metadata.txt

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)