Compile large array in Dymola

后端 未结 3 1356
南笙
南笙 2021-01-14 05:15

Please consider the following small Modelica model and function:

model VectorizeDemo
  parameter Integer na=5;
  final parameter Integer nb=2*na;
  final par         


        
3条回答
  •  太阳男子
    2021-01-14 05:36

    IIRC, some parts of the Modelica specification are written in a way that requires scalarization of all variables. That is not necessary for many cases, but simpler for some common cases in index reduction. It seems particularly unnecessary for some cases of discretized PDE.

提交回复
热议问题