Skip to content

[ WIP ] Implement WENO Scheme - #131

Merged
ChrisRackauckas merged 3 commits into
SciML:masterfrom
xtalax:WENO
Jul 18, 2022
Merged

ChrisRackauckas merged 3 commits into
SciML:masterfrom
xtalax:WENO

Conversation

@xtalax

@xtalax xtalax commented Jul 13, 2022

Copy link
Copy Markdown
Member

fixes #102

TODO:

  • Implement Basic Scheme.
  • Handle Boundaries:
    • Create WENOmap similar to pmap.
    • Intercept and reduce interior to compensate.
    • Extrapolate with high order scheme to ensure equation balance/validity.
  • Extend interface to provide WENO as an option for 1st order derivatives.
  • Test.
  • Document.

Any comments on possible Interface designs or boundary handling welcome.

Stretch:

  • Generate WENO stencils with fornberg.
  • Directly calculate WENO parameter Formulae (for betas).
  • Extend to nonuniform case.
  • Extend to arbitrary derivative order.

@codecov

codecov Bot commented Jul 13, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #131 (1e0bb43) into master (f1a5314) will decrease coverage by 3.16%.
The diff coverage is 2.77%.

❗ Current head 1e0bb43 differs from pull request most recent head 52717af. Consider uploading reports for the commit 52717af to get more accurate results

@@            Coverage Diff             @@
##           master     #131      +/-   ##
==========================================
- Coverage   88.29%   85.12%   -3.17%     
==========================================
  Files          13       13              
  Lines         940      975      +35     
==========================================
  Hits          830      830              
- Misses        110      145      +35     
Impacted Files Coverage Δ
src/discretization/differential_discretizer.jl 77.59% <2.77%> (-18.36%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@xtalax xtalax changed the title Implement WENO Scheme [ WIP ] Implement WENO Scheme Jul 13, 2022
@ChrisRackauckas
ChrisRackauckas merged commit 52717af into SciML:master Jul 18, 2022
@xtalax

xtalax commented Jul 18, 2022

Copy link
Copy Markdown
Member Author

@ChrisRackauckas this was not finished!

@ChrisRackauckas

Copy link
Copy Markdown
Member

Did #132 extend this?

@xtalax

xtalax commented Jul 18, 2022

Copy link
Copy Markdown
Member Author

started from that branch but removed the WENO stuff, I will create a new PR to finish it

@ChrisRackauckas

Copy link
Copy Markdown
Member

Because all of these commits were in #132, it closed this by merging that.

@xtalax

xtalax commented Jul 18, 2022

Copy link
Copy Markdown
Member Author

ah ok.

ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/MethodOfLines.jl that referenced this pull request Sep 26, 2026
Resolve Project.toml by keeping PDEBase 0.1.38 (contains complex-typed variable support from PDEBase SciML#131). Bring in SciML#703 Schrödinger phase regression fix.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.09.26-dd393fe
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/704-codex/log-cont4.txt on amdci2.julia.csail.mit.edu
ChrisRackauckas added a commit that referenced this pull request Sep 27, 2026
* test: cover complex-typed solution indexing

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/704-codex/log.txt on amdci2.julia.csail.mit.edu

* fix: index solutions for complex-typed fields

Handle Complex{Num} fields in direct and callable solution indexing and document the required field annotation. Require PDEBase 0.1.38, which includes complex-typed dependent-variable support from PDEBase PR #131.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/704-codex/log.txt on amdci2.julia.csail.mit.edu

* test: isolate complex solution indexing coverage

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/704-codex/log.txt on amdci2.julia.csail.mit.edu

* fix: reject non-canonical complex solution index keys

Validate the full Complex{Num} key against real(u)+im*imag(u) before
lookup so conj(u) and real(u)-2im*imag(u) error instead of aliasing.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.09.26-dd393fe
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/704-codex/log-cont5.txt on amdci2.julia.csail.mit.edu

* test: reject transformed complex keys in solution indexing

Cover direct, callable, and stationary overloads for conj and
real-minus-2imag keys that previously returned the untransformed field.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.09.26-dd393fe
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/704-codex/log-cont5.txt on amdci2.julia.csail.mit.edu

---------

Co-authored-by: ChrisRackauckas-Claude <[email protected]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
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.

inplement finite difference WENO schemes

3 participants