Lines Matching refs:ds
50 PetscDS ds; in SetupPrimalProblem() local
55 PetscCall(DMGetDS(dm, &ds)); in SetupPrimalProblem()
56 PetscCall(PetscDSSetResidual(ds, 0, f0_trig_u, f1_u)); in SetupPrimalProblem()
57 PetscCall(PetscDSSetJacobian(ds, 0, 0, NULL, NULL, NULL, g3_uu)); in SetupPrimalProblem()
58 PetscCall(PetscDSSetExactSolution(ds, 0, trig_u, user)); in SetupPrimalProblem()
120 static PetscErrorCode CreateFEGeometry(DM dm, PetscDS ds, IS cellIS, PetscQuadrature *affineQuad, P… in CreateFEGeometry() argument
130 PetscCall(PetscDSGetNumFields(ds, &Nf)); in CreateFEGeometry()
141 PetscCall(PetscDSGetDiscretization(ds, f, (PetscObject *)&fe)); in CreateFEGeometry()
150 static PetscErrorCode DestroyFEGeometry(DM dm, PetscDS ds, IS cellIS, PetscQuadrature *affineQuad, … in DestroyFEGeometry() argument
156 PetscCall(PetscDSGetNumFields(ds, &Nf)); in DestroyFEGeometry()
235 PetscDS ds; in TestIntegration() local
247 PetscCall(DMGetCellDS(dm, cStart, &ds, NULL)); in TestIntegration()
248 PetscCall(PetscDSGetNumFields(ds, &Nf)); in TestIntegration()
249 PetscCall(PetscDSGetTotalDimension(ds, &totDim)); in TestIntegration()
250 PetscCall(CreateFEGeometry(dm, ds, cellIS, &affineQuad, &affineGeom, &quads, &geoms)); in TestIntegration()
275 … PetscCall(PetscFEIntegrateResidual(ds, key, Ne, chunkGeom, u, NULL, NULL, NULL, 0.0, elemVec)); in TestIntegration()
280 PetscCall(DestroyFEGeometry(dm, ds, cellIS, &affineQuad, &affineGeom, &quads, &geoms)); in TestIntegration()