Skip to content

Commit

Permalink
Merge pull request #318 from easifem/pointEntity_issue
Browse files Browse the repository at this point in the history
Updates in ReferenceElement_Method
  • Loading branch information
vickysharma0812 authored Jun 23, 2024
2 parents 4dd82f5 + 5613aa3 commit ca818a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/Geometry/src/ReferencePoint_Method.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/submodules/Geometry/src/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -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, &
Expand Down Expand Up @@ -308,6 +310,10 @@

SELECT CASE (topo)

CASE (Point)

ans = TotalNodesInElement_Point(elemType)

CASE (Line)

ans = TotalNodesInElement_Line(elemType)
Expand Down

0 comments on commit ca818a2

Please sign in to comment.