Return the edge of connection in the other reference.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(facet_object), | intent(in) | :: | self | Facet. |
||
| type(facet_object), | intent(in) | :: | other | Other facet. |
||
| character(len=*), | intent(out) | :: | edge_dir | Edge (in other numeration) along which self is connected. |
||
| type(vector_R8P), | intent(out) | :: | edge | Edge (in other numeration) along which self is connected. |
pure subroutine edge_connection_in_other_ref(self, other, edge_dir, edge)
!< Return the edge of connection in the other reference.
class(facet_object), intent(in) :: self !< Facet.
type(facet_object), intent(in) :: other !< Other facet.
character(*), intent(out) :: edge_dir !< Edge (in other numeration) along which self is connected.
type(vector_R8P), intent(out) :: edge !< Edge (in other numeration) along which self is connected.
if (other%fcon_edge_12 == self%id) then
edge_dir = 'edge_12'
edge = other%vertex_2 - other%vertex_1
elseif (other%fcon_edge_23 == self%id) then
edge_dir = 'edge_23'
edge = other%vertex_3 - other%vertex_2
elseif (other%fcon_edge_31 == self%id) then
edge_dir = 'edge_31'
edge = other%vertex_1 - other%vertex_3
endif
endsubroutine edge_connection_in_other_ref