Skip to content

Commit

Permalink
fix FMU string-type start attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Nov 3, 2016
1 parent a3b03f0 commit 98461c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/Template/CodegenFMU.tpl
Expand Up @@ -478,6 +478,8 @@ template initParamsDefault(SimVar var, String arrayName) ::=
case SIMVAR(__) then
let str = 'comp->fmuData->modelData-><%arrayName%>Data[<%index%>].attribute.start'
match initialValue
case SOME(v as SCONST(__)) then
'<%str%> = mmc_mk_scon(<%initVal(v)%>);'
case SOME(v) then
'<%str%> = <%initVal(v)%>;'
end initParamsDefault;
Expand Down

0 comments on commit 98461c4

Please sign in to comment.