@discrete_events
or @continuous_events
not working with acausal modeling framework
#2849
Labels
bug
Something isn't working
@discrete_events
or@continuous_events
can not "see" connector variables from outside components or its own component variables.Example component:
I'm able to connect all my components, use
@mtkbuild
, and create anODEProblem()
, but when I get tosolve()
, I getERROR: UndefVarError: picontroller₊readingsIn₊c_B not defined
. I’ve isolated@discrete_events
as the issue here because whenever I replacereadingsIn.c_B
in the@discrete_events
block with some number, everything is able to run properly (although I get the wrong solution of course).Similarly,
@discrete_events
or@continuous_events
can not see its own component variables unless it has a derivative term.For example:
@discrete_events
can't see the variableB
, and I getERROR: UndefVarError: picontroller₊B not defined
.@discrete_events
can only seeB
if I do something likeD(B) ~ 0
, but then I can’t doB ~ readingsIn.c_B
because @mtkbuild will tell me I have too many equations.The text was updated successfully, but these errors were encountered: