Statistics
| Branch: | Revision:

root / synthbench / euroben-dm / mod2cr / .svn / text-base / checkreg.f.svn-base @ 0:839f52ef7657

History | View | Annotate | Download (783 Bytes)

1
      Subroutine checkreg( n1, n2, n3, a, b, x, maxdf, mindf )
2
! ----------------------------------------------------------------------
3
      Use       numerics
4
      Implicit None
5

    
6
      Integer  :: n1, n2, n3
7
      Real(l_) :: a(n1*n2*n3,0:3), b(n1*n2*n3), x(n1*n2*n3)
8
      Real(l_) :: maxdf, mindf
9

    
10
      Real(l_) :: y(n1*n2*n3), r(n1*n2*n3)
11
      Real(l_) :: nrm2
12
      External :: nrm2
13
! ----------------------------------------------------------------------
14
      Call sym7mxv( n1, n2, n3, a, x, y )
15
      r = b - y
16
      PRINT *, 'Check L2 norm = ', Sqrt( nrm2( n1*n2*3, r ) )
17
      maxdf = Maxval( r )
18
      mindf = Minval( r )
19
      PRINT 1000, r
20
 1000 Format( 5g13.5 )
21
! ----------------------------------------------------------------------
22
      End Subroutine checkreg