Skip to content

Commit

Permalink
- Fix compilation
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8777 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 2, 2011
1 parent b97d88b commit ba3c5de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Compiler/BackEnd/BackendDAE.mo
Expand Up @@ -44,7 +44,6 @@ public import Values;
public import HashTable2;
public import HashTable4;

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

public uniontype Type "
Expand Down
8 changes: 4 additions & 4 deletions Compiler/BackEnd/SimCode.mo
Expand Up @@ -9846,7 +9846,7 @@ algorithm
local DAE.Ident ident; Boolean b;
case (DAE.CREF_QUAL(ident = ident))
equation
b = stringEq(ident,BackendDAE.derivativeNamePrefix);
b = stringEq(ident,DAE.derivativeNamePrefix);
then b;
case (_) then false;
end matchcontinue;
Expand Down Expand Up @@ -11211,22 +11211,22 @@ algorithm
case(SIMVAR(name,varKind,comment,unit,displayUnit,0,initialValue,isFixed,type_,isDiscrete,arrayCref,aliasvar,source,causality,variable_index))
equation
name_str = ComponentReference.printComponentRefStr(name);
id_str = stringAppendList({BackendDAE.derivativeNamePrefix,"." ,name_str});
id_str = stringAppendList({DAE.derivativeNamePrefix,"." ,name_str});
cr_1 = ComponentReference.makeCrefIdent(id_str,DAE.ET_REAL(),{});
then
SIMVAR(cr_1,varKind,comment,unit,displayUnit,0,initialValue,isFixed,type_,isDiscrete,arrayCref,aliasvar,source,causality,variable_index);
case(SIMVAR(name,varKind,comment,unit,displayUnit,1,initialValue,isFixed,type_,isDiscrete,arrayCref,aliasvar,source,causality,variable_index))
equation
name_str = ComponentReference.printComponentRefStr(name);
id_str = stringAppendList({BackendDAE.derivativeNamePrefix,".",name_str});
id_str = stringAppendList({DAE.derivativeNamePrefix,".",name_str});
cr_1 = ComponentReference.makeCrefIdent(id_str,DAE.ET_REAL(),{});
then
SIMVAR(cr_1,varKind,comment,unit,displayUnit,1,initialValue,isFixed,type_,isDiscrete,arrayCref,aliasvar,source,causality,variable_index);

case(SIMVAR(name,varKind,comment,unit,displayUnit,2,initialValue,isFixed,type_,isDiscrete,arrayCref,aliasvar,source,causality,variable_index))
equation
name_str = ComponentReference.printComponentRefStr(name);
id_str = stringAppendList({BackendDAE.derivativeNamePrefix,".",name_str});
id_str = stringAppendList({DAE.derivativeNamePrefix,".",name_str});
cr_1 = ComponentReference.makeCrefIdent(id_str,DAE.ET_REAL(),{});
then
SIMVAR(cr_1,varKind,comment,unit,displayUnit,2,initialValue,isFixed,type_,isDiscrete,arrayCref,aliasvar,source,causality,variable_index);
Expand Down

0 comments on commit ba3c5de

Please sign in to comment.