3 c
copy the
internal cvode vector y to nek array w1 and w1p
17 if (ifcvfld(ifield)) then
18 ntot = nxyz*nelfld(ifield)
19 call
copy (w1(1,1,1,1,ifield-1),y(j),ntot)
20 call
bcdirsc(w1(1,1,1,1,ifield-1)) ! restore dirichlet bcs
32 c----------------------------------------------------------------------
33 subroutine cvpack(y,w1,w1p,ifrhs)
35 c
copy the nek array w1 and w1p to the internal cvode vector y
36 c note: assumes temperature is stored in ifield=2 (only for ifdp0dt)
47 common /scrsf/ dtmp(lx1,ly1,lz1,lelt)
52 if (ifrhs .and. ifdp0dt) then
54 dd = (gamma0 - 1.)/gamma0
57 call
invers2(dtmp,vtrans(1,1,1,1,2),ntot)
58 call
cmult(dtmp,dd,ntot)
59 call
add2 (w1,dtmp,ntot)
64 if (ifcvfld(ifield)) then
65 ntot = nxyz*nelfld(ifield)
66 call
copy (y(j),w1(1,1,1,1,ifield-1),ntot)
67 if (ifrhs) call
col2(y(j),tmask(1,1,1,1,ifield-1),ntot)
subroutine ly1
Definition: cvode_aux.h:9
subroutine bcdirsc(S)
Definition: bdry.f:725
subroutine add2(a, b, n)
Definition: math.f:599
subroutine qthermal
Definition: plan4.f:562
subroutine copy(a, b, n)
Definition: math.f:237
subroutine lz1
Definition: cvode_aux.h:9
subroutine cmult(a, const, n)
Definition: math.f:292
subroutine lelt
Definition: cvode_aux.h:9
subroutine invers2(a, b, n)
Definition: math.f:35
subroutine cvunpack(w1, w1p, y) c c copy the internal cvode vector y to nek array w1 and w1p c include 'SIZE' include 'TOTAL' include 'CVODE' real w1(lx1
subroutine col2(a, b, n)
Definition: math.f:541