check point routine - can only call at end of coarse grid cycle
Definition at line 5 of file check.f.
References amr_module::alloc, amr_module::avenumgrids, amr_module::cflmax, amr_module::check_a, amr_module::checkpt_style, amr_module::chkunit, amr_module::dbugunit, amr_module::evol, amr_module::hxposs, amr_module::hyposs, amr_module::ibuff, amr_module::icheck, amr_module::intratx, amr_module::intraty, amr_module::iorder, amr_module::iregend, amr_module::iregridcount, amr_module::iregst, amr_module::iregsz, amr_module::jregend, amr_module::jregst, amr_module::jregsz, amr_module::kcheck, amr_module::kratio, amr_module::lendim, amr_module::lenf, amr_module::lenmax, amr_module::lentot, amr_module::lfine, amr_module::lfree, amr_module::listsp, amr_module::lstart, amr_module::matlabu, amr_module::memsize, amr_module::mstart, amr_module::mxnest, amr_module::ndfree, amr_module::ndfree_bnd, amr_module::newstl, amr_module::node, gauges_module::num_gauges, amr_module::numgrids, amr_module::outunit, amr_module::possk, gauges_module::print_gauges_and_reset_nextloc(), amr_module::rnode, amr_module::rvol, amr_module::rvoll, amr_module::timebound, amr_module::timeboundcpu, amr_module::timeregridding, amr_module::timeregriddingcpu, amr_module::timestepgrid, amr_module::timestepgridcpu, amr_module::timetick, amr_module::timetickcpu, amr_module::timevalout, amr_module::timevaloutcpu, amr_module::tmass0, amr_module::tol, amr_module::tvoll, and amr_module::tvollcpu.
Referenced by flagcheck(), and tick().
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)
32 chkname =
'fort.chkaaaaa' 33 tchkname =
'fort.tckaaaaa' 35 chkname =
'fort.chkbbbbb' 36 tchkname =
'fort.tckbbbbb' 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',
95 write(tchkunit,*)
'Checkpoint file at time t = ',time
96 write(tchkunit,*)
'alloc size memsize = ',
memsize 97 write(tchkunit,*)
'Number of steps taken = ',nsteps
integer, parameter dbugunit
integer, dimension(maxlv) kratio
subroutine print_gauges_and_reset_nextloc(gauge_num)
integer, dimension(maxlv) iregsz
real(kind=8), dimension(maxlv) hyposs
real(kind=8), dimension(maxlv) hxposs
integer, dimension(maxlv) newstl
integer, dimension(maxlv) jregsz
integer, dimension(nsize, maxgr) node
integer, dimension(maxlv) iregst
integer, dimension(maxlv) numgrids
real(kind=8), dimension(rsize, maxgr) rnode
integer, dimension(maxlv) iregridcount
real(kind=8) timevaloutcpu
real(kind=8), dimension(maxlv) avenumgrids
integer, dimension(maxlv) icheck
integer, dimension(maxlv) jregst
integer, dimension(maxlv) lstart
real(kind=8) timeboundcpu
real(kind=8), dimension(maxlv) tvollcpu
integer, dimension(maxlv) intraty
real(kind=8) timeregriddingcpu
real(kind=8), dimension(maxlv) rvoll
integer, parameter outunit
real(kind=8), dimension(maxlv) possk
integer, dimension(lfdim, 2) lfree
integer, dimension(maxlv) jregend
integer, dimension(maxlv) listsp
real(kind=8) timestepgridcpu
integer, dimension(maxlv) intratx
The module contains the definition of a "node descriptor" as well as other global variables used duri...
integer, dimension(maxlv) iregend
integer, parameter chkunit
integer, dimension(maxlv) tvoll
real(kind=8), dimension(:), allocatable alloc