Skip to main content

IsBoundaryData

The IsBoundaryData method checks if the boundary data has been initialized in the mesh.

Interface​

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

Syntax​

RESULT = mesh%IsBoundaryData()

Parameters​

ParameterTypeIntentDescription
objCLASS(AbstractMesh_)INThe mesh object

Return Value​

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

Description​

IsBoundaryData returns whether the boundary data has been initialized in the mesh. Boundary data is essential for imposing boundary conditions and handling domain boundaries.

Implementation Details​

The method returns the value of the internal flag isBoundaryDataInitiated.

Example Usage​

TYPE(Mesh_) :: mesh

! Initialize mesh...

! Check if boundary data is available
IF (mesh%IsBoundaryData()) THEN
! Use boundary data directly
ELSE
! Need to initialize boundary data first
CALL mesh%InitiateBoundaryData()
END IF