65 TYPE(t_region
),
DIMENSION(:),
POINTER :: regions
72 CHARACTER(CHRLEN) :: rcsidentstring
80 rcsidentstring =
'$RCSfile: RFLU_PickRegionsManual.F90,v $ $Revision: 1.4 $'
82 global => regions(1)%global
85 'RFLU_PickRegionsManual.F90')
87 IF ( global%myProcid == masterproc .AND. &
88 global%verbLevel > verbose_none )
THEN
89 WRITE(stdout,
'(A,1X,A)') solver_name,
'Picking regions manually...'
96 WRITE(stdout,
'(A,3X,A)') solver_name,
'Enter information on regions:'
97 WRITE(stdout,
'(A,5X,A)') solver_name,
'a - Pick all regions'
98 WRITE(stdout,
'(A,5X,A)') solver_name,
's - Pick some regions'
99 WRITE(stdout,
'(A,5X,A)') solver_name,
'n - Pick no regions'
100 WRITE(stdout,
'(A,3X,A)') solver_name,
'Enter information type:'
101 READ(stdin,
'(A)') infotype
103 SELECT CASE ( infotype )
110 DO ireg = 1,global%nRegionsLocal
111 regions(ireg)%postActiveFlag = .true.
119 IF ( global%pickCoordFlag .EQV. .false. )
THEN
120 DO ireg = 1,global%nRegionsLocal
121 regions(ireg)%postActiveFlag = .false.
126 WRITE(stdout,
'(A,3X,A)') solver_name, &
127 'Enter global region index (< 1 to exit):'
132 ELSE IF ( ireg > global%nRegionsLocal )
THEN
133 global%warnCounter = global%warnCounter + 1
135 WRITE(stdout,
'(A,5X,A,1X,A,I7,1X,A)') solver_name, &
136 '*** WARNING *** Invalid input.', &
137 'There are only ',global%nRegionsLocal,
'regions.'
138 ELSE IF ( regions(ireg)%postActiveFlag .EQV. .true. )
THEN
139 global%warnCounter = global%warnCounter + 1
141 WRITE(stdout,
'(A,5X,A)') solver_name, &
142 '*** WARNING *** Region already active.'
145 regions(ireg)%postActiveFlag = .true.
159 global%warnCounter = global%warnCounter + 1
161 WRITE(stdout,
'(A,5X,A,1X,A)') solver_name, &
162 '*** WARNING *** Invalid input.', &
163 'No regions selected.'
170 IF ( (global%myProcid == masterproc) .AND. &
171 (global%verbLevel > verbose_none) )
THEN
172 WRITE(stdout,
'(A,1X,A)') solver_name,
'Picking regions manually done.'
subroutine registerfunction(global, funName, fileName)
subroutine deregisterfunction(global)
subroutine rflu_pickregionsmanual(regions)