2D AMRCLAW
Functions/Subroutines
bound.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine bound (time, nvar, ng, valbig, mitot, mjtot, mptr, aux, naux)
 This routine sets the boundary values for a given grid at level level. More...
 

Function/Subroutine Documentation

subroutine bound ( real(kind=8), intent(in)  time,
integer, intent(in)  nvar,
integer, intent(in)  ng,
real(kind=8), dimension(nvar,mitot,mjtot), intent(inout)  valbig,
integer, intent(in)  mitot,
integer, intent(in)  mjtot,
integer, intent(in)  mptr,
real(kind=8), dimension(naux,mitot,mjtot), intent(inout)  aux,
integer, intent(in)  naux 
)

This routine sets the boundary values for a given grid at level level.

It sets the values for a strip ng zones wide all the way around the border, in 4 rectangular strips.

This routine calls the routine filpatch() which for any block of mesh points on a given level, intersects that block with all grids on that level, copies the values into the appropriate intersecting regions, and interpolates the remaining cells from coarser grids as required. After calling filpatch for four regions around the border, call bc2amr() to set any regions that are outside physical boundary.

Output:

The values around the border of the grid are inserted directly into the enlarged valbig array.

Parameters
timethe grid mptr needs ghost cell values at time t
nvarnumber of equations for the system
ngwidth of ghost regions on each side
valbigdata array for solution $q $ (cover the whole grid msrc)
mitotnumber of cells in i direction on grid mptr
mjtotnumber of cells in j direction on grid mptr
mptrindex of the grid to be processed
auxdata array for auxiliary variables
nauxnumber of auxiliary variables

Definition at line 51 of file bound.f90.

References bc2amr(), filrecur(), and prefilrecur().

Referenced by advanc(), flagger(), prepbigstep(), and spest2().

Here is the call graph for this function:

Here is the caller graph for this function: