Skip to main content

IsFaceConnectivity

The IsFaceConnectivity method checks if the face connectivity information has been initialized in the mesh.

Interface​

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

Syntax​

RESULT = mesh%IsFaceConnectivity()

Parameters​

ParameterTypeIntentDescription
objCLASS(AbstractMesh_)INThe mesh object

Return Value​

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

Description​

IsFaceConnectivity returns whether the face connectivity information has been initialized in the mesh. Face connectivity is essential for 3D meshes and certain numerical methods.

Implementation Details​

The method returns the value of the internal flag isFaceConnectivityInitiated.

Example Usage​

TYPE(Mesh_) :: mesh

! Initialize mesh...

! Check if face connectivity is available
IF (mesh%IsFaceConnectivity()) THEN
! Use face connectivity directly
ELSE
! Need to initialize face connectivity first
CALL mesh%InitiateFaceConnectivity()
END IF