Lines Matching refs:wf
205 PetscCall(PetscWeakFormView(b->wf, viewer)); in PetscDSView_Ascii()
216 PetscCall(PetscWeakFormView(ds->wf, viewer)); in PetscDSView_Ascii()
319 PetscCall(PetscWeakFormRewriteKeys(b->wf, b->label, len, b->values)); in PetscDSSetFromOptions()
567 PetscCall(PetscWeakFormSetNumFields(prob->wf, NfNew)); in PetscDSEnlarge_Static()
647 PetscCall(PetscWeakFormDestroy(&(*ds)->wf)); in PetscDSDestroy()
697 PetscCall(PetscWeakFormCreate(comm, &p->wf)); in PetscDSCreate()
1088 PetscErrorCode PetscDSGetWeakForm(PetscDS ds, PetscWeakForm *wf) in PetscDSGetWeakForm() argument
1092 PetscAssertPointer(wf, 2); in PetscDSGetWeakForm()
1093 *wf = ds->wf; in PetscDSGetWeakForm()
1110 PetscErrorCode PetscDSSetWeakForm(PetscDS ds, PetscWeakForm wf) in PetscDSSetWeakForm() argument
1114 PetscValidHeaderSpecific(wf, PETSCWEAKFORM_CLASSID, 2); in PetscDSSetWeakForm()
1115 PetscCall(PetscObjectDereference((PetscObject)ds->wf)); in PetscDSSetWeakForm()
1116 ds->wf = wf; in PetscDSSetWeakForm()
1117 PetscCall(PetscObjectReference((PetscObject)wf)); in PetscDSSetWeakForm()
1118 PetscCall(PetscWeakFormSetNumFields(wf, ds->Nf)); in PetscDSSetWeakForm()
1299 PetscCall(PetscWeakFormGetObjective(ds->wf, NULL, 0, f, 0, &n, &tmp)); in PetscDSGetObjective()
1327 PetscCall(PetscWeakFormSetIndexObjective(ds->wf, NULL, 0, f, 0, 0, obj)); in PetscDSSetObjective()
1359 PetscCall(PetscWeakFormGetResidual(ds->wf, NULL, 0, f, 0, &n0, &tmp0, &n1, &tmp1)); in PetscDSGetResidual()
1390 PetscCall(PetscWeakFormSetIndexResidual(ds->wf, NULL, 0, f, 0, 0, f0, 0, f1)); in PetscDSSetResidual()
1422 PetscCall(PetscWeakFormGetResidual(ds->wf, NULL, 0, f, 100, &n0, &tmp0, &n1, &tmp1)); in PetscDSGetRHSResidual()
1453 PetscCall(PetscWeakFormSetIndexResidual(ds->wf, NULL, 0, f, 100, 0, f0, 0, f1)); in PetscDSSetRHSResidual()
1476 PetscCall(PetscWeakFormHasJacobian(ds->wf, hasJac)); in PetscDSHasJacobian()
1517 …PetscCall(PetscWeakFormGetJacobian(ds->wf, NULL, 0, f, g, 0, &n0, &tmp0, &n1, &tmp1, &n2, &tmp2, &… in PetscDSGetJacobian()
1561 PetscCall(PetscWeakFormSetIndexJacobian(ds->wf, NULL, 0, f, g, 0, 0, g0, 0, g1, 0, g2, 0, g3)); in PetscDSSetJacobian()
1610 PetscCall(PetscWeakFormHasJacobianPreconditioner(ds->wf, hasJacPre)); in PetscDSHasJacobianPreconditioner()
1655 …PetscCall(PetscWeakFormGetJacobianPreconditioner(ds->wf, NULL, 0, f, g, 0, &n0, &tmp0, &n1, &tmp1,… in PetscDSGetJacobianPreconditioner()
1703 …PetscCall(PetscWeakFormSetIndexJacobianPreconditioner(ds->wf, NULL, 0, f, g, 0, 0, g0, 0, g1, 0, g… in PetscDSSetJacobianPreconditioner()
1726 PetscCall(PetscWeakFormHasDynamicJacobian(ds->wf, hasDynJac)); in PetscDSHasDynamicJacobian()
1767 …PetscCall(PetscWeakFormGetDynamicJacobian(ds->wf, NULL, 0, f, g, 0, &n0, &tmp0, &n1, &tmp1, &n2, &… in PetscDSGetDynamicJacobian()
1811 …PetscCall(PetscWeakFormSetIndexDynamicJacobian(ds->wf, NULL, 0, f, g, 0, 0, g0, 0, g1, 0, g2, 0, g… in PetscDSSetDynamicJacobian()
1840 PetscCall(PetscWeakFormGetRiemannSolver(ds->wf, NULL, 0, f, 0, &n, &tmp)); in PetscDSGetRiemannSolver()
1865 PetscCall(PetscWeakFormSetIndexRiemannSolver(ds->wf, NULL, 0, f, 0, 0, r)); in PetscDSSetRiemannSolver()
2008 PetscCall(PetscWeakFormGetBdResidual(ds->wf, NULL, 0, f, 0, &n0, &tmp0, &n1, &tmp1)); in PetscDSGetBdResidual()
2041 PetscCall(PetscWeakFormSetIndexBdResidual(ds->wf, NULL, 0, f, 0, 0, f0, 0, f1)); in PetscDSSetBdResidual()
2065 PetscCall(PetscWeakFormHasBdJacobian(ds->wf, hasBdJac)); in PetscDSHasBdJacobian()
2106 …PetscCall(PetscWeakFormGetBdJacobian(ds->wf, NULL, 0, f, g, 0, &n0, &tmp0, &n1, &tmp1, &n2, &tmp2,… in PetscDSGetBdJacobian()
2150 PetscCall(PetscWeakFormSetIndexBdJacobian(ds->wf, NULL, 0, f, g, 0, 0, g0, 0, g1, 0, g2, 0, g3)); in PetscDSSetBdJacobian()
2177 PetscCall(PetscWeakFormHasBdJacobianPreconditioner(ds->wf, hasBdJacPre)); in PetscDSHasBdJacobianPreconditioner()
2222 …PetscCall(PetscWeakFormGetBdJacobianPreconditioner(ds->wf, NULL, 0, f, g, 0, &n0, &tmp0, &n1, &tmp… in PetscDSGetBdJacobianPreconditioner()
2270 …PetscCall(PetscWeakFormSetIndexBdJacobianPreconditioner(ds->wf, NULL, 0, f, g, 0, 0, g0, 0, g1, 0,… in PetscDSSetBdJacobianPreconditioner()
3195 PetscCall(PetscWeakFormCreate(PETSC_COMM_SELF, &b->wf)); in PetscDSAddBoundary()
3196 PetscCall(PetscWeakFormSetNumFields(b->wf, ds->Nf)); in PetscDSAddBoundary()
3313 PetscCall(PetscWeakFormCreate(PETSC_COMM_SELF, &b->wf)); in PetscDSAddBoundaryByName()
3314 PetscCall(PetscWeakFormSetNumFields(b->wf, ds->Nf)); in PetscDSAddBoundaryByName()
3479 PetscErrorCode PetscDSGetBoundary(PetscDS ds, PetscInt bd, PetscWeakForm *wf, DMBoundaryConditionTy… in PetscDSGetBoundary() argument
3492 if (wf) { in PetscDSGetBoundary()
3493 PetscAssertPointer(wf, 3); in PetscDSGetBoundary()
3494 *wf = b->wf; in PetscDSGetBoundary()
3573 PetscCall(PetscWeakFormCreate(PETSC_COMM_SELF, &(*bNew)->wf)); in DSBoundaryDuplicate_Internal()
3574 PetscCall(PetscWeakFormCopy(b->wf, (*bNew)->wf)); in DSBoundaryDuplicate_Internal()
3660 PetscCall(PetscWeakFormDestroy(&b->wf)); in PetscDSDestroyBoundary()
3800 PetscWeakForm wf, newwf; in PetscDSCopyEquations() local
3809 PetscCall(PetscDSGetWeakForm(prob, &wf)); in PetscDSCopyEquations()
3811 PetscCall(PetscWeakFormCopy(wf, newwf)); in PetscDSCopyEquations()