Lines Matching refs:ds

215   PetscDS        ds;  in SetupProblem()  local
222 PetscCall(DMGetDS(dm, &ds)); in SetupProblem()
228 PetscCall(PetscDSSetResidual(ds, 0, f0_mms1_u, f1_u)); in SetupProblem()
229 PetscCall(PetscDSSetResidual(ds, 1, f0_p, f1_p)); in SetupProblem()
230 PetscCall(PetscDSSetJacobian(ds, 0, 0, g0_uu, g1_uu, NULL, g3_uu)); in SetupProblem()
231 PetscCall(PetscDSSetJacobian(ds, 0, 1, NULL, NULL, g2_up, NULL)); in SetupProblem()
232 PetscCall(PetscDSSetJacobian(ds, 1, 0, NULL, g1_pu, NULL, NULL)); in SetupProblem()
233 PetscCall(PetscDSSetExactSolution(ds, 0, mms1_u_2d, ctx)); in SetupProblem()
234 PetscCall(PetscDSSetExactSolution(ds, 1, mms1_p_2d, ctx)); in SetupProblem()
238 PetscCall(PetscDSSetResidual(ds, 0, f0_mms2_u, f1_u)); in SetupProblem()
239 PetscCall(PetscDSSetResidual(ds, 1, f0_p, f1_p)); in SetupProblem()
240 PetscCall(PetscDSSetJacobian(ds, 0, 0, g0_uu, g1_uu, NULL, g3_uu)); in SetupProblem()
241 PetscCall(PetscDSSetJacobian(ds, 0, 1, NULL, NULL, g2_up, NULL)); in SetupProblem()
242 PetscCall(PetscDSSetJacobian(ds, 1, 0, NULL, g1_pu, NULL, NULL)); in SetupProblem()
243 PetscCall(PetscDSSetExactSolution(ds, 0, mms2_u_2d, ctx)); in SetupProblem()
244 PetscCall(PetscDSSetExactSolution(ds, 1, mms2_p_2d, ctx)); in SetupProblem()
301 PetscDS ds; in MonitorError() local
306 PetscCall(DMGetDS(dm, &ds)); in MonitorError()
307 PetscCall(PetscDSGetExactSolution(ds, 0, &funcs[0], &ctxs[0])); in MonitorError()
308 PetscCall(PetscDSGetExactSolution(ds, 1, &funcs[1], &ctxs[1])); in MonitorError()
345 PetscDS ds; in main() local
347 PetscCall(DMGetDS(dm, &ds)); in main()
348 PetscCall(PetscDSGetExactSolution(ds, 0, &funcs[0], &ctxs[0])); in main()
349 PetscCall(PetscDSGetExactSolution(ds, 1, &funcs[1], &ctxs[1])); in main()