Skip to content

Commit

Permalink
Deactivate optimized matrix assign
Browse files Browse the repository at this point in the history
It generates wrong code for some PowerSystems Line models.
Let's see which models suffer from not having the optimized assign.
  • Loading branch information
rfranke committed Apr 2, 2016
1 parent 7186674 commit e26c7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenCppCommon.tpl
Expand Up @@ -1292,7 +1292,7 @@ template daeExpMatrix(Exp exp, Context context, Text &preExp, Text &varDecls, Si
///////////////////////////////////////////////CED
let matrixassign = match m.matrix
case row::_ then
let vars = daeExpMatrixRow(m.matrix,context,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace, stateDerVectorName)
let vars = "NO_ASSIGN" //daeExpMatrixRow(m.matrix,context,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace, stateDerVectorName)
match vars
case "NO_ASSIGN"
then
Expand Down

0 comments on commit e26c7b2

Please sign in to comment.