Skip to content

Commit

Permalink
use linear interpolations (#62)
Browse files Browse the repository at this point in the history
* use linear interpolation for MPE

* format

* fix undefined reference

* test also MVector and out-of-place arrays

* in-place MPE

* update MPRK22 - needs to be checked

* format

* fix convergence tests

* bump version
  • Loading branch information
ranocha authored Apr 9, 2024
1 parent 290fd8d commit 4cc77e3
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 65 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PositiveIntegrators"
uuid = "d1b20bf0-b083-4985-a874-dc5121669aa5"
authors = ["Stefan Kopecz, Hendrik Ranocha, and contributors"]
version = "0.1.6-pre"
version = "0.1.6"

[deps]
FastBroadcast = "7034ab61-46d4-4ed7-9d0f-46aef9175898"
Expand Down
24 changes: 14 additions & 10 deletions src/PositiveIntegrators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,24 @@ using SymbolicIndexingInterface

using LinearSolve: LinearSolve, LinearProblem, LUFactorization

import SciMLBase: __has_mass_matrix, __has_analytic, __has_tgrad,
using SciMLBase: DEFAULT_OBSERVED
import SciMLBase: interp_summary,
__has_mass_matrix, __has_analytic, __has_tgrad,
__has_jac, __has_jvp, __has_vjp, __has_jac_prototype,
__has_sparsity, __has_Wfact, __has_Wfact_t,
__has_paramjac, __has_syms, __has_indepsym, __has_paramsyms,
__has_observed, DEFAULT_OBSERVED, __has_colorvec,
__has_sys

import OrdinaryDiffEq: @cache,
OrdinaryDiffEqAdaptiveAlgorithm, calculate_residuals,
calculate_residuals!, False,
OrdinaryDiffEqMutableCache, OrdinaryDiffEqConstantCache,
__has_observed, __has_colorvec, __has_sys

using OrdinaryDiffEq: @cache,
DEFAULT_PRECS,
OrdinaryDiffEqAdaptiveAlgorithm,
OrdinaryDiffEqConstantCache, OrdinaryDiffEqMutableCache,
False,
recursivefill!, _vec, wrapprecs, dolinsolve
import OrdinaryDiffEq: alg_order, isfsal,
calculate_residuals, calculate_residuals!,
alg_cache, initialize!, perform_step!,
recursivefill!, _vec, DEFAULT_PRECS, wrapprecs,
dolinsolve, alg_order
_ode_interpolant, _ode_interpolant!

# 2. Export functionality defining the public API
export PDSFunction, PDSProblem
Expand Down
Loading

2 comments on commit 4cc77e3

@ranocha
Copy link
Collaborator Author

@ranocha ranocha commented on 4cc77e3 Apr 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/104530

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.6 -m "<description of version>" 4cc77e36bf20e697b97aafcce45656f5d9aacc40
git push origin v0.1.6

Please sign in to comment.