3 c
copy the
internal cvode vector y to nek array w1
16 if (ifcvfld(ifield)) then
17 ntot = nxyz*nelfld(ifield)
18 call
copy (w1(1,1,1,1,ifield-1),y(j),ntot)
19 call
bcdirsc(w1(1,1,1,1,ifield-1)) ! restore dirichlet bcs
26 c----------------------------------------------------------------------
27 subroutine cvpack(y,w1,ifrhs)
29 c
copy the nek array w1 to the internal cvode vector y
30 c note: assumes temperature is stored in ifield=2 (only for ifdp0dt)
45 if (ifrhs .and. ifdp0dt) then
47 dd = (gamma0 - 1.)/gamma0
50 call
invers2(dtmp,vtrans(1,1,1,1,2),ntot)
51 call
cmult(dtmp,dd,ntot)
52 call
add2 (w1,dtmp,ntot)
57 if (ifcvfld(ifield)) then
58 ntot = nxyz*nelfld(ifield)
59 call
copy (y(j),w1(1,1,1,1,ifield-1),ntot)
60 if (ifrhs) call
col2(y(j),tmask(1,1,1,1,ifield-1),ntot)
subroutine cvunpack(w1, y) c c copy the internal cvode vector y to nek array w1 c include 'SIZE' include 'TOTAL' include 'CVODE' real w1(lx1
subroutine invers2(a, b, n)
subroutine cmult(a, const, n)