56 INTEGER :: icompare, inodes, jnodes, knodes
62 CHARACTER(CHRLEN) ::
msg
64 REAL(RFREAL) :: l2norm, l8norm
65 REAL(RFREAL) :: l2norms2, l8norms2
70 'RVAV_ComputeError.F90' )
75 l8norm = -1.0e+30_rfreal
77 l8norms2 = -1.0e+30_rfreal
82 l2norm = l2norm + (globalrvav%evS1(
i,
j,
k) -globalrvav%evS2(
i,
j,
k))**2
83 l8norm =
max(l8norm,abs(globalrvav%evS1(
i,
j,
k) - globalrvav%evS2(
i,
j,
k)) )
84 l2norms2 = l2norms2 + globalrvav%evS2(
i,
j,
k)**2
85 l8norms2 =
max(l8norms2,abs(globalrvav%evS2(
i,
j,
k)) )
90 WRITE(*,1010) icompare,
sqrt(l2norm)/
sqrt(l2norms2)*100.0_rfreal, &
91 l8norm/l8norms2*100.0_rfreal
93 IF (global%verbLevel /= verbose_none)
THEN
94 WRITE(*,1000) icompare,
sqrt(l2norm)/(
REAL(inodes*jnodes*knodes, kind=rfreal)),l8norm
96 WRITE(200,*)
'ICompare = ',icompare
101 WRITE(200,*)
i,
j,
k,globalrvav%evS1(
i,
j,
k),globalrvav%evS2(
i,
j,
k), &
102 globalrvav%evS1(
i,
j,
k) -globalrvav%evS2(
i,
j,
k)
112 1000
FORMAT(
' Comparison ',i5,
', L2 Norm= ',1pe15.7,
', L8 Norm =',1pe15.7)
113 1010
FORMAT(/,
' RocVaV passed the test for Comparison ',i5,/,&
114 ' Percentage of Normalized L2 Norm= ',1pe15.7,/,&
115 ' Percentage of Normalized L8 Norm =',1pe15.7)
subroutine rvav_computeerror(global, iCompare, iNodes, jNodes, kNodes)
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
subroutine registerfunction(global, funName, fileName)
subroutine deregisterfunction(global)