56 TYPE(t_region
),
INTENT(INOUT) :: region
59 INTEGER :: iinrt,ipeul
62 CHARACTER(CHRLEN) :: rcsidentstring
64 INTEGER :: nnodes,nplag,npeul
65 INTEGER :: indmixt,indplag0,indpeul0,indintl
66 INTEGER :: indplagjoint,indplagvapor,iplagjoint
76 rcsidentstring =
'$RCSfile: INRT_Initialize.F90,v $ $Revision: 1.3 $'
78 global => region%global
81 'INRT_Initialize.F90' )
85 ALLOCATE( region%inrtInput,stat=errorflag )
86 global%error = errorflag
87 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
89 input => region%inrtInput
96 IF (global%plagUsed) nplag = region%plagInput%nCont
108 IF (global%peulUsed) npeul = region%peulInput%nPtypes
114 IF (global%specUsed) npeul = region%specInput%nSpecies
125 nnodes = 1 + nplag + 1 + npeul + 1
131 indpeul0 = indplag0 + nplag + 1
132 indintl = indpeul0 + npeul + 1
134 indplagjoint = indplag0 + iplagjoint
135 indplagvapor = indplag0 + nplag + 1
139 input%nNodes = nnodes
142 input%indMixt = indmixt
143 input%indPlag0 = indplag0
144 input%indPeul0 = indpeul0
145 input%indIntl = indintl
146 input%indPlagJoint = indplagjoint
147 input%indPlagVapor = indplagvapor
151 input%maxConEdges = 0
152 input%maxDisEdges = 0
156 input%defaultRead = .false.
160 input%consistent = .true.
164 input%computeAux = .true.
168 ALLOCATE(
input%globActiveness(nnodes),stat=errorflag )
169 global%error = errorflag
170 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
172 ALLOCATE(
input%globPermission(nnodes),stat=errorflag )
173 global%error = errorflag
174 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
178 input%globActiveness = inrt_act_active
179 input%globPermission = inrt_perm_pall
181 input%globActiveness(indintl) = inrt_act_bad
185 ALLOCATE(
input%inrts(inrt_type_total),stat=errorflag )
186 global%error = errorflag
187 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
189 DO iinrt = 1,inrt_type_total
191 inrt =>
input%inrts(iinrt)
195 inrt%name =
'Not defined yet'
197 inrt%pclsUsed = .true.
207 ALLOCATE( inrt%activeness(nnodes),stat=errorflag )
208 global%error = errorflag
209 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
211 ALLOCATE( inrt%permission(nnodes),stat=errorflag )
212 global%error = errorflag
213 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
217 inrt%activeness = inrt_act_bad
218 inrt%permission = inrt_perm_bad
222 nullify( inrt%switches )
224 nullify( inrt%edges )
subroutine registerfunction(global, funName, fileName)
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine inrt_initialize(region)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)