Create smoothness indicators.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smoothness_indicators), | intent(inout) | :: | self | Smoothness indicators. |
||
class(base_object_constructor), | intent(in) | :: | constructor | Smoothness indicators constructor. |
pure subroutine create(self, constructor)
!< Create smoothness indicators.
class(smoothness_indicators), intent(inout) :: self !< Smoothness indicators.
class(base_object_constructor), intent(in) :: constructor !< Smoothness indicators constructor.
call self%destroy
select type(constructor)
class is(smoothness_indicators_constructor)
allocate(self%si(1:2, 0:constructor%S - 1))
class default
! @TODO add error handling
endselect
self%si = 0._R_P
endsubroutine create