Skip to content

Update Sundials requirement from 4.24, 5.1 to 4.24, 5.1, 6.2#302

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/julia/Sundials-4.24-and-5.1-and-6.2
Open

Update Sundials requirement from 4.24, 5.1 to 4.24, 5.1, 6.2#302
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/julia/Sundials-4.24-and-5.1-and-6.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 8, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on Sundials to permit the latest version.

Release notes

Sourced from Sundials's releases.

v6.2.2

Sundials v6.2.2

Diff since v6.2.1

Merged pull requests:

Changelog

Sourced from Sundials's changelog.

Sundials.jl NEWS

v5.0.0

Breaking Changes

Upgrade to Sundials v7

This release updates the underlying Sundials C library from v5 to v7, which introduces significant API changes. This is a breaking change for users directly using the low-level Sundials API.

Key Changes:

  1. SUNContext requirement: All Sundials objects now require a SUNContext object for creation. This context manages the Sundials environment and must be created before any solver objects.

  2. Memory management: The new context-based approach improves thread safety and resource management.

Migration Guide for Low-Level API Users:

If you're using the low-level Sundials API directly (not through the DiffEq interface):

# Old code (v4.x) - No context needed
mem_ptr = CVodeCreate(CV_BDF)
mem = Handle(mem_ptr)
# New code (v5.0) - Context required
ctx_ptr = Ref{SUNContext}(C_NULL)
SUNContext_Create(C_NULL, Base.unsafe_convert(Ptr{SUNContext}, ctx_ptr))
ctx = ctx_ptr[]
mem_ptr = CVodeCreate(CV_BDF, ctx)  # Context passed as argument
mem = Handle(mem_ptr)
# ... use solver ...
SUNContext_Free(ctx)  # Clean up context when done

Automatic handling in high-level interface:

If you're using the standard DiffEq interface (solve(prob, CVODE_BDF())), no changes are needed. The context is automatically managed internally:

# This continues to work without changes
sol = solve(prob, CVODE_BDF())

Functions affected by context requirement:

  • All solver creation functions (CVodeCreate, ARKStepCreate, IDACreate, KINCreate)
  • All vector creation functions (N_VNew_Serial, etc.)
  • All matrix creation functions (SUNDenseMatrix, SUNBandMatrix, etc.)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [Sundials](https://github.com/SciML/Sundials.jl) to permit the latest version.
- [Release notes](https://github.com/SciML/Sundials.jl/releases)
- [Changelog](https://github.com/SciML/Sundials.jl/blob/master/NEWS.md)
- [Commits](https://github.com/SciML/Sundials.jl/commits/v6.2.2)

---
updated-dependencies:
- dependency-name: Sundials
  dependency-version: 6.2.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file julia Pull requests that update julia code labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file julia Pull requests that update julia code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants