Go to the documentation of this file.
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)
uint * Lrp
Definition: crs_xxt.c:56
double * A
Definition: crs_xxt.c:204
double v
Definition: crs_xxt.c:793
struct sparse_cholesky fac_A_ll
Definition: crs_xxt.c:252
Definition: crs_xxt.c:207
double * share_weight
Definition: crs_xxt.c:231
unsigned plevels
Definition: crs_xxt.c:213
Definition: crs_xxt.c:328
ulong id
Definition: crs_xxt.c:328
#define crs_stats
Definition: crs_xxt.c:12
#define crs_setup
Definition: crs_xxt.c:10
void sparse_cholesky_solve(double *x, const struct sparse_cholesky *fac, double *b)
Definition: crs_xxt.c:169
uint pcoord
Definition: crs_xxt.c:212
double * vx
Definition: crs_xxt.c:257
double * X
Definition: crs_xxt.c:254
#define crs_solve
Definition: crs_xxt.c:11
subroutine col2(a, b, n)
Definition: math.f:564
subroutine ly1
Definition: cvode_aux.h:9
comm_req * req
Definition: crs_xxt.c:220
uint cn
Definition: crs_xxt.c:242
subroutine cmult(a, const, n)
Definition: math.f:315
uint level
Definition: crs_xxt.c:328
unsigned null_space
Definition: crs_xxt.c:230
uint * Lj
Definition: crs_xxt.c:56
uint un
Definition: crs_xxt.c:235
struct csr_mat A_sl
Definition: crs_xxt.c:253
double * D
Definition: crs_xxt.c:57
uint * Aj
Definition: crs_xxt.c:204
subroutine add2(a, b, n)
Definition: math.f:622
double * L
Definition: crs_xxt.c:57
uint ln
Definition: crs_xxt.c:245
uint n
Definition: crs_xxt.c:204
#define crs_free
Definition: crs_xxt.c:13
uint * sep_size
Definition: crs_xxt.c:225
subroutine lelt
Definition: cvode_aux.h:9
unsigned nsep
Definition: crs_xxt.c:224
void sparse_cholesky_factor(uint n, const uint *Arp, const uint *Aj, const double *A, struct sparse_cholesky *out, buffer *buf)
Definition: crs_xxt.c:187
double * combuf
Definition: crs_xxt.c:257
sint * pother
Definition: crs_xxt.c:214
subroutine invers2(a, b, n)
Definition: math.f:51
uint sn
Definition: crs_xxt.c:245
subroutine lz1
Definition: cvode_aux.h:9
subroutine copy(a, b, n)
Definition: math.f:260
uint xn
Definition: crs_xxt.c:249
sint * perm_u2c
Definition: crs_xxt.c:243
uint j
Definition: crs_xxt.c:793
Definition: crs_xxt.c:793
struct comm comm
Definition: crs_xxt.c:211
uint count
Definition: crs_xxt.c:328
double * vc
Definition: crs_xxt.c:257
uint * Arp
Definition: crs_xxt.c:204
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
real *8 function dnekclock_sync()
Definition: comm_mpi.f:400
uint n
Definition: crs_xxt.c:56
subroutine bcdirsc(S)
Definition: bdry.f:710
void sparse_cholesky_free(struct sparse_cholesky *fac)
Definition: crs_xxt.c:197
real *8 function dnekclock()
Definition: comm_mpi.f:392
subroutine qthermal
Definition: plan4.f:637
uint i
Definition: crs_xxt.c:793
double * vl
Definition: crs_xxt.c:257
uint * Xp
Definition: crs_xxt.c:254