Skip to content

fix: Resolve Symbolics TypeError in Downgrade CI - #590

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:fix/downgrade-tests
Jul 12, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:fix/downgrade-tests

Conversation

@utkuyilmaz1903

@utkuyilmaz1903 utkuyilmaz1903 commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

Description
This PR fixes the TypeError in the non-uniform WENO scheme that blocks the Downgrade CI.

Fix Details

  • In Julia 1.10 LTS, IfElse.ifelse falls back to Core.ifelse, which fails when evaluating a Symbolics.Num.
  • Replaced the generic _beta_nonneg fallback with max(val, zero(val)). This is natively supported by Symbolics and mathematically equivalent.
  • The AbstractFloat dispatch is fully preserved to maintain zero-allocation.
  • WENO tests pass locally (48/48).

Note on Current CI Failure
With the WENO issue resolved, the Downgrade CI now progresses but fails later in test/Brusselator/brusselator_eq.jl due to numerical drift in older OrdinaryDiffEq solvers. To keep this PR focused strictly on the WENO fix, I left the Brusselator tolerances untouched. That can be addressed in a separate PR if needed.

…mbolics compat

This resolves the Downgrade CI failure where IfElse.ifelse falls back to Core.ifelse in Julia 1.10 LTS, causing a TypeError when evaluated with Symbolics.Num. The AbstractFloat dispatch is preserved to maintain zero-allocation.
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 12, 2026 12:41
@ChrisRackauckas
ChrisRackauckas merged commit 394341f into SciML:master Jul 12, 2026
53 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