rk_19
Structural
- Aug 7, 2012
- 71
Hi, I have a fortran program which generates 2d matrices A1(12x12) and A2(12x12), then combine it in such a way that A2(1,1) is added to A1(7,7), A2(1,2) is added to A1(7,8) and so on (as shown in the attachment). I got the output as matrix A (18 x18) from fortran. all the matrices are declared as double precision in fortran.
eg; doubleprecision,dimension(12,12)::A1,A2
doubleprecision,dimension(18,18)::A
The combined A matrix was checked manually. please refer the attachment, it appears to be slightly different from what I got when I did assemblage in excel - how do I get rid of this error - something to do with precision control ?
eg; doubleprecision,dimension(12,12)::A1,A2
doubleprecision,dimension(18,18)::A
The combined A matrix was checked manually. please refer the attachment, it appears to be slightly different from what I got when I did assemblage in excel - how do I get rid of this error - something to do with precision control ?