56 TYPE(t_region
),
POINTER :: regions(:)
59 INTEGER :: ireg, ilev, ipatch
62 CHARACTER(CHRLEN) ::
msg
64 INTEGER :: bctype, iregsrc, ndumcells, ipc, jpc, kpc
71 global => regions(1)%global
74 'RFLO_CheckMinimumCells.F90' )
78 DO ireg=1,global%nRegions
79 IF (regions(ireg)%procid==global%myProcid .AND. &
80 regions(ireg)%active==active)
THEN
84 DO ilev=1,regions(ireg)%nGridLevels
88 DO ipatch=1,regions(ireg)%nPatches
89 patch => regions(ireg)%levels(ilev)%patches(ipatch)
94 IF ((bctype>=bc_regionconf .AND. bctype<=bc_regionconf+bc_range) .OR.&
95 (bctype>=bc_regionint .AND. bctype<=bc_regionint +bc_range) .OR.&
96 (bctype>=bc_regnonconf .AND. bctype<=bc_regnonconf+bc_range) .OR.&
97 (bctype>=bc_tra_peri .AND. bctype<=bc_tra_peri +bc_range) .OR.&
98 (bctype>=bc_rot_peri .AND. bctype<=bc_rot_peri +bc_range))
THEN
99 iregsrc =
patch%srcRegion
100 ipc = regions(ireg)%levels(ilev)%grid%ipc
101 jpc = regions(ireg)%levels(ilev)%grid%jpc
102 kpc = regions(ireg)%levels(ilev)%grid%kpc
103 ndumcells = regions(iregsrc)%nDumCells
104 IF (ndumcells >
min(ipc,jpc,kpc))
THEN
105 WRITE(
msg,1000) ireg,ilev,ipatch,bctype
120 1000
FORMAT(
'Region ',i5,
', level ',i1,
', patch ',i3,
', BC type ',i3)
subroutine registerfunction(global, funName, fileName)
subroutine rflo_checkminimumcells(regions)
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)