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