get_package Function

private pure function get_package(this, idx) result(package)

Return the package name of a colormap by its index.

Type Bound

Colormaps_info

Arguments

Type IntentOptional Attributes Name
class(Colormaps_info), intent(in) :: this
integer, intent(in) :: idx

Return Value character(len=colormap_name_length)


Source Code

   pure function get_package(this, idx) result(package)
      class(Colormaps_info), intent(in) :: this
      integer, intent(in) :: idx
      character(colormap_name_length) :: package
      package = trim(this%colormaps(idx)%package)
   end function get_package