Skip to content

Commit

Permalink
Add initial state calculation after initial equations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Broenink committed Apr 10, 2017
1 parent 242e5a6 commit a217643
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions StandaloneFMU/src/xxmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ void %FUNCTIONPREFIX%CalculateInitial (%VARPREFIX%ModelInstance* model_instance)

%ENDIF%
%INITIAL_EQUATIONS%

%IF%%NUMBER_STATES%
/* set the states */
%INITIALIZE_STATES%

%ENDIF%
}

/* This function calculates the static equations of the model.
Expand Down

0 comments on commit a217643

Please sign in to comment.