Skip to main content

IsNodeToElements

The IsNodeToElements method checks if the node-to-elements mapping has been initialized in the mesh.

Interface

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

Syntax

RESULT = mesh%IsNodeToElements()

Parameters

ParameterTypeIntentDescription
objCLASS(AbstractMesh_)INThe mesh object

Return Value

TypeDescription
LOGICAL(LGT)True if the node-to-elements mapping has been initialized

Description

IsNodeToElements returns whether the node-to-elements mapping has been initialized in the mesh. This mapping allows for finding all elements connected to a given node.

Implementation Details

The method returns the value of the internal flag isNodeToElementsInitiated.

Example Usage

TYPE(Mesh_) :: mesh

! Initialize mesh...

! Check if node-to-elements mapping is available
IF (mesh%IsNodeToElements()) THEN
! Use mapping directly
ELSE
! Need to initialize mapping first
CALL mesh%InitiateNodeToElements()
END IF