Skip to main content

IsFacetData

The IsFacetData method checks if the facet data has been initialized in the mesh.

Interface​

INTERFACE
MODULE FUNCTION isFacetData(obj) RESULT(ans)
CLASS(AbstractMesh_), INTENT(in) :: obj
LOGICAL(LGT) :: ans
END FUNCTION isFacetData
END INTERFACE

Syntax​

RESULT = mesh%IsFacetData()

Parameters​

ParameterTypeIntentDescription
objCLASS(AbstractMesh_)INThe mesh object

Return Value​

TypeDescription
LOGICAL(LGT)True if the facet data has been initialized

Description​

IsFacetData returns whether the facet data has been initialized in the mesh. Facet data is important for handling interfaces between elements and domain boundaries.

Implementation Details​

The method returns the value of the internal flag isFacetDataInitiated.

Example Usage​

TYPE(Mesh_) :: mesh

! Initialize mesh...

! Check if facet data is available
IF (mesh%IsFacetData()) THEN
! Use facet data directly
ELSE
! Need to initialize facet data first
CALL mesh%InitiateFacetElements()
END IF