Skip to main content

IsEdgeConnectivity

The IsEdgeConnectivity method checks if the edge connectivity information has been initialized in the mesh.

Interface​

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

Syntax​

RESULT = mesh%IsEdgeConnectivity()

Parameters​

ParameterTypeIntentDescription
objCLASS(AbstractMesh_)INThe mesh object

Return Value​

TypeDescription
LOGICAL(LGT)True if the edge connectivity has been initialized

Description​

IsEdgeConnectivity returns whether the edge connectivity information has been initialized in the mesh. Edge connectivity is essential for higher-order elements and certain numerical methods.

Implementation Details​

The method returns the value of the internal flag isEdgeConnectivityInitiated.

Example Usage​

TYPE(Mesh_) :: mesh

! Initialize mesh...

! Check if edge connectivity is available
IF (mesh%IsEdgeConnectivity()) THEN
! Use edge connectivity directly
ELSE
! Need to initialize edge connectivity first
CALL mesh%InitiateEdgeConnectivity()
END IF