13 subroutine saveqc(level,nvar,naux)
17 implicit double precision (a-h,o-z)
19 logical sticksout, found
36 10
if (mkid .eq. 0)
go to 99
41 lenbc = 2*(ikeep+jkeep)
60 loctmp =
igetsp(nrow*ncol*(nvar+naux))
61 loctx = loctmp + nrow*ncol*nvar
62 do i = 1, nrow*ncol*naux
67 if (iclo .lt. 0 .or. ichi .eq.
iregsz(levc) .or.
68 & jclo .lt. 0 .or. jchi .eq.
jregsz(levc))
then 78 . naux,iclo,ichi,jclo,jchi,level-1,
84 . iclo,ichi,jclo,jchi,level-1,1,1)
88 if (naux .gt. 0 .and. sticksout)
then 89 call setaux(ng,nrow,ncol,xl,yb,hxc,hyc,naux,
alloc(loctx))
102 .
alloc(ist+nvar*lenbc),lenbc,naux,
alloc(loctx),
103 .
alloc(ist+2*nvar*lenbc))
104 call reclam(loctmp,nrow*ncol*(nvar+naux))
subroutine bc2amr(val, aux, nrow, ncol, meqn, naux,
Take a grid patch with mesh widths hx,hy, of dimensions nrow by ncol, and set the values of any piece...
integer, parameter timemult
current simulation time on this grid
subroutine saveqc(level, nvar, naux)
Prepare new fine grids to save fluxes after each integration step for future conservative fix-up on c...
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.
subroutine reclam(index, nwords)
integer, dimension(maxlv) iregsz
real(kind=8), dimension(maxlv) hyposs
real(kind=8), dimension(maxlv) hxposs
integer, parameter ndihi
global i index of right border of this grid
integer, dimension(maxlv) jregsz
integer, dimension(nsize, maxgr) node
subroutine cstore(qc, nrow, ncol, nvar, qc1d, lenbc, naux, auxc, auxc1d)
real(kind=8), dimension(rsize, maxgr) rnode
subroutine icall(val, aux, nrow, ncol, nvar, naux, ilo, ihi, jlo, jhi, level, iputst, jputst)
For a rectangle defined on level level and bound by ilo, ihi, jlo, jhi, find intersecting grids at th...
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, dimension(maxlv) lstart
integer, dimension(maxlv) intraty
subroutine preicall(val, aux, nrow, ncol, nvar, naux, ilo, ihi, jlo, jhi, level, fliparray)
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, dimension(maxlv) intratx
integer, parameter levelptr
node number (index) of next grid on the same level
integer, parameter cornxhi
x-coordinate of the right border of this grid
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 cornyhi
y-coordinate of the upper border of this grid
integer, parameter storeaux
pointer to the address of memory storing auxiliary data on this grid
real(kind=8), dimension(:), allocatable alloc
integer, parameter ffluxptr
pointer to the address of memory storing fluxes in a layer around the grid, to be used in conservatio...