Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/network/
H A DpipeImpls.c66 PipeField *xold = pipe->xold; in PipeIFunctionLocal_Lax() local
74 qavg = (xold[i + 1].q + xold[i - 1].q) / 2.0; in PipeIFunctionLocal_Lax()
75 qa = xold[i - 1].q; in PipeIFunctionLocal_Lax()
76 qb = xold[i + 1].q; in PipeIFunctionLocal_Lax()
77 ha = xold[i - 1].h; in PipeIFunctionLocal_Lax()
78 hb = xold[i + 1].h; in PipeIFunctionLocal_Lax()
82 …f[2 * (i - 1) + 2] = (x[i].q - xold_i) + dt * (GRAV * pipe->A * dhdx(xold, i, ilast, dx) + pipe->R… in PipeIFunctionLocal_Lax()
86 f[2 * (i - 1) + 3] = (x[i].h - xold_i) + dt * c * dqdx(xold, i, ilast, dx); in PipeIFunctionLocal_Lax()
90 …= x[start].q - xold[start + 1].q - ((GRAV * A) / a) * (x[start].h - xold[start + 1].h) + dt * R * in PipeIFunctionLocal_Lax()
91 …= x[ilast].q - xold[ilast - 1].q + ((GRAV * A) / a) * (x[ilast].h - xold[ilast - 1].h) + dt * R * in PipeIFunctionLocal_Lax()
H A Dpipe.h27 PipeField *xold; member
H A Dpipes.c179 pipe->xold = (PipeField *)(xoldarr + varoffset); in WASHIFunction()
/petsc/src/dm/impls/plex/tutorials/
H A Dex19.c247 PetscReal xold, yold, zold, rold, phi, theta; in main() local
250 xold = cpCoordData[faceCPStartRow + (3 * ii) + 0]; in main()
253 rold = PetscSqrtReal(xold * xold + yold * yold + zold * zold); in main()
254 phi = PetscAtan2Real(yold, xold); in main()
255 theta = PetscAtan2Real(PetscSqrtReal(xold * xold + yold * yold), zold); in main()