Overloads the default type constructor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | length |
pure type(array1d) function array1d_constructor(length) result(a)
!! Overloads the default type constructor.
integer(ik), intent(in) :: length
allocate(a % array(length))
a % array = 0
end function array1d_constructor