Home
last modified time | relevance | path

Searched refs:Xloc_t (Results 1 – 1 of 1) sorted by relevance

/petsc/src/ts/tutorials/
H A Dex10.c241 … *Theta, PetscReal *dt, Vec *X0loc, RDNode **x0, Vec *Xloc, RDNode **x, Vec *Xloc_t, RDNode **xdot) in RDGetLocalArrays() argument
248 PetscCall(DMGetLocalVector(rd->da, Xloc_t)); in RDGetLocalArrays()
252 PetscCall(DMGlobalToLocalBegin(rd->da, Xdot, INSERT_VALUES, *Xloc_t)); in RDGetLocalArrays()
253 PetscCall(DMGlobalToLocalEnd(rd->da, Xdot, INSERT_VALUES, *Xloc_t)); in RDGetLocalArrays()
265 …PetscCall(VecWAXPY(*X0loc, -(*Theta) * (*dt), *Xloc_t, *Xloc)); /* back out the value at the s… in RDGetLocalArrays()
266 …if (rd->endpoint) PetscCall(VecWAXPY(*Xloc, *dt, *Xloc_t, *X0loc)); /* move the abscissa to the en… in RDGetLocalArrays()
270 PetscCall(DMDAVecGetArray(rd->da, *Xloc_t, xdot)); in RDGetLocalArrays()
274 …storeLocalArrays(RD rd, Vec *X0loc, RDNode **x0, Vec *Xloc, RDNode **x, Vec *Xloc_t, RDNode **xdot) in RDRestoreLocalArrays() argument
279 PetscCall(DMDAVecRestoreArray(rd->da, *Xloc_t, xdot)); in RDRestoreLocalArrays()
282 PetscCall(DMRestoreLocalVector(rd->da, Xloc_t)); in RDRestoreLocalArrays()
[all …]