10 common /scrns/ resv(lx1*ly1*lz1*lelv,3)
20 $ (wxlag(1,1,1,1,2),wylag(1,1,1,1,2),wzlag(1,1,1,1,2),xm1,ym1,zm1)
23 s = bm1(i,1,1,1)*vtrans(i,1,1,1,1)*dti
24 vxlag(i,1,1,1,2)=s*vx(i,1,1,1)
25 vylag(i,1,1,1,2)=s*vy(i,1,1,1)
26 vzlag(i,1,1,1,2)=s*vz(i,1,1,1)
29 call midstep(vxlag,vylag,vzlag,prlag,0,dt)
32 bfx(i,1,1,1)=bfx(i,1,1,1)+vxlag(i,1,1,1,2)
33 bfy(i,1,1,1)=bfy(i,1,1,1)+vylag(i,1,1,1,2)
34 bfz(i,1,1,1)=bfz(i,1,1,1)+vzlag(i,1,1,1,2)
39 $ (xm1,ym1,zm1,wxlag(1,1,1,1,2),wylag(1,1,1,1,2),wzlag(1,1,1,1,2))
53 vx(i,1,1,1)=2*vx(i,1,1,1)-vxlag(i,1,1,1,1)
54 vy(i,1,1,1)=2*vy(i,1,1,1)-vylag(i,1,1,1,1)
55 vz(i,1,1,1)=2*vz(i,1,1,1)-vzlag(i,1,1,1,1)
59 pr(i,1,1,1)=2*pr(i,1,1,1)-prlag(i,1,1,1,1)
73 parameter(lv=lx1*ly1*lz1*lelt)
74 real ux(1),uy(1),uz(1),pu(1)
76 common /p5var/ rhs2(lx1*ly1*lz1*lelv,3)
78 common /scrns/ resv(lx1*ly1*lz1*lelv,3)
79 $ , dv1(lx1*ly1*lz1*lelv)
80 $ , dv2(lx1*ly1*lz1*lelv)
81 $ , dv3(lx1*ly1*lz1*lelv)
82 common /scrvh/ h1(lx1*ly1*lz1*lelv)
83 $ , h2(lx1*ly1*lz1*lelv)
87 $
call exitti(
'midstep requires lx2=lx1-2 in SIZE$',lx2)
94 call copy (h1,vdiff ,n)
95 call cmult2 (h2,vtrans,dti,n)
107 b=vtrans(i,1,1,1,1)*bm1(i,1,1,1)
109 bfx(i,1,1,1)=bfx(i,1,1,1)+b*(s*vx(i,1,1,1)-resv(i,1))
110 bfy(i,1,1,1)=bfy(i,1,1,1)+b*(s*vy(i,1,1,1)-resv(i,2))
111 bfz(i,1,1,1)=bfz(i,1,1,1)+b*(s*vz(i,1,1,1)-resv(i,3))
118 call opcopy (ux,uy,uz,vx,vy,vz)
120 call bcdirvc (ux,uy,uz,v1mask,v2mask,v3mask)
121 call ophx (resv(1,1),resv(1,2),resv(1,3),ux,uy,uz,h1,h2)
123 call copy(rhs2,resv,lx1*ly1*lz1*lelv*3)
126 resv(i,1)=bfx(i,1,1,1)-resv(i,1)
127 resv(i,2)=bfy(i,1,1,1)-resv(i,2)
128 resv(i,3)=bfz(i,1,1,1)-resv(i,3)
131 tolhv = abs(param(22))
133 $ ,resv(1,1),resv(1,2),resv(1,3),h1,h2,tolhv,nmxv)
135 call opadd2(ux,uy,uz,dv1,dv2,dv3)
subroutine bcdirvc(V1, V2, V3, mask1, mask2, mask3)
subroutine exitti(stringi, idata)
subroutine setup_convect(igeom)
subroutine gengeom(igeom)
subroutine geom_reset(icall)
subroutine ophinv(o1, o2, o3, i1, i2, i3, h1, h2, tolh, nmxhi)
subroutine incomprn(ux, uy, uz, up)
subroutine convop(conv, fi)
subroutine opcopy(a1, a2, a3, b1, b2, b3)
subroutine ophx(out1, out2, out3, inp1, inp2, inp3, h1, h2)
subroutine opadd2(a1, a2, a3, b1, b2, b3)
subroutine midstep(ux, uy, uz, pu, iresv, dtl)
subroutine cmult2(A, B, CONST, N)