Lines Matching refs:ds

43   PetscDS     ds;  in SNESCorrectDiscretePressure_Private()  local
54 PetscCall(DMGetDS(dm, &ds)); in SNESCorrectDiscretePressure_Private()
55 PetscCall(PetscDSSetObjective(ds, pfield, pressure_Private)); in SNESCorrectDiscretePressure_Private()
60 PetscCall(PetscDSGetNumFields(ds, &Nf)); in SNESCorrectDiscretePressure_Private()
295 PetscDS ds; in DMPlexSNESComputeResidualFEM() local
299 PetscCall(DMGetRegionNumDS(dm, s, &key.label, NULL, &ds, NULL)); in DMPlexSNESComputeResidualFEM()
351 PetscDS ds; in DMPlexSNESComputeResidualDS() local
355 PetscCall(DMGetRegionNumDS(dm, s, &label, NULL, &ds, NULL)); in DMPlexSNESComputeResidualDS()
365 PetscCall(PetscHMapFormGetSize(ds->wf->form[resmap[m]], &Nkm)); in DMPlexSNESComputeResidualDS()
369 … for (m = 0; m < Nm; ++m) PetscCall(PetscHMapFormGetKeys(ds->wf->form[resmap[m]], &off, reskeys)); in DMPlexSNESComputeResidualDS()
380 PetscCall(PetscDSGetWeakForm(ds, &wf)); in DMPlexSNESComputeResidualDS()
466 PetscDS ds; in DMSNESComputeJacobianAction() local
470 PetscCall(DMGetRegionNumDS(dm, s, &label, NULL, &ds, NULL)); in DMSNESComputeJacobianAction()
480 PetscCall(PetscHMapFormGetSize(ds->wf->form[jacmap[m]], &Nkm)); in DMSNESComputeJacobianAction()
484 … for (m = 0; m < Nm; ++m) PetscCall(PetscHMapFormGetKeys(ds->wf->form[jacmap[m]], &off, jackeys)); in DMSNESComputeJacobianAction()
495 PetscCall(PetscDSGetWeakForm(ds, &wf)); in DMSNESComputeJacobianAction()
553 PetscDS ds; in DMPlexSNESComputeJacobianFEM() local
557 PetscCall(DMGetRegionNumDS(dm, s, &key.label, NULL, &ds, NULL)); in DMPlexSNESComputeJacobianFEM()
573 PetscCall(PetscDSHasJacobian(ds, &hasJac)); in DMPlexSNESComputeJacobianFEM()
574 PetscCall(PetscDSHasJacobianPreconditioner(ds, &hasPrec)); in DMPlexSNESComputeJacobianFEM()
786 PetscDS ds; in DMSNESCheckDiscretization() local
792 PetscCall(DMGetRegionNumDS(dm, s, &label, &fieldIS, &ds, NULL)); in DMSNESCheckDiscretization()
793 PetscCall(PetscDSGetNumFields(ds, &dsNf)); in DMSNESCheckDiscretization()
797 PetscCall(PetscDSGetExactSolution(ds, field, &exacts[field], &ectxs[field])); in DMSNESCheckDiscretization()
899 PetscDS ds; in DMSNESCheckJacobian() local
917 PetscCall(DMGetDS(dm, &ds)); in DMSNESCheckJacobian()
918 PetscCall(PetscDSHasJacobian(ds, &hasJac)); in DMSNESCheckJacobian()
919 PetscCall(PetscDSHasJacobianPreconditioner(ds, &hasPrec)); in DMSNESCheckJacobian()
1061 PetscDS ds; in DMPlexSetSNESVariableBounds() local
1072 PetscCall(DMGetDS(dm, &ds)); in DMPlexSetSNESVariableBounds()
1073 PetscCall(PetscDSGetNumFields(ds, &Nf)); in DMPlexSetSNESVariableBounds()
1076 PetscCall(PetscDSGetLowerBound(ds, f, &lfuncs[f], &lctxs[f])); in DMPlexSetSNESVariableBounds()
1077 PetscCall(PetscDSGetUpperBound(ds, f, &ufuncs[f], &uctxs[f])); in DMPlexSetSNESVariableBounds()