We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b880720 commit f5cfe10Copy full SHA for f5cfe10
src/callbacks.jl
@@ -37,7 +37,7 @@ Creates a callback condition for a [`ComponentCallback`].
37
Consider a component model with states `[:u1, :u2]`, inputs `[:i]`, outputs
38
`[:o]` and parameters `[:p1, :p2]`.
39
40
- ComponentCondition([:u1, :o], [:p1]) do (u, p, t)
+ ComponentCondition([:u1, :o], [:p1]) do u, p, t
41
# access states symbolicially or via int index
42
u[:u1] == u[1]
43
u[:o] == u[2]
@@ -81,7 +81,7 @@ Creates a callback condition for a [`ComponentCallback`].
81
82
83
84
- ComponentAffect([:u1, :o], [:p1]) do (u, p, ctx)
+ ComponentAffect([:u1, :o], [:p1]) do u, p, ctx
85
u[:u1] = 0 # change the state
86
p[:p1] = 1 # change the parameter
87
@info "Changed :u1 and :p1 on vertex \$(ctx.vidx)" # access context
0 commit comments