57 TYPE(t_region
),
INTENT(IN) :: region
60 INTEGER :: iinrt,inod,ipeul,iswi,idat,iedge
63 CHARACTER(CHRLEN) :: rcsidentstring
64 CHARACTER(10) :: peulstr(100),plagstr(100),tempstr
65 CHARACTER(256) :: edgestr
67 INTEGER :: nnodes,nplag,npeul,ninrt,indmixt,indplag0,indpeul0,indintl
68 INTEGER :: indplagvapor,maxconedges,maxdisedges
77 rcsidentstring =
'$RCSfile: INRT_PrintUserInput.F90,v $ $Revision: 1.3 $'
79 global => region%global
82 'INRT_PrintUserInput.F90' )
86 input => region%inrtInput
91 indmixt =
input%indMixt
92 indplag0 =
input%indPlag0
93 indpeul0 =
input%indPeul0
94 indintl =
input%indIntl
95 indplagvapor =
input%indPlagVapor
96 maxconedges =
input%maxConEdges
97 maxdisedges =
input%maxDisEdges
102 DO iinrt = 1,inrt_type_total
103 IF (
input%inrts(iinrt)%used) ninrt = ninrt + 1
111 IF (ninrt > 0)
WRITE(stdout,*)
112 WRITE(stdout,1010) solver_name//
' Number of interactions',ninrt
117 WRITE(stdout,1030) solver_name//
' *** Indexing ***'
118 WRITE(stdout,1010) solver_name//
' nNodes ', nnodes
119 WRITE(stdout,1010) solver_name//
' nPlag ', nplag
120 WRITE(stdout,1010) solver_name//
' nPeul ', npeul
121 WRITE(stdout,1010) solver_name//
' indMixt ', indmixt
122 WRITE(stdout,1010) solver_name//
' indPlag0 ', indplag0
123 WRITE(stdout,1010) solver_name//
' indPeul0 ', indpeul0
124 WRITE(stdout,1010) solver_name//
' indIntl ', indintl
125 WRITE(stdout,1010) solver_name//
' indPlagJoint',
input%indPlagJoint
126 WRITE(stdout,1010) solver_name//
' indPlagVapor', indplagvapor
127 WRITE(stdout,1010) solver_name//
' maxConEdges ', maxconedges
128 WRITE(stdout,1010) solver_name//
' maxDisEdges ', maxdisedges
131 IF (
input%consistent)
THEN
132 WRITE(stdout,1030) solver_name//
' *** Active Phases '// &
135 WRITE(stdout,1030) solver_name//
' *** WARNING: Active Phases '// &
140 WRITE(stdout,1030) solver_name//
' *** Global Activeness ***'
143 WRITE(stdout,3010) solver_name//
' '//trim(
nodestr(inod)), &
144 input%globActiveness(inod),
' '// &
149 WRITE(stdout,1030) solver_name//
' *** Global Permission levels ***'
152 WRITE(stdout,3010) solver_name//
' '//trim(
nodestr(inod)), &
153 input%globPermission(inod),
' '// &
160 DO iinrt = 1,inrt_type_total
162 inrt =>
input%inrts(iinrt)
163 IF (.NOT. inrt%used) cycle
165 WRITE(stdout,1010) solver_name//
' *** Interaction',iinrt
167 WRITE(stdout,1030) solver_name//
' name = '//trim(inrt%name)
168 WRITE(stdout,1025) solver_name//
' pclsUsed ',inrt%pclsUsed
169 WRITE(stdout,1015) solver_name//
' order ',inrt%order
170 WRITE(stdout,1010) solver_name//
' nIntl ',inrt%nIntl
171 WRITE(stdout,1010) solver_name//
' nInputEdges ',inrt%nInputEdges
172 WRITE(stdout,1010) solver_name//
' nSwitches ',inrt%nSwitches
173 WRITE(stdout,1010) solver_name//
' nData ',inrt%nData
174 WRITE(stdout,1010) solver_name//
' nEdges ',inrt%nEdges
176 DO iswi = 1,inrt%nSwitches
177 WRITE(stdout,2010) solver_name//
' Switch',iswi, &
181 DO idat = 1,inrt%nData
182 WRITE(stdout,2020) solver_name//
' Data ',idat,inrt%data(idat)
187 IF (inrt%activeness(inod) /=
input%globActiveness(inod))
THEN
188 WRITE(stdout,3010) solver_name//
' Activeness override: '// &
189 trim(
nodestr(inod)), inrt%activeness(inod),
' '// &
193 IF (inrt%permission(inod) /=
input%globPermission(inod))
THEN
194 WRITE(stdout,3010) solver_name//
' Permission override: '// &
195 trim(
nodestr(inod)), inrt%permission(inod),
' '// &
201 IF (inrt%nIntl > 0)
THEN
203 WRITE(stdout,3010) solver_name//
' Internal Activeness: '// &
204 trim(
nodestr(indintl)), inrt%activeness(indintl),
' '// &
209 DO iedge = 1,inrt%nEdges
211 edge => inrt%edges(iedge)
213 edgestr = trim(
nodestr(edge%iNode(1)))//
' '//
permstr(edge%token(1))// &
216 tempstr = trim(
nodestr(edge%iNode(2)))
218 IF (tempstr(1:1) ==
' ')
THEN
219 edgestr = trim(edgestr)//trim(tempstr)
221 edgestr = trim(edgestr)//
' '//trim(tempstr)
224 WRITE(stdout,1030) solver_name//
' '//trim(edgestr)
236 1010
FORMAT(
a,
' =',i3)
237 1015
FORMAT(
a,
' =',i9)
238 1025
FORMAT(
a,
' = ',l1)
240 2010
FORMAT(
a,i2,
' =',i3)
241 2020
FORMAT(
a,i2,
' =',es13.5)
242 3010
FORMAT(
a,
':',i3,
a)
248 LOGICAL,
INTENT(IN) :: eq
260 INTEGER,
INTENT(IN) :: ind
262 IF (ind == indmixt)
THEN
265 ELSE IF (indplag0 + 1 <= ind .AND. ind <= indplag0 + nplag)
THEN
266 nodestr = trim(plagstr(ind - indplag0))
268 ELSE IF (indplagvapor == ind)
THEN
271 ELSE IF (indpeul0 + 1 <= ind .AND. ind <= indpeul0 + npeul)
THEN
272 nodestr = trim(peulstr(ind - indpeul0))
274 ELSE IF (ind == indintl)
THEN
278 CALL
errorstop( global,err_reached_default,__line__ )
286 INTEGER,
INTENT(IN) :: perm
290 CASE (inrt_perm_block)
293 CASE (inrt_perm_pmass)
296 CASE (inrt_perm_pmome)
299 CASE (inrt_perm_pall)
303 CALL
errorstop( global,err_reached_default,__line__ )
311 INTEGER,
INTENT(IN) :: tedge
318 CASE (inrt_edge_mass)
321 CASE (inrt_edge_mome_dum)
324 CASE (inrt_edge_mome)
327 CASE (inrt_edge_ener)
330 CASE (inrt_edge_mass_gho)
334 CALL
errorstop( global,err_reached_default,__line__ )
342 INTEGER,
INTENT(IN) :: actv
346 CASE (inrt_act_active)
349 CASE (inrt_act_active-1)
352 CASE (:inrt_act_active-2)
364 INTEGER,
INTENT(IN) :: perm
368 CASE (inrt_perm_block)
371 CASE (inrt_perm_pmass)
374 CASE (inrt_perm_pmome)
377 CASE (inrt_perm_pall)
subroutine makenumberedkeys(keys, indBegin, string, numBegin, numEnd, numSkip)
subroutine registerfunction(global, funName, fileName)
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)