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 ::::::::::::::::::::::::::::::::::
15 c transfer flagged arrays into 1 large array of entire domain
16 c makes buffering, projecting, etc. easier without searching
17 c through all kinds of grids
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
subroutine setflags(iflags, isize, jsize, rctold, idim3, mitot, mjtot, mptr)
Definition: setflags.f:4