From 5613aa347bfe7419eba08d7598723906d78887f7 Mon Sep 17 00:00:00 2001 From: shion Date: Wed, 5 Jun 2024 14:36:54 +0900 Subject: [PATCH] Updates in ReferenceElement_Method - fixing the issue related to point entitiy of mesh --- src/modules/Geometry/src/ReferencePoint_Method.F90 | 2 +- .../src/ReferenceElement_Method@ElementNameMethods.F90 | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/Geometry/src/ReferencePoint_Method.F90 b/src/modules/Geometry/src/ReferencePoint_Method.F90 index 1ef7a39c..b2a38d05 100644 --- a/src/modules/Geometry/src/ReferencePoint_Method.F90 +++ b/src/modules/Geometry/src/ReferencePoint_Method.F90 @@ -230,7 +230,7 @@ END FUNCTION Point_Quality ! summary: Returns total nodes in element INTERFACE - MODULE FUNCTION TotalNodesInElement_Point(elemType) RESULT(Ans) + MODULE PURE FUNCTION TotalNodesInElement_Point(elemType) RESULT(Ans) INTEGER(I4B), INTENT(IN) :: elemType INTEGER(I4B) :: Ans END FUNCTION TotalNodesInElement_Point diff --git a/src/submodules/Geometry/src/ReferenceElement_Method@ElementNameMethods.F90 b/src/submodules/Geometry/src/ReferenceElement_Method@ElementNameMethods.F90 index 1821c80f..b3f593d7 100644 --- a/src/submodules/Geometry/src/ReferenceElement_Method@ElementNameMethods.F90 +++ b/src/submodules/Geometry/src/ReferenceElement_Method@ElementNameMethods.F90 @@ -20,6 +20,8 @@ ! summary: This sumodule contains method for geometry SUBMODULE(ReferenceElement_Method) ElementNameMethods +USE ReferencePoint_Method, ONLY: TotalNodesInElement_Point + USE ReferenceLine_Method, ONLY: ElementType_Line, & & TotalNodesInElement_Line, & & ElementName_Line, & @@ -308,6 +310,10 @@ SELECT CASE (topo) +CASE (Point) + + ans = TotalNodesInElement_Point(elemType) + CASE (Line) ans = TotalNodesInElement_Line(elemType)