linux_nodes Derived Type

type, private :: linux_nodes


Inherits

type~~linux_nodes~~InheritsGraph type~linux_nodes linux_nodes type~linux_cpu linux_cpu type~linux_nodes->type~linux_cpu cpu

Inherited by

type~~linux_nodes~~InheritedByGraph type~linux_nodes linux_nodes type~cluster cluster type~cluster->type~linux_nodes node

Contents

Source Code


Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: debug
character(len=:), public, allocatable :: path_node
type(linux_cpu), public, dimension(:), allocatable :: cpu
integer, public :: ncpus
character(len=:), public, allocatable :: turbo
integer, public :: is_intel_pstate

Type-Bound Procedures

procedure, public, :: set_debug => set_node_debug_switch

  • private pure elemental subroutine set_node_debug_switch(this, debug)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_nodes), intent(inout) :: this
    character(len=*), intent(in) :: debug

procedure, public, :: select => select_node

  • private impure elemental subroutine select_node(this)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_nodes), intent(inout) :: this

procedure, private :: find_number_of_cpus

  • private impure elemental subroutine find_number_of_cpus(this)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_nodes), intent(inout) :: this

procedure, private :: is_intel_pstate_available

  • private impure elemental subroutine is_intel_pstate_available(this)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_nodes), intent(inout) :: this

procedure, public, :: get_turbo => get_intel_turbo

  • private impure elemental subroutine get_intel_turbo(this, turbo)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_nodes), intent(inout) :: this
    character(len=*), intent(out), optional :: turbo

procedure, public, :: set_turbo => set_intel_turbo

  • private impure elemental subroutine set_intel_turbo(this, turbo)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_nodes), intent(inout) :: this
    character(len=*), intent(in) :: turbo

procedure, public, :: deselect => deallocate_linux_nodes

  • private pure elemental subroutine deallocate_linux_nodes(this)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_nodes), intent(inout) :: this

Source Code

   type :: linux_nodes
      character(len=:),               allocatable :: debug
      character(len=:),               allocatable :: path_node
      type(linux_cpu),  dimension(:), allocatable :: cpu
      integer                                     :: ncpus
      character(len=:),               allocatable :: turbo
      integer                                     :: is_intel_pstate
   contains
      procedure          :: set_debug                 => set_node_debug_switch
      procedure          :: select                    => select_node
      procedure, private :: find_number_of_cpus
      procedure, private :: is_intel_pstate_available
      procedure          :: get_turbo                 => get_intel_turbo
      procedure          :: set_turbo                 => set_intel_turbo

      procedure          :: deselect                  => deallocate_linux_nodes
   end type linux_nodes