2D AMRCLAW
setflags.f
Go to the documentation of this file.
1 c
2 c --------------------------------------------------------------
3 c
4  subroutine setflags(iflags,isize,jsize,
5  1 rctold,idim3,mitot,mjtot,mptr)
6 c
7  use amr_module
8  implicit double precision (a-h,o-z)
9 
10 
11  dimension rctold(idim3,mitot,mjtot)
12  integer(kind=1) iflags(0:isize+1,0:jsize+1)
13 
14 c :::::::::::::::::::::: SETFLAGS ::::::::::::::::::::::::::::::::::
18 c :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
19 c
20 
21  ibeg = node(ndilo,mptr) - nghost
22  jbeg = node(ndjlo,mptr) - nghost
23 
24  do 10 j = nghost+1, mjtot-nghost
25  do 10 i = nghost+1, mitot-nghost
26  iflags(ibeg+i,jbeg+j) = iflags(ibeg+i,jbeg+j) + rctold(1,i,j)
27  10 continue
28 c
29  99 return
30  end
integer, dimension(nsize, maxgr) node
Definition: amr_module.f90:198
subroutine setflags(iflags, isize, jsize, rctold, idim3, mitot, mjtot, mptr)
Definition: setflags.f:6
integer, parameter ndilo
global i index of left border of this grid
Definition: amr_module.f90:108
integer, parameter ndjlo
global j index of lower border of this grid
Definition: amr_module.f90:114
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