Skip to content

Commit

Permalink
fmu: initialization crashed because nlsMethod was set to NS_NONE. Now…
Browse files Browse the repository at this point in the history
… NS_HYBRID is used as default

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14877 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Christian SChubert committed Jan 22, 2013
1 parent eeaef33 commit 3b3c2df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SimulationRuntime/fmi/export/fmu_model_interface.c
Expand Up @@ -528,6 +528,8 @@ fmiStatus fmiInitialize(fmiComponent c, fmiBoolean toleranceControlled, fmiReal
//input_function(comp->fmuData);
/* initial sample and delay before initial the system */
callExternalObjectConstructors(comp->fmuData);
/* do not forget to set nlsMethod! */
comp->fmuData->simulationInfo.nlsMethod = NS_HYBRID;
/* allocate memory for non-linear system solvers */
allocateNonlinearSystem(comp->fmuData);
/* allocate memory for state selection */
Expand Down

0 comments on commit 3b3c2df

Please sign in to comment.