Skip to content

Commit

Permalink
Don't copy unit information from state to state derivative
Browse files Browse the repository at this point in the history
- fix ticket:3668
  • Loading branch information
lochel authored and OpenModelica-Hudson committed May 3, 2016
1 parent f5b5cee commit 0306552
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -6718,6 +6718,8 @@ algorithm
deriv.arrayCref := Util.applyOption(deriv.arrayCref, ComponentReference.crefPrefixDer);
deriv.name := ComponentReference.crefPrefixDer(deriv.name);
deriv.varKind := BackendDAE.STATE_DER();
deriv.unit := "";
deriv.displayUnit := "";
deriv.initialValue := NONE();
deriv.aliasvar := SimCodeVar.NOALIAS();
deriv.causality := SimCodeVar.INTERNAL();
Expand Down

0 comments on commit 0306552

Please sign in to comment.