Skip to content

Commit 01a6190

Browse files
committed
add PresetTime- and DiscreteComponentCallback
1 parent a82d156 commit 01a6190

File tree

5 files changed

+258
-164
lines changed

5 files changed

+258
-164
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ version = "0.9.7"
66
[deps]
77
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
88
Atomix = "a9b6321e-bd34-4604-b9c9-b65b8de01458"
9+
DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def"
910
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1011
FastClosures = "9aa1b823-49e4-5ca5-8b0f-3971ec8bab6a"
1112
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
@@ -48,6 +49,7 @@ Adapt = "4.0.4"
4849
ArgCheck = "2.3.0"
4950
Atomix = "1"
5051
CUDA = "5.5.2"
52+
DiffEqCallbacks = "4.2.2"
5153
DocStringExtensions = "0.9.3"
5254
FastClosures = "0.3.2"
5355
ForwardDiff = "0.10.36"

src/NetworkDynamics.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ using Printf: @sprintf
2222
using Random: Random
2323
using Static: Static, StaticInt
2424
using SciMLBase: VectorContinuousCallback, CallbackSet
25+
using DiffEqCallbacks: DiffEqCallbacks
2526

2627
@static if VERSION v"1.11.0-0"
2728
using Base: AnnotatedIOBuffer, AnnotatedString
@@ -77,6 +78,7 @@ include("metadata.jl")
7778

7879
export ComponentCondition, ComponentAffect
7980
export ContinousComponentCallback, VectorContinousComponentCallback
81+
export DiscreteComponentCallback, PresetTimeComponentCallback
8082
export SymbolicView
8183
include("callbacks.jl")
8284

0 commit comments

Comments
 (0)