2D AMRCLAW
|
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... | |
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.
time | the grid mptr needs ghost cell values at time t |
nvar | number of equations for the system |
ng | width of ghost regions on each side |
valbig | data array for solution (cover the whole grid msrc) |
mitot | number of cells in i direction on grid mptr |
mjtot | number of cells in j direction on grid mptr |
mptr | index of the grid to be processed |
aux | data array for auxiliary variables |
naux | number of auxiliary variables |
Definition at line 52 of file bound.f90.
References bc2amr(), amr_module::cornxhi, amr_module::cornxlo, amr_module::cornyhi, amr_module::cornylo, filrecur(), amr_module::hxposs, amr_module::hyposs, amr_module::ndihi, amr_module::ndilo, amr_module::ndjhi, amr_module::ndjlo, amr_module::nestlevel, amr_module::node, prefilrecur(), amr_module::rnode, amr_module::spheredom, amr_module::xlower, amr_module::xperdom, amr_module::xupper, amr_module::ylower, amr_module::yperdom, and amr_module::yupper.
Referenced by advanc(), flagger(), prepbigstep(), and spest2().