4 subroutine check(nsteps,time,nvar,naux)
11 implicit double precision (a-h,o-z)
20 dimension iqout(15), qout(4)
24 integer sfstart, sfend
25 external sfstart, sfend
30 parameter(dfacc_create = 4)
33 parameter(succeed = 0, fail = -1)
38 & // char(ichar(
'0') + mod(nsteps/1000,10))
39 & // char(ichar(
'0') + mod(nsteps/100,10))
40 & // char(ichar(
'0') + mod(nsteps/10,10))
41 & // char(ichar(
'0') + mod(nsteps,10))
46 sd_id = sfstart(chkname, dfacc_create)
47 if (sd_id.eq.fail)
THEN 48 WRITE(*,*)
'Failed to create HDF file (call to sfstart)' 102 if (istat.eq.fail)
then 103 WRITE(*,*)
'Failed to close SDS (call to sfend)' 119 implicit double precision (a-h,o-z)
124 integer sd_id, sds_id
125 dimension out(idims), istart(1), istride(1), iedges(1), idim(1)
129 integer sfcreate, sfwdata, sfscompress, sfendacc
130 external sfcreate, sfwdata, sfscompress, sfendacc
134 integer DFNT_FLOAT64, DFNT_INT32
135 parameter(dfnt_float64 = 6, dfnt_int32 = 24)
137 integer SUCCEED, FAIL
138 parameter(succeed = 0, fail = -1)
142 integer COMP_CODE_DEFLATE, DEFLATE_LEVEL
143 parameter(comp_code_deflate = 4, deflate_level = 6)
150 sds_id = sfcreate(sd_id,qname,dfnt_float64,irank,idim)
151 if (sds_id.eq.fail)
THEN 152 WRITE(*,*)
'Failed to create variable ', qname,
153 &
' in restart HDF file' 154 WRITE(*,*)
'(call to sfcreate in check_hdf.f)' 166 istat=sfscompress(sds_id,comp_code_deflate,deflate_level)
167 istat = sfwdata(sds_id,istart,istride,iedges,out)
168 if (istat.eq.fail)
THEN 169 WRITE(*,*)
'Failed to write variable ', qname,
170 &
' in restart HDF file' 171 WRITE(*,*)
'(call to sfwdata in check_hdf.f)' 177 istat = sfendacc(sds_id)
178 if (istat.eq.fail)
THEN 179 WRITE(*,*)
'Failed to end access to variable ', qname,
180 &
' in restart HDF file' 181 WRITE(*,*)
'(call to sfendacc in check_hdf.f)' 190 implicit double precision (a-h,o-z)
195 integer sd_id, sds_id
196 dimension idims(2), istart(2), istride(2), iedges(2)
197 dimension out(idim1,idim2)
201 integer sfcreate, sfwdata, sfscompress, sfendacc
202 external sfcreate, sfwdata, sfscompress, sfendacc
206 integer DFNT_FLOAT64, DFNT_INT32
207 parameter(dfnt_float64 = 6, dfnt_int32 = 24)
209 integer SUCCEED, FAIL
210 parameter(succeed = 0, fail = -1)
214 integer COMP_CODE_DEFLATE, DEFLATE_LEVEL
215 parameter(comp_code_deflate = 4, deflate_level = 6)
223 sds_id = sfcreate(sd_id,qname,dfnt_float64,irank,idims)
224 if (sds_id.eq.fail)
THEN 225 WRITE(*,*)
'Failed to create variable ', qname,
226 &
' in restart HDF file' 227 WRITE(*,*)
'(call to sfcreate in check_hdf.f)' 242 istat=sfscompress(sds_id,comp_code_deflate,deflate_level)
243 istat = sfwdata(sds_id,istart,istride,iedges,out)
244 if (istat.eq.fail)
THEN 245 WRITE(*,*)
'Failed to write variable ', qname,
246 &
' in restart HDF file' 247 WRITE(*,*)
'(call to sfwdata in check_hdf.f)' 253 istat = sfendacc(sds_id)
254 if (istat.eq.fail)
THEN 255 WRITE(*,*)
'Failed to end access to variable ', qname,
256 &
' in restart HDF file' 257 WRITE(*,*)
'(call to sfendacc in check_hdf.f)' 267 implicit double precision (a-h,o-z)
272 integer sd_id, sds_id
273 dimension out(idims), istart(1), istride(1), iedges(1)
277 integer sfcreate, sfrdata, sfselect, sfendacc
278 external sfcreate, sfrdata, sfselect, sfendacc
282 integer SUCCEED, FAIL
283 parameter(succeed = 0, fail = -1)
287 sds_id = sfselect(sd_id,index)
288 if (sds_id.eq.fail)
THEN 289 WRITE(*,*)
'Failed to select data set for variable ', qname,
290 &
' in restart HDF file' 291 WRITE(*,*)
'(call to sfselect in restrt_hdf.f)' 303 istat = sfrdata(sds_id,istart,istride,iedges,out)
304 if (istat.eq.fail)
THEN 305 WRITE(*,*)
'Failed to read variable ', qname,
306 &
' from restart HDF file' 307 WRITE(*,*)
'(call to sfrdata in restrt_hdf.f)' 313 istat = sfendacc(sds_id)
314 if (istat.eq.fail)
THEN 315 WRITE(*,*)
'Failed to end access to variable ', qname,
316 &
' in restart HDF file' 317 WRITE(*,*)
'(call to sfendacc in restrt_hdf.f)' 326 implicit double precision (a-h,o-z)
331 integer sd_id, sds_id
332 dimension istart(2), istride(2), iedges(2)
333 dimension out(idim1,idim2)
337 integer sfcreate, sfrdata, sfselect, sfendacc
338 external sfcreate, sfrdata, sfselect, sfendacc
342 integer SUCCEED, FAIL
343 parameter(succeed = 0, fail = -1)
347 sds_id = sfselect(sd_id,index)
348 if (sds_id.eq.fail)
THEN 349 WRITE(*,*)
'Failed to select data set for variable ', qname,
350 &
' in restart HDF file' 351 WRITE(*,*)
'(call to sfselect in restrt_hdf.f)' 366 istat = sfrdata(sds_id,istart,istride,iedges,out)
367 if (istat.eq.fail)
THEN 368 WRITE(*,*)
'Failed to read variable ', qname,
369 &
' from restart HDF file' 370 WRITE(*,*)
'(call to sfrdata in restrt_hdf.f)' 376 istat = sfendacc(sds_id)
377 if (istat.eq.fail)
THEN 378 WRITE(*,*)
'Failed to end access to variable ', qname,
379 &
' in restart HDF file' 380 WRITE(*,*)
'(call to sfendacc in restrt_hdf.f)' integer, dimension(maxlv) kratio
subroutine read_double_array(sd_id, idim1, idim2, index, qname, out)
subroutine dump_double_array(sd_id, idim1, idim2, qname, out)
integer, dimension(maxlv) iregsz
real(kind=8), dimension(maxlv) hyposs
real(kind=8), dimension(maxlv) hxposs
integer, dimension(maxlv) newstl
subroutine dump_double_vector(sd_id, idims, qname, out)
integer, dimension(maxlv) jregsz
integer, dimension(nsize, maxgr) node
real(kind=8), dimension(rsize, maxgr) rnode
subroutine check(nsteps, time, nvar, naux)
subroutine dump_integer_array(sd_id, idim1, idim2, qname, iout)
integer, dimension(maxlv) icheck
integer, dimension(maxlv) lstart
subroutine read_double_vector(sd_id, idims, index, qname, out)
integer, dimension(maxlv) intraty
real(kind=8), dimension(maxlv) rvoll
real(kind=8), dimension(maxlv) possk
integer, dimension(lfdim, 2) lfree
integer, dimension(maxlv) listsp
integer, dimension(maxlv) intratx
The module contains the definition of a "node descriptor" as well as other global variables used duri...
subroutine dump_integer_vector(sd_id, idims, qname, iout)
real(kind=8), dimension(:), allocatable alloc