Lines Matching refs:dmc
8555 …sureRefined(DM dmf, PetscSection fsection, PetscSection globalFSection, DM dmc, PetscSection csect… in DMPlexMatSetClosureRefined() argument
8569 PetscValidHeaderSpecific(dmc, DM_CLASSID, 4); in DMPlexMatSetClosureRefined()
8572 if (!csection) PetscCall(DMGetLocalSection(dmc, &csection)); in DMPlexMatSetClosureRefined()
8576 if (!globalCSection) PetscCall(DMGetGlobalSection(dmc, &globalCSection)); in DMPlexMatSetClosureRefined()
8584 PetscCall(DMPlexGetTransitiveClosure(dmc, point, PETSC_TRUE, &numCPoints, &cpoints)); in DMPlexMatSetClosureRefined()
8610 PetscCall(DMPlexGetCellType(dmc, point, &ct)); in DMPlexMatSetClosureRefined()
8657 …PetscCheck(!numFields || coffsets[numFields] == numCIndices, PetscObjectComm((PetscObject)dmc), PE… in DMPlexMatSetClosureRefined()
8659 PetscCall(DMGetWorkArray(dmc, numCIndices, MPIU_INT, &cindices)); in DMPlexMatSetClosureRefined()
8712 PetscCall(DMRestoreWorkArray(dmc, numCIndices, MPIU_INT, &cindices)); in DMPlexMatSetClosureRefined()
8715 PetscCall(DMPlexRestoreTransitiveClosure(dmc, point, PETSC_TRUE, &numCPoints, &cpoints)); in DMPlexMatSetClosureRefined()
8717 PetscCall(DMRestoreWorkArray(dmc, numCIndices, MPIU_INT, &cindices)); in DMPlexMatSetClosureRefined()
8721 …icesRefined(DM dmf, PetscSection fsection, PetscSection globalFSection, DM dmc, PetscSection csect… in DMPlexMatGetClosureIndicesRefined() argument
8732 PetscValidHeaderSpecific(dmc, DM_CLASSID, 4); in DMPlexMatGetClosureIndicesRefined()
8735 if (!csection) PetscCall(DMGetLocalSection(dmc, &csection)); in DMPlexMatGetClosureIndicesRefined()
8739 if (!globalCSection) PetscCall(DMGetGlobalSection(dmc, &globalCSection)); in DMPlexMatGetClosureIndicesRefined()
8744 PetscCall(DMPlexGetTransitiveClosure(dmc, point, PETSC_TRUE, &numCPoints, &cpoints)); in DMPlexMatGetClosureIndicesRefined()
8770 PetscCall(DMPlexGetCellType(dmc, point, &ct)); in DMPlexMatGetClosureIndicesRefined()
8817 …PetscCheck(!numFields || coffsets[numFields] == numCIndices, PetscObjectComm((PetscObject)dmc), PE… in DMPlexMatGetClosureIndicesRefined()
8860 PetscCall(DMPlexRestoreTransitiveClosure(dmc, point, PETSC_TRUE, &numCPoints, &cpoints)); in DMPlexMatGetClosureIndicesRefined()
10237 static PetscErrorCode DMCreateAffineInterpolationCorrection_Plex(DM dmc, DM dmf, Vec *shift) in DMCreateAffineInterpolationCorrection_Plex() argument
10247 PetscCall(DMGetFullDM(dmc, &dmco)); in DMCreateAffineInterpolationCorrection_Plex()
10254 PetscCall(DMCreateLocalVector(dmc, &clocal)); in DMCreateAffineInterpolationCorrection_Plex()
10263 PetscCall(DMPlexInsertBoundaryValues(dmc, PETSC_TRUE, clocal, 0., NULL, NULL, NULL)); in DMCreateAffineInterpolationCorrection_Plex()
10376 DM dmc; in DMCreateMassMatrixLumped_Plex() local
10384 PetscCall(DMClone(dm, &dmc)); in DMCreateMassMatrixLumped_Plex()
10385 PetscCall(DMCopyDisc(dm, dmc)); in DMCreateMassMatrixLumped_Plex()
10386 PetscCall(DMGetDS(dmc, &ds)); in DMCreateMassMatrixLumped_Plex()
10387 …for (PetscInt f = 0; f < dmc->Nf; ++f) PetscCall(PetscDSSetJacobian(ds, f, f, g0_identity_private,… in DMCreateMassMatrixLumped_Plex()
10400 …PetscCall(DMPlexComputeJacobianActionByKey(dmc, key, cellIS, 0.0, 0.0, ones, NULL, ones, locmass, … in DMCreateMassMatrixLumped_Plex()
10409 PetscCall(DMDestroy(&dmc)); in DMCreateMassMatrixLumped_Plex()
10423 DM dmc; in DMCreateMassMatrix_Plex() local
10431 PetscCall(DMClone(dmFine, &dmc)); in DMCreateMassMatrix_Plex()
10432 PetscCall(DMCopyDisc(dmFine, dmc)); in DMCreateMassMatrix_Plex()
10433 PetscCall(DMGetDS(dmc, &ds)); in DMCreateMassMatrix_Plex()
10436 …for (PetscInt f = 0; f < dmc->Nf; ++f) PetscCall(PetscDSSetJacobian(ds, f, f, g0_identity_private,… in DMCreateMassMatrix_Plex()
10437 PetscCall(DMCreateMatrix(dmc, mass)); in DMCreateMassMatrix_Plex()
10438 PetscCall(DMGetLocalVector(dmc, &u)); in DMCreateMassMatrix_Plex()
10439 PetscCall(DMPlexGetDepth(dmc, &depth)); in DMCreateMassMatrix_Plex()
10440 PetscCall(DMGetStratumIS(dmc, "depth", depth, &cellIS)); in DMCreateMassMatrix_Plex()
10446 PetscCall(DMPlexComputeJacobianByKey(dmc, key, cellIS, 0.0, 0.0, u, NULL, *mass, *mass, NULL)); in DMCreateMassMatrix_Plex()
10448 PetscCall(DMRestoreLocalVector(dmc, &u)); in DMCreateMassMatrix_Plex()
10449 PetscCall(DMDestroy(&dmc)); in DMCreateMassMatrix_Plex()
10470 PetscErrorCode DMCreateGradientMatrix_Plex(DM dmc, DM dmr, Mat *derv) in DMCreateGradientMatrix_Plex() argument
10479 PetscCall(DMGetGlobalSection(dmc, &gsc)); in DMCreateGradientMatrix_Plex()
10482 PetscCall(MatCreate(PetscObjectComm((PetscObject)dmc), derv)); in DMCreateGradientMatrix_Plex()
10485 PetscCall(MatSetType(*derv, dmc->mattype)); in DMCreateGradientMatrix_Plex()
10512 …PetscCall(DMPlexComputeJacobianByKeyGeneral(ndmr, dmc, key, cellIS, 0.0, 0.0, u, NULL, *derv, *der… in DMCreateGradientMatrix_Plex()