Compile large array in Dymola

后端 未结 3 1357
南笙
南笙 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:42

    By default all Modelica Compilers will expand all arrays (there are some exceptions like arrays in records in functions) into scalars. OpenModelica started some work on non-expanding arrays in the front-end and back-end. See: http://www.ep.liu.se/ecp/157/071/ecp19157071.pdf

提交回复
热议问题