53 INTEGER :: ipatch,
i,
j,
k
56 CHARACTER(CHRLEN) :: ifilename, sectionstring
58 INTEGER :: errorflag, ifile
59 INTEGER :: ntets, npris, npyrs, vertflag, hexflag
60 INTEGER :: nbtris, nbquads, nbverts, bvflag
65 'TFLU_WriteFluGrid.F90')
69 IF ( global%verbLevel > verbose_none )
THEN
70 WRITE(stdout,
'(A,1X,A)') solver_name,
'Writing ASCII Rocflu grid file...'
75 WRITE(ifilename,
'(A,I5.5)') &
76 trim(global%outDir)//trim(global%casename)//
'.grda_',0
78 OPEN(ifile,file=ifilename,
form=
"FORMATTED",
status=
"UNKNOWN",iostat=errorflag)
79 global%error = errorflag
81 IF ( global%error /= err_none )
THEN
82 CALL
errorstop(global,err_file_open,__line__,ifilename)
87 IF ( global%verbLevel > verbose_low )
THEN
88 WRITE(stdout,
'(A,3X,A)') solver_name,
'Header information...'
91 sectionstring =
'# ROCFLU grid file'
92 WRITE(ifile,
'(A)') trim(sectionstring)
94 sectionstring =
'# Precision and range'
95 WRITE(ifile,
'(A)') trim(sectionstring)
96 WRITE(ifile,
'(2(I8))')
precision(1.0_rfreal),range(1.0_rfreal)
98 sectionstring =
'# Physical time'
99 WRITE(ifile,
'(A)') trim(sectionstring)
100 WRITE(ifile,
'(E23.16)') global%currentTime
107 sectionstring =
'# Dimensions'
108 WRITE(ifile,
'(A)') trim(sectionstring)
109 WRITE(ifile,
'(5(I8))') global%tofluNVerts,ntets,global%tofluNHexs, &
114 IF ( global%verbLevel > verbose_none )
THEN
115 WRITE(stdout,
'(A,3X,A)') solver_name,
'Coordinates...'
118 sectionstring =
'# Coordinates'
119 WRITE(ifile,
'(A)') trim(sectionstring)
121 WRITE(ifile,
'(5(E23.16))') (global%tofluXyz(
i,
j),
j=1,global%tofluNVerts)
129 IF ( global%tofluNHexs > 0 )
THEN
130 IF ( global%verbLevel > verbose_low )
THEN
131 WRITE(stdout,
'(A,3X,A)') solver_name,
'Hexahedra...'
134 sectionstring =
'# Hexahedra'
135 WRITE(ifile,
'(A)') trim(sectionstring)
137 WRITE(ifile,
'(10(I8))') (global%tofluHex2v(
i,
j),
j=1,global%tofluNHexs)
146 IF ( global%verbLevel > verbose_low )
THEN
147 WRITE(stdout,
'(A,3X,A)') solver_name,
'Boundary information...'
150 sectionstring =
'# Boundaries'
151 WRITE(ifile,
'(A)') trim(sectionstring)
152 WRITE(ifile,
'(I8)') global%tofluNPatches
154 DO ipatch = 1, global%tofluNPatches
156 nbquads = global%tofluNbFaces(ipatch)
160 WRITE(ifile,
'(3(I8))') nbtris, nbquads
162 IF ( nbquads > 0 )
THEN
164 WRITE(ifile,
'(10(I8))') (global%tofluQuad2v(
j,
k,ipatch),
k=1,nbquads)
176 IF ( global%verbLevel > verbose_low )
THEN
177 WRITE(stdout,
'(A,3X,A)') solver_name,
'End marker...'
180 sectionstring =
'# End'
181 WRITE(ifile,
'(A)') trim(sectionstring)
185 CLOSE(ifile,iostat=errorflag)
186 global%error = errorflag
187 IF ( global%error /= err_none )
THEN
188 CALL
errorstop(global,err_file_close,__line__,ifilename)
191 IF ( global%verbLevel > verbose_none )
THEN
192 WRITE(stdout,
'(A,1X,A)') solver_name,
'Writing ASCII Rocflu grid file done.'
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine writeflugrid(global)
**********************************************************************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)