53 subroutine flag2refine2(mx,my,mbc,mbuff,meqn,maux,xlower,ylower,dx,dy,t,level, &
54 tolsp,q,aux,amrflags,DONTFLAG,DOFLAG)
61 integer,
intent(in) :: mx,my,mbc,meqn,maux,level,mbuff
62 real(kind=8),
intent(in) :: xlower,ylower,dx,dy,t,tolsp
64 real(kind=8),
intent(in) :: q(meqn,1-mbc:mx+mbc,1-mbc:my+mbc)
65 real(kind=8),
intent(in) :: aux(maux,1-mbc:mx+mbc,1-mbc:my+mbc)
68 real(kind=8),
intent(inout) :: amrflags(1-mbuff:mx+mbuff,1-mbuff:my+mbuff)
69 real(kind=8),
intent(in) :: DONTFLAG
70 real(kind=8),
intent(in) :: DOFLAG
77 real(kind=8) :: x_c,y_c,x_low,y_low,x_hi,y_hi
78 real(kind=8) :: dqi(meqn), dqj(meqn), dq(meqn)
93 y_low = ylower + (j - 1) * dy
94 y_c = ylower + (j - 0.5d0) * dy
95 y_hi = ylower + j * dy
98 x_low = xlower + (i - 1) * dx
99 x_c = xlower + (i - 0.5d0) * dx
100 x_hi = xlower + i * dx
104 dqi = abs(q(:,i+1,j) - q(:,i-1,j))
105 dqj = abs(q(:,i,j+1) - q(:,i,j-1))
110 if (dq(m) > tolsp)
then 111 amrflags(i,j) = doflag
subroutine flag2refine2(mx, my, mbc, mbuff, meqn, maux, xlower, ylower, dx, dy, t, level, tolsp, q, aux, amrflags, DONTFLAG, DOFLAG)
User routine to control flagging of points for refinement.