Lines Matching refs:dm

27 PetscErrorCode DMFieldToDSField(DM dm, DMLabel domain_label, PetscInt dm_field, PetscInt *ds_field)…  in DMFieldToDSField()  argument
34 PetscCall(DMGetRegionDS(dm, domain_label, &field_is, &ds, NULL)); in DMFieldToDSField()
45 …PetscCheck(*ds_field != -1, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "Could not find dm_fi… in DMFieldToDSField()
64 PetscErrorCode DMPlexCeedElemRestrictionCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscInt lab… in DMPlexCeedElemRestrictionCreate() argument
70 …PetscCall(DMPlexGetLocalOffsets(dm, domain_label, label_value, height, dm_field, &num_elem, &elem_… in DMPlexCeedElemRestrictionCreate()
94 PetscErrorCode DMPlexCeedElemRestrictionCoordinateCreate(Ceed ceed, DM dm, DMLabel domain_label, Pe… in DMPlexCeedElemRestrictionCoordinateCreate() argument
99 PetscCall(DMGetCellCoordinateDM(dm, &dm_coord)); in DMPlexCeedElemRestrictionCoordinateCreate()
101 PetscCall(DMGetCoordinateDM(dm, &dm_coord)); in DMPlexCeedElemRestrictionCoordinateCreate()
124 static PetscErrorCode DMPlexCeedElemRestrictionStridedCreate(Ceed ceed, DM dm, DMLabel domain_label… in DMPlexCeedElemRestrictionStridedCreate() argument
134 PetscCall(DMPlexGetDepth(dm, &depth)); in DMPlexCeedElemRestrictionStridedCreate()
135 PetscCall(DMPlexGetDepthLabel(dm, &depth_label)); in DMPlexCeedElemRestrictionStridedCreate()
164 PetscCall(DMGetRegionDS(dm, domain_label, NULL, &ds, NULL)); in DMPlexCeedElemRestrictionStridedCreate()
165 PetscCall(DMFieldToDSField(dm, domain_label, dm_field, &ds_field)); in DMPlexCeedElemRestrictionStridedCreate()
180 PetscCall(DMGetRegionDS(dm, domain_label, NULL, &ds, NULL)); in DMPlexCeedElemRestrictionStridedCreate()
181 PetscCall(DMFieldToDSField(dm, domain_label, dm_field, &ds_field)); in DMPlexCeedElemRestrictionStridedCreate()
211 PetscErrorCode DMPlexCeedElemRestrictionQDataCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscIn… in DMPlexCeedElemRestrictionQDataCreate() argument
214 …PetscCall(DMPlexCeedElemRestrictionStridedCreate(ceed, dm, domain_label, label_value, height, q_da… in DMPlexCeedElemRestrictionQDataCreate()
234 PetscErrorCode DMPlexCeedElemRestrictionCollocatedCreate(Ceed ceed, DM dm, DMLabel domain_label, Pe… in DMPlexCeedElemRestrictionCollocatedCreate() argument
237 …PetscCall(DMPlexCeedElemRestrictionStridedCreate(ceed, dm, domain_label, label_value, height, q_da… in DMPlexCeedElemRestrictionCollocatedCreate()
263 PetscErrorCode BasisCreateFromTabulation(Ceed ceed, DM dm, DMLabel domain_label, PetscInt label_val… in BasisCreateFromTabulation() argument
287 PetscCall(DMPlexGetDepth(dm, &depth)); in BasisCreateFromTabulation()
288 PetscCall(DMPlexGetDepthLabel(dm, &depth_label)); in BasisCreateFromTabulation()
293 …PetscCall(DMGetFirstLabeledPoint(dm, dm, domain_label ? domain_label : depth_label, 1, ids, height… in BasisCreateFromTabulation()
294 PetscCall(DMPlexGetCellType(dm, first_point, &cell_type)); in BasisCreateFromTabulation()
296 …PetscCheck(elem_topo, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "DMPlex topology not suppor… in BasisCreateFromTabulation()
315 PetscCall(DMPlexIsSimplex(dm, &is_simplex)); in BasisCreateFromTabulation()
320 PetscCall(DMGetLocalSection(dm, &section)); in BasisCreateFromTabulation()
321 …PetscCall(PetscSectionGetClosurePermutation(section, (PetscObject)dm, dim, num_comp * P, &permutat… in BasisCreateFromTabulation()
356 PetscErrorCode CreateBasisFromPlex(Ceed ceed, DM dm, DMLabel domain_label, CeedInt label_value, Cee… in CreateBasisFromPlex() argument
365 PetscCall(DMGetRegionDS(dm, domain_label, NULL, &ds, NULL)); in CreateBasisFromPlex()
366 PetscCall(DMFieldToDSField(dm, domain_label, dm_field, &ds_field)); in CreateBasisFromPlex()
372 PetscCall(DMPlexIsSimplex(dm, &is_simplex)); in CreateBasisFromPlex()
380 …PetscCall(BasisCreateFromTabulation(ceed, dm, domain_label, label_value, height, face, fe, basis_t… in CreateBasisFromPlex()
418 PetscInt num_fields, const PetscInt *field_sizes, DM dm) { in DMSetupByOrderBegin_FEM() argument
422 MPI_Comm comm = PetscObjectComm((PetscObject)dm); in DMSetupByOrderBegin_FEM()
425 PetscCall(DMPlexIsSimplex(dm, &is_simplex)); in DMSetupByOrderBegin_FEM()
428 PetscCall(DMGetDimension(dm, &dim)); in DMSetupByOrderBegin_FEM()
435 PetscCall(DMAddField(dm, NULL, (PetscObject)fe)); in DMSetupByOrderBegin_FEM()
438 PetscCall(DMCreateDS(dm)); in DMSetupByOrderBegin_FEM()
448 PetscCall(DMGetCoordinateDM(dm, &dm_coord)); in DMSetupByOrderBegin_FEM()
449 PetscCall(DMGetCoordinateDim(dm, &num_comp_coord)); in DMSetupByOrderBegin_FEM()
459 PetscCall(DMSetCoordinateDisc(dm, fe_coord_new, PETSC_TRUE)); in DMSetupByOrderBegin_FEM()
475 PetscErrorCode DMSetupByOrderEnd_FEM(PetscBool setup_coords, DM dm) { in DMSetupByOrderEnd_FEM() argument
479 PetscCall(DMPlexIsSimplex(dm, &is_simplex)); in DMSetupByOrderEnd_FEM()
482 PetscCall(DMPlexSetClosurePermutationTensor(dm, PETSC_DETERMINE, NULL)); in DMSetupByOrderEnd_FEM()
486 PetscCall(DMGetCoordinateDM(dm, &dm_coord)); in DMSetupByOrderEnd_FEM()
490 PetscCall(DMLocalizeCoordinates(dm)); // Must localize after tensor closure setting in DMSetupByOrderEnd_FEM()
511 PetscInt num_fields, const PetscInt *field_sizes, DM dm) { in DMSetupByOrder_FEM() argument
513 …erBegin_FEM(setup_faces, setup_coords, degree, coord_order, q_extra, num_fields, field_sizes, dm)); in DMSetupByOrder_FEM()
514 PetscCall(DMSetupByOrderEnd_FEM(setup_coords, dm)); in DMSetupByOrder_FEM()