root / synthbench / euroben-dm / mod2g / .svn / text-base / check.f.svn-base @ 0:839f52ef7657
History | View | Annotate | Download (944 Bytes)
1 |
Subroutine check( a, w, hsize, n1, actsiz, ok ) |
---|---|
2 |
! --------------------------------------------------------------------- |
3 |
! --- Subroutine 'check' checks whether the transformed and |
4 |
! back-transformed array 'a' == 'w' within the precision 'eps'. |
5 |
! --------------------------------------------------------------------- |
6 |
Use numerics |
7 |
Use dist_module ! Contains # of proc.s & proc. no.s |
8 |
|
9 |
Integer :: hsize, n1 |
10 |
Real(l_) :: a(n1,hsize), w(n1,hsize) |
11 |
Integer :: actsiz(0:nodes-1,2) |
12 |
Logical :: ok |
13 |
|
14 |
Integer :: i, j |
15 |
Real(l_) :: eps |
16 |
! --------------------------------------------------------------------- |
17 |
eps = 4.0_l_*Epsilon( 1.0_l_ ) |
18 |
Do j = 1, actsiz(me,2) |
19 |
Do i = 1, n1 |
20 |
ok = ok .AND. ( Abs( a(i,j) - w(i,j) ) < eps ) |
21 |
End Do |
22 |
End Do |
23 |
! --------------------------------------------------------------------- |
24 |
End Subroutine check |