-
Notifications
You must be signed in to change notification settings - Fork 34
Pedantic Modelica Check
Dymola provides two different modes to check Modelica code. The default mode marks many findings with Warning
where other platforms (e.g. OpenModelica) would raise an Error
. Therefore it is preferable not to use the default mode, but the second one which is called pedantic
.
The pedantic modelica check could be enabled by setting the flag Advanced.PedanticModelica
to true
.
One could also use the graphical interface of Dymola to enable the pedantic check by enabling the corresponding option in the Simulation Setup
.
Dymola runs three .mos
files during startup:
RunScript("c:/program files (x86)/dymola 2016/insert/dymola.mos", true);
RunScript("C:/ProgramData/Dynasim/setup.mos", true);
RunScript("C:/Users/[YOUR_USER_NAME]/AppData/Roaming/Dynasim/setup.mos", true);
These scripts can be also used to set flags, e.g. the Advanced.PedanticModelica
flag.
Once Dymola has been started, the pedantic Modelica check mode could be activated using the above methods (i.e. setting Advanced.PedanticModelica=false
or enable the option Pedantic mode for checking Modelica semantics
in the graphical interface).