Return the number of levels for a given index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
pure function get_levels(this, idx) result(levels) class(Colormaps_info), intent(in) :: this integer, intent(in) :: idx integer :: levels levels = this%colormaps(idx)%levels end function get_levels