70 CHARACTER(CHRLEN) :: &
71 RCSIdentString =
'$RCSfile: STAT_RFLU_ModRocstarAdmin.F90,v $ $Revision: 1.8 $'
113 TYPE(t_region
),
POINTER :: pregion
124 CHARACTER(CHRLEN) :: winv
125 CHARACTER(CHRLEN),
POINTER :: statnm(:,:,:)
132 global => pregion%global
173 TYPE(t_region
),
POINTER :: pregion
184 CHARACTER(CHRLEN) :: winv
185 CHARACTER(CHRLEN),
POINTER :: statnm(:,:,:)
186 INTEGER :: paneid, ilb
193 global => pregion%global
195 IF ( global%myProcid == masterproc .AND. &
196 global%verbLevel >= verbose_high )
THEN
197 WRITE(stdout,
'(A,1X,A)') solver_name,
'Registering statistics data...'
208 winv = global%volWinName
209 IF ((global%flowType == flow_unsteady).AND.(global%doStat == active))
THEN
214 CALL com_new_attribute( trim(winv)//
'.tStat',
'w',com_double,1,
's' )
215 CALL com_set_array( trim(winv)//
'.tStat',0, global%integrTime )
220 IF (global%mixtNStat > 0)
THEN
221 statnm => global%mixtStatNm
222 DO istat=1,global%mixtNStat
223 CALL com_new_attribute( trim(winv)//
'.'//trim(statnm(1,1,istat)),
'e',&
224 com_double,1,trim(statnm(1,2,istat)) )
229 IF ((global%turbActive .EQV. .true.) .AND. (global%turbNStat > 0))
THEN
230 statnm => global%turbStatNm
231 DO istat=1,global%turbNStat
232 CALL com_new_attribute( trim(winv)//
'.'//trim(statnm(1,1,istat)),
'e',&
233 com_double,1,trim(statnm(1,2,istat)) )
248 winv = global%volWinName
252 IF ( global%myProcid == masterproc .AND. &
253 global%verbLevel >= verbose_high)
THEN
254 WRITE(stdout,
'(A,3X,A,1X,A)') solver_name,
'Window name:',trim(winv)
255 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Pane id:', paneid
258 IF ((global%flowType==flow_unsteady) .AND. (global%doStat==active))
THEN
263 IF (global%mixtNStat > 0)
THEN
264 statnm => global%mixtStatNm
265 DO istat=1,global%mixtNStat
266 CALL com_set_array( trim(winv)//
'.'//trim(statnm(1,1,istat)),paneid,&
267 pregion%mixt%tav(istat,ilb), global%mixtNStat)
275 IF ((global%turbActive .EQV. .true.) .AND. (global%turbNStat > 0))
THEN
276 statnm => global%turbStatNm
277 DO istat=1,global%turbNStat
278 CALL com_set_array( trim(winv)//
'.'//trim(statnm(1,1,istat)),paneid,&
279 pregion%turb%tav(istat,ilb), global%turbNStat)
289 IF ( global%myProcid == masterproc .AND. &
290 global%verbLevel >= verbose_high )
THEN
291 WRITE(stdout,
'(A,1X,A)') solver_name,
'Registering statistics data done.'
330 TYPE(t_region
),
POINTER :: pregion
341 CHARACTER(CHRLEN) :: winname,winnamein
342 CHARACTER(CHRLEN),
POINTER :: statnm(:,:,:)
343 INTEGER :: handlein,handleobtain,handleout
345 TYPE(t_grid),
POINTER :: pgrid
351 global => pregion%global
353 handleobtain = global%handleObtain
355 IF ( global%myProcid == masterproc .AND. &
356 global%verbLevel >= verbose_high )
THEN
357 WRITE(stdout,
'(A,1X,A)') solver_name,
'Getting statistics data...'
360 IF ( global%myProcid == masterproc .AND. &
361 global%verbLevel >= verbose_high)
THEN
362 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
363 pregion%iRegionGlobal
370 winnamein = global%volWinNameInput
371 winname = global%volWinName
377 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.tStat')
378 handleout = com_get_attribute_handle(trim(winname)//
'.tStat')
379 CALL com_call_function(handleobtain,2,handlein,handleout)
389 IF (global%mixtNStat > 0)
THEN
390 statnm => global%mixtStatNm
391 DO istat=1,global%mixtNStat
393 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.'// &
394 trim(statnm(1,1,istat)))
395 handleout = com_get_attribute_handle(trim(winname)//
'.'// &
396 trim(statnm(1,1,istat)))
397 CALL com_call_function(handleobtain,2,handlein,handleout)
408 IF (global%turbNStat > 0)
THEN
409 statnm => global%turbStatNm
410 DO istat=1,global%turbNStat
412 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.'// &
413 trim(statnm(1,1,istat)))
414 handleout = com_get_attribute_handle(trim(winname)//
'.'// &
415 trim(statnm(1,1,istat)))
416 CALL com_call_function(handleobtain,2,handlein,handleout)
430 IF (global%mixtNStat > 0)
THEN
431 DO istat=1,global%mixtNStat
432 pregion%mixt%tav(istat,:) = &
433 pregion%mixt%tav(istat,:)*global%integrTime
442 IF ((global%turbActive .EQV. .true.) .AND. (global%turbNStat > 0))
THEN
443 DO istat=1,global%turbNStat
444 pregion%turb%tav(istat,:) = &
445 pregion%turb%tav(istat,:)*global%integrTime
454 IF ( global%myProcid == masterproc .AND. &
455 global%verbLevel >= verbose_high )
THEN
456 WRITE(stdout,
'(A,1X,A)') solver_name,
'Getting statistics data done.'
subroutine, public stat_rflu_genxregisterdata(pRegion)
subroutine, public stat_rflu_genxgetdata(pRegion)
subroutine, public stat_rflu_genxcreateattr(pRegion)
subroutine, public rflu_genx_buildpaneid(iRegion, iPatch, paneId)