8 implicit double precision (a-h,o-z)
10 double precision valdub(nvar,midub,mjdub)
11 double precision auxdub(naux,midub,mjdub)
12 double precision valbgc(nvar,mi2tot,mj2tot)
13 double precision auxbgc(naux,mi2tot,mj2tot)
14 dimension fp(nvar,mi2tot,mj2tot),gp(nvar,mi2tot,mj2tot)
15 dimension fm(nvar,mi2tot,mj2tot),gm(nvar,mi2tot,mj2tot)
34 c
# transfer soln. into grid with twice the ghost cells 49 1 auxbgc,mi2tot,mj2tot,naux,
auxtype)
52 c
# fill it - use enlarged (before coarsening) aux arrays 53 call bound(tpre,nvar,ng2,valdub,midub,mjdub,mptr,
56 c
coarsen by 2 in every direction
57 call coarsen(valdub,midub,mjdub,
58 1 valbgc,mi2tot,mj2tot,nvar)
62 2 dt2,dtnew2,hx2,hy2,nvar,
63 3 xlow,ylow,tpre,mptr,naux,auxbgc)
65 c
update counts for error estimation work
integer, parameter timemult
current simulation time on this grid
integer, parameter cornxlo
x-coordinate of the left border of this grid
subroutine coarsen(valdub, midub, mjdub, valbgc, mi2tot, mj2tot, nvar)
real(kind=8), dimension(maxlv) hyposs
real(kind=8), dimension(maxlv) hxposs
subroutine copysol(valbig, val, nvar, mitot, mjtot, nghost, midub, mjdub, ngbig)
integer, dimension(nsize, maxgr) node
real(kind=8), dimension(rsize, maxgr) rnode
subroutine update(level, nvar, naux)
Synchronize between all grids on level level and grids on level level+1.
real(kind=8), parameter needs_to_be_set
integer, parameter store2
pointer to the address of memory storing the second copy of solution data on this grid...
subroutine stepgrid(q, fm, fp, gm, gp, mitot, mjtot, mbc, dt, dtnew, dx, dy, nvar, xlow, ylow, time, mptr, maux, aux)
Take a time step on a single grid mptr and overwrite solution array q.
real(kind=8), dimension(maxlv) possk
subroutine bound(time, nvar, ng, valbig, mitot, mjtot, mptr, aux, naux)
This routine sets the boundary values for a given grid at level level.
integer, parameter cornylo
y-coordinate of the lower border of this grid
subroutine auxcoarsen(auxdub, midub, mjdub, auxbgc, mi2tot, mj2tot, naux, auxtype)
character(len=10), dimension(:), allocatable auxtype
The module contains the definition of a "node descriptor" as well as other global variables used duri...
subroutine setaux(mbc, mx, my, xlower, ylower, dx, dy, maux, aux)
real(kind=8), dimension(:), allocatable alloc