63 TYPE(t_region
),
POINTER :: regions(:)
69 CHARACTER(CHRLEN) :: rcsidentstring
70 INTEGER :: errorflag,icg,ireg
71 REAL(RFREAL) :: dr,drsum,drsumtot
72 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcv,pcvold
79 rcsidentstring =
'$RCSfile: RFLU_ResidualNorm.F90,v $ $Revision: 1.8 $'
81 global => regions(1)%global
84 'RFLU_ResidualNorm.F90')
92 DO ireg = 1,global%nRegionsLocal
93 pcv => regions(ireg)%mixt%cv
94 pcvold => regions(ireg)%mixt%cvOld
96 DO icg = 1,regions(ireg)%grid%nCells
97 dr = pcv(cv_mixt_dens,icg) - pcvold(cv_mixt_dens,icg)
106 IF ( global%nRegions > 1 )
THEN
107 CALL mpi_allreduce(drsum,drsumtot,1,mpi_rfreal,mpi_sum,global%mpiComm, &
109 global%error = errorflag
110 IF ( global%error /= err_none )
THEN
111 CALL
errorstop(global,err_mpi_output,__line__)
121 global%residual =
sqrt(drsumtot)
123 IF ( global%currentIter == 1 )
THEN
124 global%resInit = global%residual
subroutine registerfunction(global, funName, fileName)
subroutine rflu_residualnorm(regions)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)