Skip to content

Commit

Permalink
fix #1878 for copy_double_data_mem
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13312 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Oct 11, 2012
1 parent 723d900 commit 4fd98d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/Template/CodegenCpp.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5833,7 +5833,7 @@ case CREF(ty= t as DAE.T_ARRAY(__)) then
match context
case SIMULATION(__) then
<<
copy_<%expTypeShort(t)%>_array_data_mem(&<%rhsStr%>, &<%lhsStr%>);
assign_array(<%lhsStr%>,<%rhsStr%> );
>>
else
'<%lhsStr%> = <%rhsStr%>;'
Expand Down Expand Up @@ -7128,9 +7128,9 @@ template copyArrayData(DAE.Type ty, String exp, DAE.ComponentRef cr,
let cref = contextArrayCref(cr, context)
match context
case FUNCTION_CONTEXT(__) then
'copy_<%type%>_data(&<%exp%>, &<%cref%>);'
'assign_array(<%cref%>,<%exp%>);'
else
'copy_<%type%>_data_mem(&<%exp%>, &<%cref%>);'
'assign_array(<%cref%>,<%exp%>);'
end copyArrayData;

template algStmtWhen(DAE.Statement when, Context context, Text &varDecls /*BUFP*/,SimCode simCode)
Expand Down

0 comments on commit 4fd98d4

Please sign in to comment.