Skip to content

Commit

Permalink
fix ticket:3960
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Jun 14, 2016
1 parent 447096d commit d59e2f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/Template/CodegenFMUCommon.tpl
Expand Up @@ -377,11 +377,15 @@ template ModelStructureDerivatives(FmiDerivatives fmiDerivatives)
::=
match fmiDerivatives
case FMIDERIVATIVES(__) then
if intGt(listLength(fmiUnknownsList), 0) then
<<
<Derivatives>
<%ModelStructureUnknowns(fmiUnknownsList)%>
</Derivatives>
>>
else
// don't generate the element if model has none
<<>>
end ModelStructureDerivatives;

template ModelStructureDiscreteStates(FmiDiscreteStates fmiDiscreteStates)
Expand Down

0 comments on commit d59e2f8

Please sign in to comment.