Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 5730246

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
Skip displayUnit in FMI2 export because FMI2XML fails for e.g. bar
Belonging to [master]: - #2039 - OpenModelica/OpenModelica-testsuite#788
1 parent 2b46fc8 commit 5730246

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Compiler/Template/CodegenFMUCommon.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,8 @@ match simvar
648648
case SIMVAR(unit = unit, displayUnit = displayUnit) then
649649
let unitString = if unit then ' unit="<%unit%>"'
650650
let displayUnitString = if displayUnit then ' displayUnit="<%displayUnit%>"'
651-
'<%unitString%><%displayUnitString%>'
651+
//'<%unitString%><%displayUnitString%>' skip displayUnit because FMI2XML fails for e.g. bar
652+
'<%unitString%>'
652653
end UnitString2;
653654

654655
template statesnumwithDummy(list<SimVar> vars)

0 commit comments

Comments
 (0)