Cell object class.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(vector), | public | :: | center | Cell center. |
|||
real(kind=R8P), | public | :: | volume | = | 0._R8P | Cell volume. |
Overload =
.
Operator =
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cell_object), | intent(inout) | :: | lhs | Left hand side. |
||
type(cell_object), | intent(in) | :: | rhs | Right hand side. |
Operator =
.
Operator =
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cell_object), | intent(inout) | :: | lhs | Left hand side. |
||
type(cell_object), | intent(in) | :: | rhs | Right hand side. |
Destroy cell.
Destroy cell.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cell_object), | intent(inout) | :: | self | Cell object. |
Initialize cell.
Initialize cell.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cell_object), | intent(inout) | :: | self | Cell object. |
type :: cell_object
!< Cell object class.
type(vector) :: center !< Cell center.
real(R8P) :: volume=0._R8P !< Cell volume.
contains
! public methods
procedure, pass(self) :: destroy !< Destroy cell.
procedure, pass(self) :: initialize !< Initialize cell.
! operators
generic :: assignment(=) => cell_assign_cell !< Overload `=`.
! private methods
procedure, pass(lhs) :: cell_assign_cell !< Operator `=`.
endtype cell_object