Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/network/
H A DpipeImpls.c65 PetscScalar qavg, xold_i, ha, hb, qa, qb; in PipeIFunctionLocal_Lax() local
81 xold_i = 0.5 * (qa + qb); 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()
85 xold_i = 0.5 * (ha + hb); in PipeIFunctionLocal_Lax()
86 f[2 * (i - 1) + 3] = (x[i].h - xold_i) + dt * c * dqdx(xold, i, ilast, dx); in PipeIFunctionLocal_Lax()