Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates in ReferenceElement #303

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading