Compile large array in Dymola

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

    Yes, at least the compilation issue can preliminarily be avoided as follows in Dymola 2020 (and possibly earlier versions):

    Real d[na,nb] annotation(__Dymola_HideArray=true);
    

    However, there might be other possibilities as well - and the example doesn't fully clarify how it is intended be used. In particular I noted that 'd' can be evaluated and isn't used at all.

提交回复
热议问题