Skip to content

Add Oregonator example with reference verification and work-precision output#40

Merged
ivan-pi merged 2 commits into
mainfrom
copilot/add-oregonator-problem-example
May 11, 2026
Merged

Add Oregonator example with reference verification and work-precision output#40
ivan-pi merged 2 commits into
mainfrom
copilot/add-oregonator-problem-example

Conversation

Copilot AI commented May 11, 2026

Copy link
Copy Markdown
Contributor

Adds an Oregonator IVP example based on the University of Bari test set, using the published F77 system, initial state, interval, and reference solution at t = 360. The example verifies the terminal state against the reference, then emits work-precision artifacts for tolerance sweeps.

  • New Oregonator example

    • adds example/oregonator.f90
    • implements the Oregonator RHS and exact Jacobian from the supplied test problem
    • uses y0 = [1, 2, 3] on t ∈ [0, 360]
  • Reference-solution verification

    • checks the computed solution at t = 360 against the provided reference state
    • fails fast if the relative error exceeds a tight verification threshold before generating plot data
  • Work-precision artifacts

    • sweeps solver tolerances across multiple runs
    • records error vs. work metrics from solver statistics
    • writes:
      • oregonator_work_precision.csv
      • oregonator_work_precision.svg
  • Example registration and docs

    • registers oregonator in the example CMake target list
    • updates the README example list and documents the generated output files

Example usage:

call stiff3(n, fun, x0, y, x1, jac, h0, eps, w, stats=stats)

Example generated data schema:

eps,max_relative_error,nfev,njev,nlu,nsol,nacc,nrej
1.0e-4,...
1.0e-5,...
...

Copilot AI and others added 2 commits May 11, 2026 19:12
Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/f7b0e04d-83b2-4b6d-9b36-32da6a997174

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/f7b0e04d-83b2-4b6d-9b36-32da6a997174

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>
@ivan-pi ivan-pi marked this pull request as ready for review May 11, 2026 20:22
@ivan-pi ivan-pi merged commit 2f41df8 into main May 11, 2026
2 of 4 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