Skip to content

Commit ef824e4

Browse files
authored
Corrected the name vs @named problem in the tutorial
The [Building component-based, hierarchical models](https://mtk.sciml.ai/dev/tutorials/ode_modeling/#Building-component-based,-hierarchical-models) tutorial did not work (see the issue #1326). The culprit was apparently that the `@named` macro doesn't work (well) with the `compose`.
1 parent fbb9325 commit ef824e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/tutorials/ode_modeling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ again are just algebraic relations:
211211
connections = [ fol_1.f ~ 1.5,
212212
fol_2.f ~ fol_1.x ]
213213

214-
@named connected = compose(ODESystem(connections), fol_1, fol_2)
214+
connected = compose(ODESystem(connections,name=:connected), fol_1, fol_2)
215215
# Model connected with 5 equations
216216
# States (5):
217217
# fol_1₊f(t)

0 commit comments

Comments
 (0)