| /petsc/src/dm/label/tutorials/ |
| H A D | ex1f90.F90 | 37 character(len=PETSC_MAX_PATH_LEN):: labelName, IObuffer 44 PetscCall(DMGetLabelName(dm, l, labelName, ierr)) 45 write (IObuffer, *) 'label ', l, ' name: ', trim(labelName), '\n' 49 PetscCall(DMGetLabel(dm, labelName, label, ierr))
|
| H A D | ex1.c | 10 const char *labelName, *typeName; in ViewLabels() local 20 PetscCall(DMGetLabelName(dm, l, &labelName)); in ViewLabels() 21 PetscCall(DMGetLabel(dm, labelName, &label)); in ViewLabels() 23 …ViewerASCIIPrintf(viewer, "Label %" PetscInt_FMT ": name: %s type: %s\n", l, labelName, typeName)); in ViewLabels()
|
| /petsc/src/dm/impls/plex/generators/triangle/ |
| H A D | trigenerate.c | 68 const char *labelName = "marker"; in DMPlexGenerate_Triangle() local 84 PetscCall(DMGetLabel(boundary, labelName, &label)); in DMPlexGenerate_Triangle() 194 PetscCall(DMCreateLabel(*dm, labelName)); in DMPlexGenerate_Triangle() 195 PetscCall(DMGetLabel(*dm, labelName, &glabel)); in DMPlexGenerate_Triangle() 235 const char *labelName = "marker"; in DMPlexRefine_Triangle() local 251 PetscCall(DMGetLabel(dm, labelName, &label)); in DMPlexRefine_Triangle() 359 PetscCall(DMCreateLabel(*dmRefined, labelName)); in DMPlexRefine_Triangle() 360 PetscCall(DMGetLabel(*dmRefined, labelName, &rlabel)); in DMPlexRefine_Triangle()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex56.c | 260 const char *labelName; in DMLabelCompareWithCoordinateRepresentation() local 271 PetscCall(PetscObjectGetName((PetscObject)label, &labelName)); in DMLabelCompareWithCoordinateRepresentation() 291 …m, PETSC_STDERR, "[%d] Label \"%s\" does not have point %" PetscInt_FMT "\n", rank, labelName, p)); in DMLabelCompareWithCoordinateRepresentation() 297 …DERR, "Point %" PetscInt_FMT " has bad value %" PetscInt_FMT " in label \"%s\"", p, v, labelName)); in DMLabelCompareWithCoordinateRepresentation() 308 …PetscCheck(!fail, comm, PETSC_ERR_PLIB, "Label \"%s\" was not loaded correctly%s", labelName, verb… in DMLabelCompareWithCoordinateRepresentation()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexfluent.c | 253 char labelName[PETSC_MAX_PATH_LEN]; in DMPlexCreateFluent_ReadSection() local 257 snum = sscanf(buffer, "(%u %s %s %d)", &s->zoneID, caseName, labelName, &s->nd); in DMPlexCreateFluent_ReadSection() 268 PetscCall(PetscStrallocpy(labelName, (char **)&s->data)); in DMPlexCreateFluent_ReadSection() 269 … PetscCall(PetscInfo((PetscObject)viewer, "CASE: Zone ID %u is label %s\n", s->zoneID, labelName)); in DMPlexCreateFluent_ReadSection()
|
| H A D | plextree.c | 218 PetscErrorCode DMPlexCreateReferenceTree_Union(DM K, DM Kref, const char *labelName, DM *ref) in DMPlexCreateReferenceTree_Union() argument 232 PetscCall(DMGetLabel(K, labelName, &identity)); in DMPlexCreateReferenceTree_Union() 233 PetscCall(DMGetLabel(Kref, labelName, &identityRef)); in DMPlexCreateReferenceTree_Union()
|
| H A D | plexsubmesh.c | 1054 PetscErrorCode DMPlexConstructGhostCells(DM dm, const char labelName[], PetscInt *numGhostCells, DM… in DMPlexConstructGhostCells() argument 1058 const char *name = labelName ? labelName : "Face Sets"; in DMPlexConstructGhostCells()
|
| /petsc/src/dm/impls/plex/cgns/ |
| H A D | plexcgns2.c | 736 char *labelName = buffer; in DMPlexCreateCGNS_Internal_Serial() local 743 PetscCall(PetscStrncpy(labelName, locName, len)); in DMPlexCreateCGNS_Internal_Serial() 745 PetscCallMPI(MPI_Bcast(labelName, (PetscMPIInt)len, MPIU_INT, 0, comm)); in DMPlexCreateCGNS_Internal_Serial() 746 PetscCallMPI(DMCreateLabel(*dm, labelName)); in DMPlexCreateCGNS_Internal_Serial()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMPlex.pyx | 2315 def constructGhostCells(self, labelName: str | None = None) -> int: 2322 labelName 2337 labelName = str2bytes(labelName, &cname)
|