Lines Matching refs:hasLabel
7209 PetscErrorCode DMHasLabel(DM dm, const char name[], PetscBool *hasLabel) in DMHasLabel() argument
7217 PetscAssertPointer(hasLabel, 3); in DMHasLabel()
7218 *hasLabel = PETSC_FALSE; in DMHasLabel()
7221 PetscCall(PetscStrcmp(name, lname, hasLabel)); in DMHasLabel()
7222 if (*hasLabel) break; in DMHasLabel()
7256 PetscBool hasLabel; in DMGetLabel() local
7266 PetscCall(PetscStrcmp(name, lname, &hasLabel)); in DMGetLabel()
7267 if (hasLabel) { in DMGetLabel()
7327 PetscBool hasLabel; in DMAddLabel() local
7334 PetscCall(DMHasLabel(dm, lname, &hasLabel)); in DMAddLabel()
7335 …PetscCheck(!hasLabel, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Label %s already exists in this … in DMAddLabel()
7374 PetscBool hasLabel, flg; in DMSetLabel() local
7383 PetscCall(PetscStrcmp(name, lname, &hasLabel)); in DMSetLabel()
7384 if (hasLabel) { in DMSetLabel()
7419 PetscBool hasLabel; in DMRemoveLabel() local
7431 PetscCall(PetscStrcmp(name, lname, &hasLabel)); in DMRemoveLabel()
7432 if (hasLabel) { in DMRemoveLabel()
7434 PetscCall(PetscStrcmp(name, "depth", &hasLabel)); in DMRemoveLabel()
7435 if (hasLabel) dm->depthLabel = NULL; in DMRemoveLabel()
7436 PetscCall(PetscStrcmp(name, "celltype", &hasLabel)); in DMRemoveLabel()
7437 if (hasLabel) dm->celltypeLabel = NULL; in DMRemoveLabel()
7469 PetscBool hasLabel = PETSC_FALSE; in DMRemoveLabelBySelf() local
7479 hasLabel = PETSC_TRUE; in DMRemoveLabelBySelf()
7489 …PetscCheck(hasLabel || !failNotFound, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, "Give… in DMRemoveLabelBySelf()