Skip to content

Commit

Permalink
disable erronous dimensioning of array (#3464)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Sep 17, 2015
1 parent 1663998 commit e6cfb0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/Template/CodegenCppCommon.tpl
Expand Up @@ -1183,8 +1183,9 @@ template daeExpReduction(Exp exp, Context context, Text &preExp,
let loopVar = '<%iter.id%>_loopVar'
let &rangeExpPre += '<%length%> = max(<%length%>, <%loopVar%>.getDim(1));<%\n%>'
"")
<<
<<
<%arrIndex%> = 1;
/* Note: skip dimensioning of <%res%> because create_array_from_shape does it
<% match typeof(r.expr)
case T_COMPLEX(complexClassType = record_state) then
let rec_name = '<%underscorePath(ClassInf.getStateName(record_state))%>'
Expand All @@ -1202,7 +1203,8 @@ template daeExpReduction(Exp exp, Context context, Text &preExp,

else
'<%res%>.setDims(<%length%>);'%>
>>
*/
>>
else if ri.defaultValue then
<<
<%&preDefault%>
Expand Down

0 comments on commit e6cfb0d

Please sign in to comment.