2D AMRCLAW
Functions/Subroutines
prepregstep.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine prepregstep (nvar, naux, lcheck, mptr, nx, ny, mitot, mjtot, valbig, auxbig)
 

Function/Subroutine Documentation

◆ prepregstep()

subroutine prepregstep (   nvar,
  naux,
  lcheck,
  mptr,
  nx,
  ny,
  mitot,
  mjtot,
  valbig,
  auxbig 
)

Definition at line 6 of file prepregstep.f.

References amr_module::cornxlo, amr_module::cornylo, amr_module::evol, amr_module::hxposs, amr_module::hyposs, amr_module::nghost, amr_module::possk, amr_module::rnode, stepgrid(), and amr_module::timemult.

Referenced by errest().

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
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 update(level, nvar, naux)
Synchronize between all grids on level level and grids on level level+1.
Definition: update.f:17
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
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
Here is the call graph for this function:
Here is the caller graph for this function: