Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/hamiltonian/
H A Dex1.c58 PetscScalar *xres; in RHSFunction1() local
61 PetscCall(VecGetArray(Xres, &xres)); in RHSFunction1()
63 xres[0] = v[0]; in RHSFunction1()
65 PetscCall(VecRestoreArray(Xres, &xres)); in RHSFunction1()
H A Dex3.c1219 PetscScalar *xres; in RHSFunctionX() local
1228 PetscCall(VecGetArray(Xres, &xres)); in RHSFunctionX()
1231 for (d = 0; d < dim; ++d) xres[p * dim + d] = v[p * dim + d]; in RHSFunctionX()
1234 PetscCall(VecRestoreArray(Xres, &xres)); in RHSFunctionX()
H A Dex2.c1943 PetscScalar *xres; in RHSFunctionX() local
1952 PetscCall(VecGetArray(Xres, &xres)); in RHSFunctionX()
1955 for (d = 0; d < dim; ++d) xres[p * dim + d] = v[p * dim + d]; in RHSFunctionX()
1958 PetscCall(VecRestoreArray(Xres, &xres)); in RHSFunctionX()
H A Dex4.c2548 PetscScalar *xres; in RHSFunctionX() local
2557 PetscCall(VecGetArray(Xres, &xres)); in RHSFunctionX()
2560 for (d = 0; d < dim; ++d) xres[p * dim + d] = v[p * dim + d]; in RHSFunctionX()
2563 PetscCall(VecRestoreArray(Xres, &xres)); in RHSFunctionX()
/petsc/src/dm/impls/swarm/tests/
H A Dex4.c185 PetscScalar *xres; in RHSFunctionX() local
191 PetscCall(VecGetArray(Xres, &xres)); in RHSFunctionX()
192 for (p = 0; p < Np; ++p) xres[p] = v[p]; in RHSFunctionX()
194 PetscCall(VecRestoreArray(Xres, &xres)); in RHSFunctionX()
H A Dex5.c167 PetscScalar *xres; in RHSFunctionX() local
175 PetscCall(VecGetArray(Xres, &xres)); in RHSFunctionX()
178 for (d = 0; d < dim; ++d) xres[p * dim + d] = v[p * dim + d]; in RHSFunctionX()
180 PetscCall(VecRestoreArray(Xres, &xres)); in RHSFunctionX()
H A Dex6.c603 PetscScalar *xres; in RHSFunctionX() local
612 PetscCall(VecGetArray(Xres, &xres)); in RHSFunctionX()
614 for (d = 0; d < dim; ++d) xres[p * dim + d] = v[p * dim + d]; in RHSFunctionX()
617 PetscCall(VecRestoreArray(Xres, &xres)); in RHSFunctionX()