Home
last modified time | relevance | path

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

/petsc/src/ts/tests/
H A Dex13.c104 Vec hW, hWdot; in main() local
106 PetscCall(TSTrajectoryGetUpdatedHistoryVecs(tj, ts, testtime, &hW, &hWdot)); in main()
107 PetscCall(VecGetArrayRead(hW, &aW)); in main()
113 PetscCall(VecRestoreArrayRead(hW, &aW)); in main()
115 PetscCall(TSTrajectoryRestoreUpdatedHistoryVecs(tj, &hW, &hWdot)); in main()
143 Vec hW, hWdot; in main() local
146 …PetscCall(TSTrajectoryGetUpdatedHistoryVecs(tj, ts, testtime, use1 ? &hW : NULL, use2 ? &hWdot : N… in main()
148 PetscCall(VecGetArrayRead(hW, &aW)); in main()
151 PetscCall(VecRestoreArrayRead(hW, &aW)); in main()
161 PetscCall(TSTrajectoryRestoreUpdatedHistoryVecs(tj, use1 ? &hW : NULL, use2 ? &hWdot : NULL)); in main()
/petsc/src/ts/tutorials/
H A Dex14.c1252 …const PetscScalar w = (k && k < zm - 1) ? 0.5 : 0.25, hW = w * (x2[i - 1][j].h + x2[i][j].h) / (zm… in THIJacobianLocal_2D() local
1254 …wind[] = {((PetscRealPart(x3[i][j][k].u) > 0) ? -hW : 0), (PetscRealPart(x3[i][j][k].u) > 0) ? +hE… in THIJacobianLocal_2D()
1256 … vals_centered[] = {-0.5 * hW, 0.5 * (-hW + hE), 0.5 * hE, -0.5 * hS, 0.5 * (-hS + hN), 0.5 * hN}; in THIJacobianLocal_2D()