<div dir="ltr"><div dir="ltr">Good Morning,<div><br></div><div>Is there a way to get the given "name" of a label if you have the DMLabel Object?</div><div><br></div><div>For instance, in my code I have a DM with a set of labels with given names (i.e. "boundary", "top", "bottom", etc.).  I've gotten the DMLabel Object by calling:</div><div><br></div><div>PetscCall(DMGetLabel(dm, "boundary", &boundLabel));<br></div><div><br></div><div>I've passed this object to a function. In the function, I would like to perform an if statement based on the name of the label. Is there a way to get the STRING name of the DMLabel from its object?</div><div><br></div><div>I'm looking to update the DMLabelPermuteValues() within PETSc to handle a special case associated with attached CAD objects. In this case, the IDs of the CAD use a 1-basis but the DMLabelPermuteValues() function uses the 0-basis for arrays. Since the CAD architecture is PETSc native, I think it would be best to incorporate this special case into DMLabelPermuteValues().</div><div><br></div><div>Thank you.<br></div><div>Brandon</div><div><br></div><div><br></div></div></div>