61 subroutine setuse(listbc,maxsp,ispot,mkid,
63 2 iclo,ichi,jclo,jchi,kflag)
94 implicit double precision (a-h,o-z)
95 dimension listbc(5,maxsp)
106 if (ist .lt. ilo .or. kflag .ne. 1)
go to 20
107 lkid = max(jlo,jclo) - jclo + 1
108 do 10 j = max(jlo,jclo), min(jhi,jchi)
110 listbc(1,ispot) = ist-ilo+
nghost+1
111 listbc(2,ispot) = j-jlo+
nghost+1
113 listbc(4,ispot) = mkid
114 listbc(5,ispot) = lkid
120 20
if (kflag .eq. 1)
then 121 if (jend .gt. jhi)
go to 40
122 lkid = (jchi-jclo+1) + max(ilo,iclo)-iclo + 1
123 do 30 i = max(ilo,iclo), min(ihi,ichi)
125 listbc(1,ispot) = i-ilo+
nghost+1
126 listbc(2,ispot) = jend-jlo+
nghost+1
128 listbc(4,ispot) = mkid
129 listbc(5,ispot) = lkid
131 595
format(
" entry ",i5,
" has ", 5i5)
134 else if (kflag .eq. 2)
then 139 lkid = (jchi-jclo+1)+ 1
141 iwrap =
iregsz(level) - i -1
142 if (iwrap .ge. ilo .and. iwrap .le. ihi)
then 144 listbc(1,ispot) = iwrap - ilo +
nghost + 1
145 listbc(2,ispot) = jend - jlo +
nghost 147 listbc(4,ispot) = mkid
148 listbc(5,ispot) = lkid
159 40
if (iend .gt. ihi .or. kflag .ne. 1)
go to 60
160 lkid = (ichi-iclo+1)+(jchi-jclo+1)
161 . + max(jlo,jclo) - jclo + 1
162 do 50 j = max(jlo,jclo), min(jhi,jchi)
164 listbc(1,ispot) = iend-ilo+
nghost+1
165 listbc(2,ispot) = j-jlo+
nghost+1
167 listbc(4,ispot) = mkid
168 listbc(5,ispot) = lkid
175 60
if (kflag .eq. 1)
then 176 if (jst .lt. jlo)
go to 80
177 lkid = 2*(jchi-jclo+1)+(ichi-iclo+1) + max(ilo,iclo)-iclo + 1
178 do 70 i = max(ilo,iclo), min(ihi,ichi)
180 listbc(1,ispot) = i-ilo+
nghost+1
181 listbc(2,ispot) = jst-jlo+
nghost+1
183 listbc(4,ispot) = mkid
184 listbc(5,ispot) = lkid
191 if (kflag .ne. 3)
go to 80
194 lkid = 2*(jchi-jclo+1) + (ichi-iclo+1) + 1
196 iwrap =
iregsz(level) - i - 1
197 if (iwrap .ge. ilo .and. iwrap .le. ihi)
then 199 listbc(1,ispot) = iwrap - ilo +
nghost + 1
200 listbc(2,ispot) =
nghost+1
202 listbc(4,ispot) = mkid
203 listbc(5,ispot) = lkid
integer, dimension(maxlv) iregsz
integer, dimension(nsize, maxgr) node
integer, parameter nestlevel
AMR level of the grid.
subroutine setuse(listbc, maxsp, ispot, mkid, ilo, ihi, jlo, jhi, iclo, ichi, jclo, jchi, kflag)
Add intersection information between grid mptr and a finer grid mkid to the boundary list...
The module contains the definition of a "node descriptor" as well as other global variables used duri...