Skip to content

Commit

Permalink
Remove discontinuity handling in the callback (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jul 18, 2023
1 parent d511d8b commit 675f453
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 675f453

Please sign in to comment.