Reputation: 1232
I am building a large system in Dymola, I plan to exploit the parallel simulation potential in Dymola, but I just find two general settings in the help document.
My questions are:
Upvotes: 1
Views: 767
Reputation: 12507
The Advanced.ParallelizeCode
-flag does generate code that runs in parallel (hopefully, check the log), and vectorization as in Matlab does not help here (it may even cause problems).
What you can do instead is:
annotation(__Dymola_ThreadSafe=true);
to called functions, after checking that they are thread-safe.dymola\Modelica\Libraries\DecoupleBlocks.mo
); but be careful to verify the results first.The flag Advaned.ParallelSimulations
does not seem relevant for this case, as it runs entire simulations with different parameter values in parallel (much more coarse-grained). If you only run one simulation at a time that gives no benefit.
However, if you could change to use this instead it is in general a better idea - and you should then (in general) not enable the other parallelization variant.
Upvotes: 5