2D AMRCLAW
prepregstep.f
Go to the documentation of this file.
1 c
2 c-------------------------------------------------------------------------------------
3 c
4  subroutine prepregstep(nvar,naux,lcheck,mptr,nx,ny,mitot,mjtot,
5  . valbig,auxbig)
6 
7  use amr_module
8  implicit double precision (a-h,o-z)
9 
10  dimension fp(nvar,mitot,mjtot),gp(nvar,mitot,mjtot)
11  dimension fm(nvar,mitot,mjtot),gm(nvar,mitot,mjtot)
12 
13 
14  hx = hxposs(lcheck)
15  hy = hyposs(lcheck)
16  dt = possk(lcheck)
17  time = rnode(timemult,mptr)
18 
19  xlow = rnode(cornxlo,mptr) - nghost*hx
20  ylow = rnode(cornylo,mptr) - nghost*hy
21 
22 c
23  call stepgrid(valbig,fm,fp,gm,gp,
24  1 mitot,mjtot,nghost,
25  2 dt,dtnew,hx,hy,nvar,
26  3 xlow,ylow,time,mptr,naux,auxbig)
27 c
28 c update counts for error estimation step
29  evol = evol + nx * ny
30 
31  return
32  end
integer, parameter timemult
current simulation time on this grid
Definition: amr_module.f90:151
integer, parameter cornxlo
x-coordinate of the left border of this grid
Definition: amr_module.f90:143
real(kind=8) evol
Definition: amr_module.f90:237
real(kind=8), dimension(maxlv) hyposs
Definition: amr_module.f90:193
real(kind=8), dimension(maxlv) hxposs
Definition: amr_module.f90:193
real(kind=8), dimension(rsize, maxgr) rnode
Definition: amr_module.f90:193
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.
Definition: stepgrid.f:26
real(kind=8), dimension(maxlv) possk
Definition: amr_module.f90:193
subroutine prepregstep(nvar, naux, lcheck, mptr, nx, ny, mitot, mjtot, valbig, auxbig)
Definition: prepregstep.f:6
integer, parameter cornylo
y-coordinate of the lower border of this grid
Definition: amr_module.f90:145
integer nghost
Definition: amr_module.f90:232
The module contains the definition of a "node descriptor" as well as other global variables used duri...
Definition: amr_module.f90:21