Create alpha coefficients.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(alpha_coefficients), | intent(inout) | :: | self | Alpha coefficients. |
||
class(base_object_constructor), | intent(in) | :: | constructor | Alpha coefficients constructor. |
pure subroutine create(self, constructor)
!< Create alpha coefficients.
class(alpha_coefficients), intent(inout) :: self !< Alpha coefficients.
class(base_object_constructor), intent(in) :: constructor !< Alpha coefficients constructor.
call self%destroy
select type(constructor)
class is(alpha_coefficients_constructor)
allocate(self%alpha_coef(1:2, 0:constructor%S - 1))
class default
! @TODO add error handling
endselect
allocate(self%alpha_tot(1:2))
self%alpha_coef = 0._R_P
self%alpha_tot = 0._R_P
endsubroutine create