2D AMRCLAW
addflags.f
Go to the documentation of this file.
1 c
2 c --------------------------------------------------------------
3 c
4  subroutine addflags(rectflags,mibuff,mjbuff,
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  dimension rectflags(mibuff,mjbuff)
13 
14 c :::::::::::::::::::::: ADDFLAGS ::::::::::::::::::::::::::::::::::
15 c transfer flagged arrays from errest into the one from spatial
16 c differencing
17 c NOTE: not dimensioned the same. rectflags is possibly larger to accomodate
18 c in-place buffering.
19 c :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
20 c
21 
22  do 10 j = nghost+1, mjtot-nghost
23  do 10 i = nghost+1, mitot-nghost
24  if (rctold(1,i,j) .ne. goodpt) then
25  rectflags(i,j) = badpt
26  endif
27  10 continue
28 c
29  99 return
30  end
subroutine addflags(rectflags, mibuff, mjbuff, rctold, idim3, mitot, mjtot, mptr)
Definition: addflags.f:4