7 implicit double precision (a-h,o-z)
10 dimension rctfine(nvar,mitot,mjtot)
11 dimension rctcrse(nvar,mi2tot,mj2tot)
12 dimension rctflg(mibuff,mjbuff)
39 order = dble(2**(
iorder+1) - 2)
41 if (.not. (
edebug))
go to 20
43 107
format(//,
' coarsened grid values for grid ',i4)
46 write(
outunit,101) (rctcrse(1,i,j),
50 108
format(//,
' fine grid values for grid ',i4)
55 101
format(
' ',40e11.3)
62 yofj = ybot + (dble(jfine) - .5d0)*hy
67 xofi = xleft + (dble(ifine) - .5d0)*hx
68 term1 = rctfine(1,ifine,jfine)
69 term2 = rctfine(1,ifine+1,jfine)
70 term3 = rctfine(1,ifine+1,jfine+1)
71 term4 = rctfine(1,ifine,jfine+1)
73 aval = (term1+term2+term3+term4)/4.d0
74 est = dabs((aval-rctcrse(1,i,j))/ order)
75 if (est .gt. errmax) errmax = est
78 102
format(
' i,j,est ',2i5,2e15.7)
80 104
format(
' ',4e15.7)
83 if (est .ge.
tol)
then 86 rctcrse(1,i,j) = rflag
95 err2 = dsqrt(err2/dble((mi2tot-2*
nghost)*(mj2tot-2*
nghost)))
96 write(
outunit,103) mptr, levm, time,errmax, err2
97 103
format(
' grid ',i4,
' level ',i4,
' time ',e12.5,
98 .
' max. error = ',e15.7,
' err2 = ',e15.7)
100 write(
outunit,*)
' flagged points on coarsened grid ',
101 .
'(no ghost cells) for grid ',mptr
104 write(
outunit,106) (nint(rctcrse(1,i,j)),
115 if (rctcrse(1,i,j) .eq.
goodpt)
go to 55
119 rctflg(ifine,jfine) =
badpt 120 rctflg(ifine+1,jfine) =
badpt 121 rctflg(ifine,jfine+1) =
badpt 122 rctflg(ifine+1,jfine+1)=
badpt 131 118
format(
' on fine grid (no ghost cells) flagged points are')
integer, parameter timemult
current simulation time on this grid
integer, parameter cornxlo
x-coordinate of the left border of this grid
real(kind=8), dimension(maxlv) hyposs
real(kind=8), dimension(maxlv) hxposs
integer, dimension(nsize, maxgr) node
integer, parameter nestlevel
AMR level of the grid.
real(kind=8), parameter goodpt
real(kind=8), dimension(rsize, maxgr) rnode
real(kind=8), parameter badpt
integer, parameter outunit
real(kind=8), dimension(maxlv) possk
integer, parameter cornylo
y-coordinate of the lower border of this grid
The module contains the definition of a "node descriptor" as well as other global variables used duri...