Skip to content

Feature: Dispatch Architecture for Non-Uniform WENO#542

Open
utkuyilmaz1903 wants to merge 2 commits into
SciML:masterfrom
utkuyilmaz1903:feat/nonuniform-grid-dispatch-prototype
Open

Feature: Dispatch Architecture for Non-Uniform WENO#542
utkuyilmaz1903 wants to merge 2 commits into
SciML:masterfrom
utkuyilmaz1903:feat/nonuniform-grid-dispatch-prototype

Conversation

@utkuyilmaz1903

@utkuyilmaz1903 utkuyilmaz1903 commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Description

This PR implements the multiple dispatch architecture required to support non-uniform grids in WENOScheme.

Changes

  • Dispatch: Dispatches weno_f strictly via dx::Real (uniform) and dx::AbstractVector (non-uniform).

  • Uniform Path: Legacy Jiang-Shu math is isolated in weno_f_uniform It remains 100% backward compatible with zero allocations.

  • Non-Uniform Stub: Set is_nonuniform = true in WENOScheme. Vector dx grids now safely dispatch to an isolated ArgumentError stub (weno_f_nonuniform) to prepare the codebase for upcoming implementations.

  • Fallbacks: Added @noinline methods to throw descriptive ArgumentErrors for completely unsupported dx types (e.g., String, Matrix).

  • Testing: Added test/components/weno_dispatch.jl to strictly verify the dispatch logic, fallback edge cases, and zero-allocation performance.

@utkuyilmaz1903 utkuyilmaz1903 changed the title WIP: Prototype: Zero-Overhead Dispatch for Non-Uniform Grids Feature: Zero-Allocation Dispatch Architecture for Non-Uniform WENO Jun 14, 2026
@utkuyilmaz1903 utkuyilmaz1903 changed the title Feature: Zero-Allocation Dispatch Architecture for Non-Uniform WENO Feature: Dispatch Architecture for Non-Uniform WENO Jun 14, 2026
@utkuyilmaz1903 utkuyilmaz1903 marked this pull request as ready for review June 14, 2026 08:33
@utkuyilmaz1903 utkuyilmaz1903 force-pushed the feat/nonuniform-grid-dispatch-prototype branch from ddec155 to 2ec5294 Compare June 14, 2026 09:39
@utkuyilmaz1903

Copy link
Copy Markdown
Contributor Author

@ChrisRackauckas The dispatch architecture is fully implemented and tested. I think this PR is ready for review. Let me know how it looks to you.

@utkuyilmaz1903 utkuyilmaz1903 force-pushed the feat/nonuniform-grid-dispatch-prototype branch 2 times, most recently from 6df1e37 to b6027fb Compare June 19, 2026 10:27
@utkuyilmaz1903 utkuyilmaz1903 force-pushed the feat/nonuniform-grid-dispatch-prototype branch from b6027fb to a5204a2 Compare June 19, 2026 10:47
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.

1 participant