Skip to content

Commit

Permalink
fix dae residual varKind for code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Braun committed Aug 29, 2016
1 parent 5d7be40 commit 9f51354
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/Template/CodegenCFunctions.tpl
Expand Up @@ -4114,6 +4114,7 @@ template crefToCStr(ComponentRef cr, Integer ix, Boolean isPre)
case SIMVAR(varKind=JAC_VAR())
case SIMVAR(varKind=JAC_DIFF_VAR())
case SIMVAR(varKind=SEED_VAR())
case SIMVAR(varKind=DAE_RESIDUAL_VAR())
case SIMVAR(index=-2)
then
if intEq(ix,0) then (if isPre then "$P$PRE")+crefDefine(cr)
Expand Down
1 change: 1 addition & 0 deletions Compiler/Template/CodegenUtil.tpl
Expand Up @@ -223,6 +223,7 @@ template variabilityString(VarKind varKind)
case OPT_TGRID() then "OPT_TGRID"
case OPT_LOOP_INPUT() then "OPT_LOOP_INPUT"
case ALG_STATE() then "ALG_STATE"
case DAE_RESIDUAL_VAR() then "DAE_RESIDUAL_VAR"
else "#UNKNOWN_VARKIND"
end match
end variabilityString;
Expand Down

0 comments on commit 9f51354

Please sign in to comment.