Skip to content

Commit

Permalink
Updates in ReferenceElement
Browse files Browse the repository at this point in the history
- updating ReferenceLine and Reference Point methods
  • Loading branch information
shion committed Apr 15, 2024
1 parent b055314 commit 03c5b78
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/modules/Geometry/src/ReferencePoint_Method.F90
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ MODULE ReferencePoint_Method
PUBLIC :: Measure_Simplex_Point
PUBLIC :: Point_Quality
PUBLIC :: Quality_Point
PUBLIC :: TotalNodesInElement_Point

!----------------------------------------------------------------------------
! Initiate@Methods
Expand Down Expand Up @@ -220,6 +221,21 @@ MODULE FUNCTION Point_Quality(refelem, xij, measure) RESULT(Ans)
END FUNCTION Point_Quality
END INTERFACE Quality_Point

!----------------------------------------------------------------------------
! TotalNodesInElement_Point
!----------------------------------------------------------------------------

!> author: Shion Shimizu
! date: 2024-04-14
! summary: Returns total nodes in element

INTERFACE
MODULE FUNCTION TotalNodesInElement_Point(elemType) RESULT(Ans)
INTEGER(I4B), INTENT(IN) :: elemType
INTEGER(I4B) :: Ans
END FUNCTION TotalNodesInElement_Point
END INTERFACE

!----------------------------------------------------------------------------
!
!----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/modules/GlobalData/src/GlobalData.F90
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ MODULE GlobalData
INTEGER(I4B), PARAMETER :: Pyramid13 = 19
INTEGER(I4B), PARAMETER :: Point = 15
INTEGER(I4B), PARAMETER :: Point1 = 15
INTEGER(I4B), PARAMETER :: Line1 = 15
! Read material data from ?
INTEGER(I4B), PARAMETER :: PhysicalTag = 1
INTEGER(I4B), PARAMETER :: GeometryTag = 2
Expand Down
3 changes: 2 additions & 1 deletion src/submodules/Geometry/src/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
USE ErrorHandling, ONLY: Errormsg
USE Display_Method

USE ReferencePoint_Method, ONLY: Measure_Simplex_Point, Point_quality
USE ReferencePoint_Method, ONLY: Measure_Simplex_Point, Point_quality, &
& TotalNodesInElement_Point
USE ReferenceLine_Method, ONLY: Measure_Simplex_Line, &
& Line_quality, &
& TotalNodesInElement_Line, &
Expand Down
2 changes: 2 additions & 0 deletions src/submodules/Geometry/src/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@

MODULE PROCEDURE TotalNodesInElement_Line
SELECT CASE (ElemType)
CASE (Line1)
ans = 1
CASE (Line2)
ans = 2
CASE (Line3)
Expand Down
13 changes: 13 additions & 0 deletions src/submodules/Geometry/src/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,17 @@
ans = 0.0_DFP
END PROCEDURE Point_Quality

!----------------------------------------------------------------------------
! TotalNodesInElement
!----------------------------------------------------------------------------

MODULE PROCEDURE TotalNodesInElement_Point
SELECT CASE (elemType)
CASE (Point)
ans = 1
CASE default
ans = 0
END SELECT
END PROCEDURE TotalNodesInElement_Point

END SUBMODULE Methods

0 comments on commit 03c5b78

Please sign in to comment.