Skip to content

test: Add Non-Uniform WENO Convergence Tests (MMS) - #591

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
utkuyilmaz1903:test/weno-convergence
Jul 28, 2026
Merged

ChrisRackauckas merged 2 commits into
SciML:masterfrom
utkuyilmaz1903:test/weno-convergence

Conversation

@utkuyilmaz1903

@utkuyilmaz1903 utkuyilmaz1903 commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds an end-to-end MMS convergence test for WENOScheme on non-uniform grids (test/Convection_WENO/MOL_1D_WENO_NU_Convergence.jl), complementing the existing kernel-level tests in test/Components/weno_nonuniform_{core,boundary}.jl.

Validations via MMS linear advection (MOLFiniteDifference → discretize → solve):

  • Uniform baseline: EOC > 3.75 (measured ≈ 3.85)
  • Center-clustered sinh grid (β = 4): EOC > 2.2 on both nominal-h and min(Δx) metrics (measured ≈ 2.45, pre-asymptotic at N ≤ 161)
  • Temporal error isolation: Total error invariant (< 2% spread) across Courant numbers 1, 1/4, and 1/16, proving the measured error is strictly spatial.
  • Reversed wind (v = -1): Error parity with v = +1 on the same grid (ratio ≈ 1.002), verifying sign-agnostic upwinding.
  • Wall-clustered tanh grid (β = 2): Error-band regression to stress-test one-sided boundary stencils under heavy stretching.

CI Optimization & Cost:
Each (grid, v) pair is symbolically discretized only once. The resulting ODEProblem is reused by varying dt at solve time.

  • Total budget: 6 symbolic discretizations, 8 fixed-step SSPRK33 solves.
  • All thresholds are calibrated against locally measured values.

@utkuyilmaz1903
utkuyilmaz1903 force-pushed the test/weno-convergence branch from 63143c1 to 6fdf17a Compare July 11, 2026 13:13
@utkuyilmaz1903

Copy link
Copy Markdown
Member Author

This convergence test takes over 30 minutes to run. Given that we already have thorough core, boundary, and integration tests, a full pipeline convergence test here is likely overkill for CI. I will scale this down to a very lightweight regression guard or reconsider if it's even needed.

@utkuyilmaz1903
utkuyilmaz1903 force-pushed the test/weno-convergence branch 3 times, most recently from c4ab1bf to fc16ae3 Compare July 14, 2026 16:55
@utkuyilmaz1903

Copy link
Copy Markdown
Member Author

This convergence test takes over 30 minutes to run. Given that we already have thorough core, boundary, and integration tests, a full pipeline convergence test here is likely overkill for CI. I will scale this down to a very lightweight regression guard or reconsider if it's even needed.

I reduced the full suite's local run time to ~11 mins by building the ODEProblem once per grid and reusing it.

@utkuyilmaz1903
utkuyilmaz1903 marked this pull request as ready for review July 14, 2026 17:32
@utkuyilmaz1903
utkuyilmaz1903 force-pushed the test/weno-convergence branch from fc16ae3 to 64a8c85 Compare July 22, 2026 10:53
@ChrisRackauckas
ChrisRackauckas merged commit aa2f7a3 into SciML:master Jul 28, 2026
61 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants