col_constructor_integer Subroutine

private subroutine col_constructor_integer(this, dcol)

Type Bound

column

Arguments

Type IntentOptional Attributes Name
class(column), intent(inout) :: this
integer(kind=ik), intent(in), dimension(:) :: dcol

Source Code

    subroutine col_constructor_integer(this, dcol)
        class(column), intent(inout) :: this
        integer(ik), dimension(:), intent(in) :: dcol

        if (this % initialized) call this % destroy()
        this % initialized = .true.

        this % dtype = INTEGER_NUM
        this % n = size(dcol, dim=1)
        allocate (this % icol(this % n))
        this % icol = dcol

    end subroutine col_constructor_integer