Lines Matching refs:cdm
33 DM cdm, cdmc; in CoefficientCoarsenHook() local
36 PetscCall(PetscObjectQuery((PetscObject)dm, "coefficientdm", (PetscObject *)&cdm)); in CoefficientCoarsenHook()
38 …PetscCheck(cdm, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "The coefficient DM ne… in CoefficientCoarsenHook()
43 PetscCall(DMGetNamedGlobalVector(cdm, "coefficient", &c)); in CoefficientCoarsenHook()
47 PetscCall(DMCreateInterpolation(cdmc, cdm, &J, &vscale)); in CoefficientCoarsenHook()
57 PetscCall(DMRestoreNamedGlobalVector(cdm, "coefficient", &c)); in CoefficientCoarsenHook()
71 DM cdm, csubdm; in CoefficientSubDomainRestrictHook() local
75 PetscCall(PetscObjectQuery((PetscObject)dm, "coefficientdm", (PetscObject *)&cdm)); in CoefficientSubDomainRestrictHook()
77 …PetscCheck(cdm, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "The coefficient DM ne… in CoefficientSubDomainRestrictHook()
82 PetscCall(DMGetNamedGlobalVector(cdm, "coefficient", &c)); in CoefficientSubDomainRestrictHook()
85 PetscCall(DMCreateDomainDecompositionScatters(cdm, 1, &csubdm, &iscat, &oscat, &gscat)); in CoefficientSubDomainRestrictHook()
97 PetscCall(DMRestoreNamedGlobalVector(cdm, "coefficient", &c)); in CoefficientSubDomainRestrictHook()
230 DM cdm; in FormIFunctionLocal() local
233 PetscCall(PetscObjectQuery((PetscObject)info->da, "coefficientdm", (PetscObject *)&cdm)); in FormIFunctionLocal()
234 PetscCall(DMGetNamedLocalVector(cdm, "coefficient", &C)); in FormIFunctionLocal()
235 PetscCall(DMDAVecGetArray(cdm, C, &c)); in FormIFunctionLocal()
275 PetscCall(DMDAVecRestoreArray(cdm, C, &c)); in FormIFunctionLocal()
276 PetscCall(DMRestoreNamedLocalVector(cdm, "coefficient", &C)); in FormIFunctionLocal()