Skip to content

Commit

Permalink
Fix comments of state derivatives
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Mar 19, 2017
1 parent 1f69fcc commit 621f1b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -7442,6 +7442,9 @@ algorithm
deriv.arrayCref := Util.applyOption(deriv.arrayCref, ComponentReference.crefPrefixDer);
deriv.name := ComponentReference.crefPrefixDer(deriv.name);
deriv.varKind := BackendDAE.STATE_DER();
if deriv.comment <> "" then
deriv.comment := "der(" + deriv.comment + ")";
end if;
try
unit := Unit.parseUnitString(deriv.unit);
unit := Unit.unitDiv(unit, Unit.UNIT(1e0, 0, 0, 0, 1, 0, 0, 0));
Expand Down

0 comments on commit 621f1b6

Please sign in to comment.