Lines Matching refs:ds
151 PetscDS ds; in SetupProblem() local
156 PetscCall(DMGetDS(dm, &ds)); in SetupProblem()
157 PetscCall(PetscDSSetResidual(ds, 0, user->useDualPenalty == PETSC_TRUE ? f0_u_full : f0_u, f1_u)); in SetupProblem()
158 PetscCall(PetscDSSetResidual(ds, 1, f0_a, NULL)); in SetupProblem()
159 PetscCall(PetscDSSetResidual(ds, 2, f0_l, f1_l)); in SetupProblem()
160 …PetscCall(PetscDSSetJacobian(ds, 0, 0, user->useDualPenalty == PETSC_TRUE ? g0_uu_full : g0_uu, NU… in SetupProblem()
161 PetscCall(PetscDSSetJacobian(ds, 0, 2, NULL, NULL, NULL, g3_ul)); in SetupProblem()
162 PetscCall(PetscDSSetJacobian(ds, 1, 1, g0_aa, NULL, NULL, NULL)); in SetupProblem()
163 PetscCall(PetscDSSetJacobian(ds, 1, 2, g0_al, NULL, NULL, NULL)); in SetupProblem()
164 PetscCall(PetscDSSetJacobian(ds, 2, 1, g0_la, NULL, NULL, NULL)); in SetupProblem()
165 PetscCall(PetscDSSetJacobian(ds, 2, 0, NULL, NULL, NULL, g3_lu)); in SetupProblem()
167 PetscCall(PetscDSSetExactSolution(ds, 0, quadratic_u_2d, NULL)); in SetupProblem()
168 PetscCall(PetscDSSetExactSolution(ds, 1, constant_a_2d, NULL)); in SetupProblem()
169 PetscCall(PetscDSSetExactSolution(ds, 2, zero, NULL)); in SetupProblem()
231 PetscDS ds; in main() local
236 PetscCall(DMGetDS(dm, &ds)); in main()
237 PetscCall(PetscDSGetExactSolution(ds, 0, &exactFuncs[0], NULL)); in main()
238 PetscCall(PetscDSGetExactSolution(ds, 1, &exactFuncs[1], NULL)); in main()
239 PetscCall(PetscDSGetExactSolution(ds, 2, &exactFuncs[2], NULL)); in main()