Home
last modified time | relevance | path

Searched refs:cdmc (Results 1 – 1 of 1) sorted by relevance

/petsc/src/ts/tutorials/
H A Dex29.c33 DM cdm, cdmc; in CoefficientCoarsenHook() local
40 PetscCall(DMDACreateCompatibleDMDA(dmc, 2, &cdmc)); in CoefficientCoarsenHook()
41 PetscCall(PetscObjectCompose((PetscObject)dmc, "coefficientdm", (PetscObject)cdmc)); in CoefficientCoarsenHook()
44 PetscCall(DMGetNamedGlobalVector(cdmc, "coefficient", &cc)); in CoefficientCoarsenHook()
45 PetscCall(DMGetNamedLocalVector(cdmc, "coefficient", &ccl)); in CoefficientCoarsenHook()
47 PetscCall(DMCreateInterpolation(cdmc, cdm, &J, &vscale)); in CoefficientCoarsenHook()
54 PetscCall(DMGlobalToLocalBegin(cdmc, cc, INSERT_VALUES, ccl)); in CoefficientCoarsenHook()
55 PetscCall(DMGlobalToLocalEnd(cdmc, cc, INSERT_VALUES, ccl)); in CoefficientCoarsenHook()
58 PetscCall(DMRestoreNamedGlobalVector(cdmc, "coefficient", &cc)); in CoefficientCoarsenHook()
59 PetscCall(DMRestoreNamedLocalVector(cdmc, "coefficient", &ccl)); in CoefficientCoarsenHook()
[all …]