Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/
H A Dex1.c218 PetscScalar ut, ub, ul, ur, u, uxx, uyy, sc, *f; in FormFunction() local
245 ur = x[row + 1]; in FormFunction()
246 uxx = (-ur + two * u - ul) * hydhx; in FormFunction()
H A Dex1f.F9037 PetscScalar ut, ub, ul, ur, u
66 ur = xx(row + 1)
67 uxx = (-ur + two*u - ul)*hydhx
H A Dex11.h675 static int godunovflux(const PetscScalar *ul, const PetscScalar *ur, PetscScalar *flux, const Petsc… in godunovflux() argument
725 rr = ur[0]; in godunovflux()
735 uxr += ur[k] * nn[k - 1]; in godunovflux()
737 utr += ur[k] * tg[k - 1]; in godunovflux()
739 ubr += ur[k] * bn[k - 1]; in godunovflux()
763 pr = (gamma - 1.) * (ur[ndim + 1] - rr * .5 * (d__1 * d__1 + d__2 * d__2 + d__3 * d__3)); in godunovflux()
H A Dex18.c509 PetscReal ur[3]; in tilted_phi_coupled_2d() local
513 ur[0] = PetscRealPart(u[0]); in tilted_phi_coupled_2d()
514 ur[1] = PetscRealPart(u[1]); in tilted_phi_coupled_2d()
515 ur[2] = PetscRealPart(u[2]); in tilted_phi_coupled_2d()
516 DMPlex_WaxpyD_Internal(2, -t, ur, x, x0); in tilted_phi_coupled_2d()
H A Dex30.c1632 Vec u, ur; in CreateMesh() local
1640 PetscCall(DMGetNamedGlobalVector(dmr, "solution_", &ur)); in CreateMesh()
1641 PetscCall(MatInterpolate(M, u, ur)); in CreateMesh()
1643 PetscCall(DMRestoreNamedGlobalVector(dmr, "solution_", &ur)); in CreateMesh()
/petsc/src/snes/tests/
H A Dex1.c372 PetscScalar ut, ub, ul, ur, u, uxx, uyy, sc, *f; in FormFunction() local
405 ur = x[row + 1]; in FormFunction()
406 uxx = (-ur + two * u - ul) * hydhx; in FormFunction()
/petsc/src/tao/pde_constrained/tutorials/
H A Delliptic.c36 Vec ur; /* reference */ member
193 PetscCall(VecWAXPY(user->uwork, -1.0, user->ur, user->u)); in FormFunction()
214 PetscCall(VecWAXPY(user->uwork, -1.0, user->ur, user->u)); in FormGradient()
234 PetscCall(VecWAXPY(user->uwork, -1.0, user->ur, user->u)); in FormFunctionGradient()
786 PetscCall(VecDuplicate(user->utrue, &user->ur)); in EllipticInitialize()
789 PetscCall(VecSet(user->ur, meanut)); in EllipticInitialize()
790 PetscCall(VecCopy(user->ur, user->u)); in EllipticInitialize()
1200 PetscCall(VecDestroy(&user->ur)); in EllipticDestroy()
H A Dhyperbolic.c31 Vec ur; /* reference */ member
228 PetscCall(VecWAXPY(user->uwork, -1.0, user->ur, user->u)); in FormFunction()
253 PetscCall(VecWAXPY(user->vwork, -1.0, user->ur, user->u)); in FormGradient()
280 PetscCall(VecWAXPY(user->vwork, -1.0, user->ur, user->u)); in FormFunctionGradient()
969 PetscCall(VecDuplicate(user->utrue, &user->ur)); in HyperbolicInitialize()
976 …PetscCall(Gather_uxi_uyi(user->ur, user->uxi, user->uxi_scatter, user->uyi, user->uyi_scatter, use… in HyperbolicInitialize()
1076 PetscCall(VecCopy(user->ur, user->u)); /* Reset u=ur */ in HyperbolicInitialize()
1161 PetscCall(VecDestroy(&user->ur)); in HyperbolicDestroy()
H A Dparabolic.c34 Vec ur; /* reference */ member
242 PetscCall(VecWAXPY(user->uwork, -1.0, user->ur, user->u)); in FormFunction()
278 PetscCall(VecWAXPY(user->uwork, -1.0, user->ur, user->u)); in FormGradient()
311 PetscCall(VecWAXPY(user->uwork, -1.0, user->ur, user->u)); in FormFunctionGradient()
775 PetscCall(VecDuplicate(user->utrue, &user->ur)); in ParabolicInitialize()
776 PetscCall(VecSet(user->ur, 0.0)); in ParabolicInitialize()
1222 PetscCall(VecDestroy(&user->ur)); in ParabolicDestroy()
/petsc/src/snes/tutorials/ex10d/
H A Dex10.c557 PetscScalar ut, ub, ul, ur, u, *g, sc, uyy, uxx; in FormFunction() local