17 subroutine ginit(msave, first, nvar, naux, start_time)
20 implicit double precision (a-h,o-z)
32 if (msave .eq. 0)
go to 99
45 if(.not. (first))
go to 20
46 loc =
igetsp(mitot*mjtot*nvar)
49 locaux =
igetsp(mitot*mjtot*naux)
50 do k = 1, mitot*mjtot*naux,naux
60 if (level .lt.
mxnest)
then 61 loc2 =
igetsp(mitot*mjtot*nvar)
81 if (mptr .ne. 0)
go to 10
integer, parameter timemult
current simulation time on this grid
integer, parameter cornxlo
x-coordinate of the left border of this grid
function igetsp(nwords)
Allocate contiguous space of length nword in main storage array alloc.
real(kind=8), dimension(maxlv) hyposs
real(kind=8), dimension(maxlv) hxposs
subroutine ginit(msave, first, nvar, naux, start_time)
Initializes solution on all grids at level of grid msave, by calling qinit().
integer, parameter ndihi
global i index of right border of this grid
integer, dimension(nsize, maxgr) node
integer, parameter nestlevel
AMR level of the grid.
subroutine qinit(meqn, mbc, mx, my, xlower, ylower, dx, dy, q, maux, aux)
real(kind=8), dimension(rsize, maxgr) rnode
integer, parameter ndilo
global i index of left border of this grid
real(kind=8), parameter needs_to_be_set
integer, parameter ndjlo
global j index of lower border of 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...
integer, parameter ndjhi
global j index of upper border of this grid
integer, parameter cornylo
y-coordinate of the lower border of this grid
integer, parameter levelptr
node number (index) of next grid on the same level
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)
integer, parameter storeaux
pointer to the address of memory storing auxiliary data on this grid
real(kind=8), dimension(:), allocatable alloc