63 TYPE(t_region
),
DIMENSION(:),
POINTER :: regions
70 CHARACTER(CHRLEN) :: rcsidentstring
78 rcsidentstring =
'$RCSfile: RFLU_PickRegions.F90,v $ $Revision: 1.5 $'
80 global => regions(1)%global
83 'RFLU_PickRegions.F90')
85 IF ( global%myProcid == masterproc .AND. &
86 global%verbLevel > verbose_none )
THEN
87 WRITE(stdout,
'(A,1X,A)') solver_name,
'Picking regions...'
94 WRITE(stdout,
'(A,3X,A)') solver_name,
'Enter information on regions:'
95 WRITE(stdout,
'(A,5X,A)') solver_name,
'a - Pick all regions'
96 WRITE(stdout,
'(A,5X,A)') solver_name,
's - Pick some regions'
97 WRITE(stdout,
'(A,3X,A)') solver_name,
'Enter information type:'
98 READ(stdin,
'(A)') infotype
100 SELECT CASE ( infotype )
107 DO ireg = 1,global%nRegionsLocal
108 regions(ireg)%activeFlag = .true.
116 DO ireg = 1,global%nRegionsLocal
117 regions(ireg)%activeFlag = .false.
121 WRITE(stdout,
'(A,3X,A)') solver_name, &
122 'Enter global region index (< 1 to exit):'
127 ELSE IF ( ireg > global%nRegionsLocal )
THEN
128 global%warnCounter = global%warnCounter + 1
130 WRITE(stdout,
'(A,5X,A,1X,A,I7,1X,A)') solver_name, &
131 '*** WARNING *** Invalid input.', &
132 'There are only ',global%nRegionsLocal,
'regions.'
135 regions(ireg)%activeFlag = .true.
143 global%warnCounter = global%warnCounter + 1
145 WRITE(stdout,
'(A,5X,A,1X,A)') solver_name, &
146 '*** WARNING *** Invalid input.', &
147 'No regions selected.'
149 DO ireg = 1,global%nRegionsLocal
150 regions(ireg)%activeFlag = .false.
158 IF ( (global%myProcid == masterproc) .AND. &
159 (global%verbLevel > verbose_none) )
THEN
160 WRITE(stdout,
'(A,1X,A)') solver_name,
'Picking regions done.'
subroutine registerfunction(global, funName, fileName)
subroutine rflu_pickregions(regions)
subroutine deregisterfunction(global)