diff --git a/docs/src/tutorials/input_component.md b/docs/src/tutorials/input_component.md index 7347c1213..219ce7857 100644 --- a/docs/src/tutorials/input_component.md +++ b/docs/src/tutorials/input_component.md @@ -22,7 +22,7 @@ using OrdinaryDiffEq D = Differential(t) function System(f; name) - src = TimeVaryingFunction(f) + @named src = TimeVaryingFunction(f) vars = @variables f(t)=0 x(t)=0 dx(t)=0 ddx(t)=0 pars = @parameters m=10 k=1000 d=1 @@ -105,11 +105,11 @@ Additional code could be added to resolve this issue, for example by using a `Re ## `SampledData` Component -To resolve the issues presented above, the `ModelingToolkitStandardLibrary.Blocks.SampledData` component can be used which allows for a resusable `ODESystem` and self contained data which ensures a solution which remains valid for it's lifetime. Now it's possible to also parallelize the call to `solve()`. +To resolve the issues presented above, the `ModelingToolkitStandardLibrary.Blocks.SampledData` component can be used which allows for a resusable `ODESystem` and self contained data which ensures a solution which remains valid for its lifetime. Now it's possible to also parallelize the call to `solve()`. ```julia function System(; name) - src = SampledData(Float64) + @named src = SampledData(Float64) vars = @variables f(t)=0 x(t)=0 dx(t)=0 ddx(t)=0 pars = @parameters m=10 k=1000 d=1