4 subroutine fluxsv(mptr,xfluxm,xfluxp,yfluxm,yfluxp,listbc,
5 1 ndimx,ndimy,nvar,maxsp,dtc,hx,hy)
8 implicit double precision (a-h,o-z)
11 dimension xfluxp(nvar,ndimx,ndimy), yfluxp(nvar,ndimx,ndimy)
12 dimension xfluxm(nvar,ndimx,ndimy), yfluxm(nvar,ndimx,ndimy)
13 dimension listbc(5,maxsp)
26 level = node(nestlevel,mptr)
28 10
if (listbc(1,ispot).eq.0) go to 99
30 mkid = listbc(4,ispot)
31 intopl = listbc(5,ispot)
32 nx = node(ndihi,mkid) - node(ndilo,mkid) + 1
33 ny = node(ndjhi,mkid) - node(ndjlo,mkid) + 1
34 kidlst = node(ffluxptr,mkid)
37 inlist = kidlst + nvar*(intopl-1) - 1
44 if (listbc(3,ispot) .eq. 1)
then
47 alloc(inlist + ivar) = -xfluxp(ivar,i,j)*dtc*hy
52 if (listbc(3,ispot) .eq. 2)
then
55 alloc(inlist + ivar) = -yfluxm(ivar,i,j+1)*dtc*hx
60 if (listbc(3,ispot) .eq. 3)
then
63 alloc(inlist + ivar) = -xfluxm(ivar,i+1,j)*dtc*hy
68 if (listbc(3,ispot) .eq. 4)
then
71 alloc(inlist + ivar) = -yfluxp(ivar,i,j)*dtc*hx
81 if (listbc(3,ispot) .eq. 5)
then
84 alloc(inlist + ivar) = yfluxm(ivar,i,j+1)*dtc*hx
87 901
format(2i4,
" side",i3,4e15.7)
90 if (listbc(3,ispot) .eq. 6)
then
93 alloc(inlist + ivar) = yfluxp(ivar,i,j)*dtc*hx
99 if (ispot .gt. maxsp) go to 99
subroutine fluxsv(mptr, xfluxm, xfluxp, yfluxm, yfluxp, listbc, ndimx, ndimy, nvar, maxsp, dtc, hx, hy)