Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(facet_object), | intent(inout) | :: | lhs | Left hand side. |
||
| type(facet_object), | intent(in) | :: | rhs | Right hand side. |
pure subroutine facet_assign_facet(lhs, rhs)
!< Operator `=`.
class(facet_object), intent(inout) :: lhs !< Left hand side.
type(facet_object), intent(in) :: rhs !< Right hand side.
lhs%normal = rhs%normal
lhs%vertex_1 = rhs%vertex_1
lhs%vertex_2 = rhs%vertex_2
lhs%vertex_3 = rhs%vertex_3
lhs%E12 = rhs%E12
lhs%E13 = rhs%E13
lhs%a = rhs%a
lhs%b = rhs%b
lhs%c = rhs%c
lhs%d = rhs%d
lhs%det = rhs%det
lhs%bb = rhs%bb
lhs%id = rhs%id
lhs%fcon_edge_12 = rhs%fcon_edge_12
lhs%fcon_edge_23 = rhs%fcon_edge_23
lhs%fcon_edge_31 = rhs%fcon_edge_31
if (allocated(lhs%vertex_1_occurrence)) deallocate(lhs%vertex_1_occurrence)
if (allocated(rhs%vertex_1_occurrence)) lhs%vertex_1_occurrence = rhs%vertex_1_occurrence
if (allocated(lhs%vertex_2_occurrence)) deallocate(lhs%vertex_2_occurrence)
if (allocated(rhs%vertex_2_occurrence)) lhs%vertex_2_occurrence = rhs%vertex_2_occurrence
if (allocated(lhs%vertex_3_occurrence)) deallocate(lhs%vertex_3_occurrence)
if (allocated(rhs%vertex_3_occurrence)) lhs%vertex_3_occurrence = rhs%vertex_3_occurrence
endsubroutine facet_assign_facet