#11 closed defect (fixed)
Incorrect local sum indices
Reported by: | miha | Owned by: | miha |
---|---|---|---|
Priority: | major | Milestone: | Promot 0.8 |
Component: | PromotWriterDiana | Version: | |
Severity: | fatal | Keywords: | |
Cc: |
Description
Diana writer produces incorect code for the included sum reducers, example:
CapeDouble SysCore2dSimpleESO::sum__85(CapeLong S4v_iz2) { CapeDouble res=0.0; for(CapeLong S4v_iz1=1;S4v_iz1<=S4v_nz1;S4v_iz1++) res+=(sum__86(S4v_iz1)*S4v_dz1); return res; } CapeDouble SysCore2dSimpleESO::sum__86(CapeLong S4v_iz1) { CapeDouble res=0.0; for(CapeLong S4v_iz2=1;S4v_iz2<=S4v_nz2;S4v_iz2++) res+=(S4v_i_a[S4v_iz1-1][S4v_iz2-1]*S4v_dz2); return res; }
Change History (3)
comment:1 Changed 19 years ago by miha
- Status changed from new to assigned
comment:2 Changed 19 years ago by miha
- Resolution set to fixed
- Status changed from assigned to closed
comment:3 Changed 17 years ago by rempel
- Milestone changed from Promot 1.0 to Promot 0.8
Note: See
TracTickets for help on using
tickets.