Skip to content

vector equations in @mtkmodel #2318

Open
@baggepinnen

Description

@baggepinnen

The @mtkmodel macro appears to assume that all equations are scalars:

ERROR: MethodError: Cannot `convert` an object of type Vector{Equation} to an object of type Equation
...
   @ ModelingToolkit ~/.julia/packages/ModelingToolkit/oIgbi/src/systems/model_parsing.jl:25 [inlined]

would it be possible to let the macro instead use vcat so that a statement inside the @equations block would work no matter whether it results in a scalar or a vector?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions