for this grid at level lcheck: estimate the error by taking a large (2h,2k) step based on the values in the old storage loc., then take one regular (and for now wasted) step based on the new info. compare using an error relation for a pth order accurate integration formula. flag error plane as either bad (needs refinement), or good.
7 implicit double precision (a-h,o-z)
13 double precision valbgc(nvar,nx/2+2*
nghost,ny/2+2*
nghost)
14 double precision auxbgc(naux,nx/2+2*
nghost,ny/2+2*
nghost)
40 . mjdub,valbgc,auxbgc,mi2tot,mj2tot)
49 call prepregstep(nvar,naux,lcheck,mptr,nx,ny,mitot,mjtot,
58 call errf1(
alloc(locbig),nvar,valbgc,mptr,mi2tot,mj2tot,
59 1 mitot,mjtot,
alloc(locamrflags),mibuff,mjbuff)
integer, parameter tempptr
temporary pointer
integer, dimension(nsize, maxgr) node
subroutine prepbigstep(nvar, naux, lcheck, mptr, nx, ny, midub, mjdub, valbgc, auxbgc, mi2tot, mj2tot)
integer, parameter storeflags
pointer to the address of memory storing flags for refinement on this grid
integer, parameter store1
pointer to the address of memory storing the first copy of solution data on this grid, usually for storing new solution
integer, parameter store2
pointer to the address of memory storing the second copy of solution data on this grid...
subroutine errf1(rctfine, nvar, rctcrse, mptr, mi2tot, mj2tot, mitot, mjtot, rctflg, mibuff, mjbuff)
subroutine prepregstep(nvar, naux, lcheck, mptr, nx, ny, mitot, mjtot, valbig, auxbig)
The module contains the definition of a "node descriptor" as well as other global variables used duri...
integer, parameter storeaux
pointer to the address of memory storing auxiliary data on this grid
real(kind=8), dimension(:), allocatable alloc