64 TYPE(t_region
) :: region
70 CHARACTER(CHRLEN+23) :: fname
71 CHARACTER(CHRLEN) :: rcsidentstring
73 INTEGER :: errorflag,ireg, ijkbeg, ijkend
74 INTEGER :: mixtstatid(region%global%mixtnstat)
75 INTEGER :: turbstatid(region%global%turbnstat)
77 REAL(RFREAL),
POINTER :: mixttav(:,:), turbtav(:,:)
83 rcsidentstring =
'$RCSfile: RFLU_WriteStat.F90,v $'
85 global => region%global
92 ireg = region%iRegionGlobal
93 WRITE(fname,
'(A,I5.5,A,1PE11.5)') trim(global%outDir)// &
94 trim(global%casename)//
'.statb_',ireg, &
95 '_',global%currentTime
97 OPEN(if_stat,file=fname,
form=
'unformatted',
status=
'unknown', &
99 global%error = errorflag
100 IF (global%error /= 0) &
101 CALL
errorstop(global,err_file_open,__line__,
'File: '//trim(fname))
105 WRITE(if_stat,err=10) global%currentTime
106 WRITE(if_stat,err=10) global%integrTime
110 WRITE(if_stat,err=10) region%grid%nCells
114 IF (global%mixtNStat > 0)
THEN
115 mixtstatid(:)=global%mixtStatId(1,:)*10+global%mixtStatId(2,:)
116 WRITE(if_stat,err=10) global%mixtNStat,mixtstatid
122 IF (global%turbNStat > 0)
THEN
123 turbstatid(:)=global%turbStatId(1,:)*10+global%turbStatId(2,:)
124 WRITE(if_stat,err=10) global%turbNStat,turbstatid
130 IF (global%myProcid==masterproc .AND. global%verbLevel>=verbose_high) &
131 WRITE(stdout,
'(A)') solver_name,
' - write statistics'
134 ijkend = region%grid%nCells
136 IF (global%mixtNStat > 0)
THEN
137 mixttav => region%mixt%tav
138 WRITE(if_stat,err=10) ((mixttav(l,ijk), ijk=ijkbeg,ijkend), &
139 l=1,global%mixtNStat)
142 IF (global%turbNStat > 0)
THEN
143 turbtav => region%turb%tav
144 WRITE(if_stat,err=10) ((turbtav(l,ijk), ijk=ijkbeg,ijkend), &
145 l=1,global%turbNStat)
151 CLOSE(if_stat,iostat=errorflag)
152 global%error = errorflag
153 IF (global%error /= 0) &
154 CALL
errorstop(global,err_file_close,__line__,
'File: '//trim(fname))
162 CALL
errorstop(global,err_file_read,__line__,
'File: '//trim(fname))
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine rflu_writestat(region)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE form
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)