GathervKernel Derived Type

type, public :: GathervKernel


Components

Type Visibility Attributes Name Initial
integer, public :: comm
integer, public, allocatable :: displs(:)
integer, public :: n
integer, public :: np
integer, public :: rank
integer, public, allocatable :: recvcnts(:)
real, public, allocatable :: buffer(:)

Constructor

public interface GathervKernel

  • private function new_GathervKernel(n, comm) result(kernel)

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: n
    integer, intent(in) :: comm

    Return Value type(GathervKernel)


Type-Bound Procedures

procedure, public :: init

  • private subroutine init(this, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(GathervKernel), intent(inout) :: this
    integer, intent(out), optional :: rc

procedure, public :: run

  • private subroutine run(this, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(GathervKernel), intent(in) :: this
    integer, intent(out), optional :: rc

Source Code

   type :: GathervKernel
      integer :: n
      integer :: comm
      integer :: rank
      integer :: np
      real, allocatable :: buffer(:)
      integer, allocatable :: displs(:)
      integer, allocatable :: recvcnts(:)
   contains
      procedure :: init
      procedure :: run
   end type GathervKernel