4 subroutine check(nsteps,time,nvar,naux)
14 implicit double precision (a-h,o-z)
16 parameter(tchkunit = 13)
20 write(6,601) time,nsteps
21 601
format(
'Creating checkpoint file at t = ',e16.9,
' nsteps = ',i5)
23 if (checkpt_style < 0)
then
32 chkname =
'fort.chkaaaaa'
33 tchkname =
'fort.tckaaaaa'
35 chkname =
'fort.chkbbbbb'
36 tchkname =
'fort.tckbbbbb'
38 check_a = .not. check_a
45 chkname =
'fort.chkxxxxx'
46 tchkname =
'fort.tckxxxxx'
48 do 20 ipos = 13, 9, -1
50 chkname(ipos:ipos) = char(ichar(
'0') + idigit)
51 tchkname(ipos:ipos) = char(ichar(
'0') + idigit)
56 open(unit=tchkunit,file=tchkname,status=
'unknown',
58 open(unit=chkunit,file=chkname,status=
'unknown',
63 write(chkunit) lenmax,lendim,memsize
64 write(chkunit) (alloc(i),i=1,lendim)
65 write(chkunit) hxposs,hyposs,possk,icheck
66 write(chkunit) lfree,lenf
67 write(chkunit) rnode,node,lstart,newstl,listsp,tol,
68 1 ibuff,mstart,ndfree,ndfree_bnd,lfine,iorder,mxnest,
69 2 intratx,intraty,kratio,iregsz,jregsz,
70 2 iregst,jregst,iregend,jregend,
71 3 numgrids,kcheck,nsteps,
73 write(chkunit) avenumgrids, iregridcount,
74 1 evol,rvol,rvoll,lentot,tmass0,cflmax,
75 2 tvoll,tvollcpu,timetick,timetickcpu,
76 3 timestepgrid,timestepgridcpu,
77 4 timebound,timeboundcpu,
78 5 timeregridding,timeregriddingcpu,
79 6 timevalout,timevaloutcpu
95 write(tchkunit,*)
'Checkpoint file at time t = ',time
96 write(tchkunit,*)
'alloc size memsize = ',memsize
97 write(tchkunit,*)
'Number of steps taken = ',nsteps
subroutine check(nsteps, time, nvar, naux)
subroutine print_gauges_and_reset_nextloc(gauge_num)