Skip to content

Commit

Permalink
Remove discontinuity handling in the callback
Browse files Browse the repository at this point in the history
since it's just for monitoring, we should disable the extra saving that is occurring with it. By default it does a pre and post save at the callback points in the assumption that it's required for accurately handling the resolution of the discontinuity. But here we don't want that.
  • Loading branch information
ChrisRackauckas committed Jul 18, 2023
1 parent 09a3a7d commit 90f74c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SimulationService"
uuid = "e66378d9-a322-4933-8764-0ce0bcab4993"
authors = ["Five Grant <[email protected]>"]
version = "0.14.0"
version = "0.14.1"

[deps]
AMQPClient = "79c8b4cd-a41a-55fa-907c-fab5288e1383"
Expand Down
4 changes: 3 additions & 1 deletion src/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ function (o::IntermediateResults)(integrator)
publish_to_rabbitmq(; iter=iter, time=t, params=u, abserr=norm(u - uprev), id=o.id,
retcode=SciMLBase.check_error(integrator))
end
EasyModelAnalysis.DifferentialEquations.u_modified!(integrator, false)
end

get_callback(o::OperationRequest) = DiscreteCallback((args...) -> true, IntermediateResults(o.id))
get_callback(o::OperationRequest) = DiscreteCallback((args...) -> true, IntermediateResults(o.id),
save_positions = (false,false))


#----------------------------------------------------------------------# dataframe_with_observables
Expand Down

0 comments on commit 90f74c7

Please sign in to comment.