5 real rda1(10), rda(10), rval
6 double precision dda1(10), dda(10), dval
8 rda
= (/ 1,2,3,4,5,6,7,8,9,10 /)
9 rDA1
= MOD (1.1*(rDA(1)-5.0), P
=(rDA
-2.5))
11 rVAL
= MOD (1.1*(rDA(1)-5.0), P
=(rDA(i
)-2.5))
12 if (rval
/= rda1(i
)) call abort
15 dda
= (/ 1,2,3,4,5,6,7,8,9,10 /)
16 dDA1
= MOD (1.1d0*(dDA(1)-5.0d0), P
=(dDA
-2.5d0))
18 dVAL
= MOD (1.1d0*(dDA(1)-5.0d0), P
=(dDA(i
)-2.5d0))
19 if (dval
/= dda1(i
)) call abort