Sets the sample type used in allocation of polymorphic variables.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ResPart_set), | intent(inout) | :: | this |
Set of resolved particles |
pure subroutine ResPart_set_SetObjectType(this) !> Sets the sample type used in allocation of polymorphic variables. implicit none class(ResPart_set), intent(inout) :: this !! Set of resolved particles ! Work variables type(ResPart_obj) :: sample !! My sample allocate (this%sample,source=sample) return end subroutine ResPart_set_SetObjectType