Skip to content

Commit

Permalink
fix attribute name for causality
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Aug 3, 2015
1 parent e3641b8 commit 49a6e7e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Compiler/Template/CodegenFMU.tpl
Expand Up @@ -2527,63 +2527,63 @@ if boolAnd(stringEq(type, "real"), (boolAnd(stringEq(variabilityCausality, "para
<<
<%
match fmiModelVariable
case REALVARIABLE(variability="parameter", hasStartValue=true) then
case REALVARIABLE(causality="parameter", hasStartValue=true) then
if intEq(what,1) then valueReference else if intEq(what,2) then name
%>
>>
else if boolAnd(stringEq(type, "integer"), (boolAnd(stringEq(variabilityCausality, "parameter"), boolNot(dependent)))) then
<<
<%
match fmiModelVariable
case INTEGERVARIABLE(variability="parameter", hasStartValue=true) then
case INTEGERVARIABLE(causality="parameter", hasStartValue=true) then
if intEq(what,1) then valueReference else if intEq(what,2) then name
%>
>>
else if boolAnd(stringEq(type, "boolean"), (boolAnd(stringEq(variabilityCausality, "parameter"), boolNot(dependent)))) then
<<
<%
match fmiModelVariable
case BOOLEANVARIABLE(variability="parameter", hasStartValue=true) then
case BOOLEANVARIABLE(causality="parameter", hasStartValue=true) then
if intEq(what,1) then valueReference else if intEq(what,2) then name
%>
>>
else if boolAnd(stringEq(type, "string"), (boolAnd(stringEq(variabilityCausality, "parameter"), boolNot(dependent)))) then
<<
<%
match fmiModelVariable
case STRINGVARIABLE(variability="parameter", hasStartValue=true) then
case STRINGVARIABLE(causality="parameter", hasStartValue=true) then
if intEq(what,1) then valueReference else if intEq(what,2) then name
%>
>>
else if boolAnd(stringEq(type, "real"), (boolAnd(stringEq(variabilityCausality, "parameter"), dependent))) then
<<
<%
match fmiModelVariable
case REALVARIABLE(variability="parameter", hasStartValue=false, isFixed=false) then
case REALVARIABLE(causality="parameter", hasStartValue=false, isFixed=false) then
if intEq(what,1) then valueReference else if intEq(what,2) then name
%>
>>
else if boolAnd(stringEq(type, "integer"), (boolAnd(stringEq(variabilityCausality, "parameter"), dependent))) then
<<
<%
match fmiModelVariable
case INTEGERVARIABLE(variability="parameter", hasStartValue=false, isFixed=false) then
case INTEGERVARIABLE(causality="parameter", hasStartValue=false, isFixed=false) then
if intEq(what,1) then valueReference else if intEq(what,2) then name
%>
>>
else if boolAnd(stringEq(type, "boolean"), (boolAnd(stringEq(variabilityCausality, "parameter"), dependent))) then
<<
<%
match fmiModelVariable
case BOOLEANVARIABLE(variability="parameter", hasStartValue=false, isFixed=false) then
case BOOLEANVARIABLE(causality="parameter", hasStartValue=false, isFixed=false) then
if intEq(what,1) then valueReference else if intEq(what,2) then name
%>
>>
else if boolAnd(stringEq(type, "string"), (boolAnd(stringEq(variabilityCausality, "parameter"), dependent))) then
<<
<%
match fmiModelVariable
case STRINGVARIABLE(variability="parameter", hasStartValue=false, isFixed=false) then
case STRINGVARIABLE(causality="parameter", hasStartValue=false, isFixed=false) then
if intEq(what,1) then valueReference else if intEq(what,2) then name
%>
>>
Expand Down

0 comments on commit 49a6e7e

Please sign in to comment.