OpenModelica / OMSimulator

The OpenModelica FMI & SSP-based co-simulation environment.
Other
71 stars 50 forks source link

display warnings when replacing SubModel #1176

Closed arun3688 closed 2 years ago

arun3688 commented 2 years ago

Purpose

This PR displays warning messages to users when replacingSubModel and also extends the API oms_replaceSubModel which allows the users to set true or false when replacing the subModel

oms_status_enu_t oms_replaceSubModel(const char* cref, const char* fmuPath, bool replaceSubModel)
if (replaceSubModel==true)
  showwarnings, reimport the snapshot and replacing is not done
else
  show warnings and replace is done