Skip to content

Commit

Permalink
fix for wrapped f (#148)
Browse files Browse the repository at this point in the history
* fix for wrapped f

* .f

* do not fix the bug here
  • Loading branch information
ranocha committed Sep 9, 2022
1 parent 1c5858a commit 21f4dc8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SummationByPartsOperators"
uuid = "9f78cca6-572e-554e-b819-917d2f1cf240"
author = ["Hendrik Ranocha"]
version = "0.5.21"
version = "0.5.22"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand Down Expand Up @@ -29,7 +29,7 @@ PolynomialBases = "0.4.5"
RecursiveArrayTools = "2.11"
Reexport = "0.2, 1.0"
Requires = "0.5.2, 1"
SciMLBase = "1.21"
SciMLBase = "1.51"
StaticArrays = "1.0"
UnPack = "1.0"
Unrolled = "0.1.3"
Expand Down
3 changes: 2 additions & 1 deletion src/SummationByPartsOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ using StaticArrays: SVector, StaticVector, FieldVector
using UnPack: @unpack
using Unrolled: @unroll

@reexport using SciMLBase: DiscreteCallback, ODEProblem, SecondOrderODEProblem
@reexport using SciMLBase: SciMLBase, DiscreteCallback, ODEProblem,
SecondOrderODEProblem

import LinearAlgebra: mul!
@reexport using PolynomialBases
Expand Down
3 changes: 2 additions & 1 deletion src/diffeq_callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ function SavingCallback(semi::AbstractSemidiscretization; kwargs...)
T = eltype(semi.derivative)

save_func = (u,t,integrator) -> integrate(u->ScalarIntegralQuantities(u,u^2),
u, integrator.f.f)
u,
SciMLBase.unwrapped_f(integrator.f.f))
saved_values = SavedValues(T, ScalarIntegralQuantities{T})
SavingCallback(save_func, saved_values; kwargs...)
end

2 comments on commit 21f4dc8

@ranocha
Copy link
Owner Author

@ranocha ranocha commented on 21f4dc8 Sep 9, 2022

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/67968

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.5.22 -m "<description of version>" 21f4dc8f2353b4a02bbf359a16ec92afec2f2184
git push origin v0.5.22

Please sign in to comment.