Skip to content

Commit

Permalink
Skip displayUnit in FMI2 export because FMI2XML fails for e.g. bar
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Nov 21, 2017
1 parent 2b46fc8 commit 5730246
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Template/CodegenFMUCommon.tpl
Expand Up @@ -648,7 +648,8 @@ match simvar
case SIMVAR(unit = unit, displayUnit = displayUnit) then
let unitString = if unit then ' unit="<%unit%>"'
let displayUnitString = if displayUnit then ' displayUnit="<%displayUnit%>"'
'<%unitString%><%displayUnitString%>'
//'<%unitString%><%displayUnitString%>' skip displayUnit because FMI2XML fails for e.g. bar
'<%unitString%>'
end UnitString2;

template statesnumwithDummy(list<SimVar> vars)
Expand Down

0 comments on commit 5730246

Please sign in to comment.