Skip to content

Commit

Permalink
- use derivativeNamePrefix from DAE
Browse files Browse the repository at this point in the history
- use function ComponentReference.crefPrefixDer 

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8767 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed May 2, 2011
1 parent 5d15256 commit 25b3338
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAE.mo
Expand Up @@ -44,7 +44,7 @@ public import Values;
public import HashTable2;
public import HashTable4;

public constant String derivativeNamePrefix="$DER";
public constant String derivativeNamePrefix=DAE.derivativeNamePrefix;
public constant String partialDerivativeNamePrefix="$pDER";

public uniontype Type "
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -4144,7 +4144,7 @@ algorithm

case (((e as DAE.CALL(path = Absyn.IDENT(name = "der"),expLst = {DAE.CREF(componentRef = cr)}),(vars,pa))))
equation
cr = ComponentReference.makeCrefQual("$DER", DAE.ET_REAL(), {}, cr);
cr = ComponentReference.crefPrefixDer(cr);
(varslst,p) = BackendVariable.getVar(cr, vars);
res = incidenceRowExp1(varslst,p,pa,false);
then
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/Derive.mo
Expand Up @@ -1373,7 +1373,7 @@ algorithm

case (DAE.CALL(path = Absyn.IDENT("der"), expLst = {DAE.CREF(componentRef = cr)}), crx, differentiateIfExp)
equation
cr = ComponentReference.makeCrefQual("$DER", DAE.ET_REAL(), {}, cr);
cr = ComponentReference.crefPrefixDer(cr);
true = ComponentReference.crefEqual(cr, crx);
rval = intReal(1);
then
Expand Down

0 comments on commit 25b3338

Please sign in to comment.