make_GathervKernel Function

public function make_GathervKernel(spec, comm, rc) result(kernel)

Arguments

Type IntentOptional Attributes Name
type(GathervSpec), intent(in) :: spec
integer, intent(in) :: comm
integer, intent(out), optional :: rc

Return Value type(GathervKernel)


Calls

proc~~make_gathervkernel~~CallsGraph proc~make_gathervkernel make_GathervKernel mpi_comm_size mpi_comm_size proc~make_gathervkernel->mpi_comm_size none~init~7 GathervKernel%init proc~make_gathervkernel->none~init~7 proc~mapl_return MAPL_Return proc~make_gathervkernel->proc~mapl_return proc~mapl_verify MAPL_Verify proc~make_gathervkernel->proc~mapl_verify none~init~7->mpi_comm_size none~init~7->proc~mapl_return none~init~7->proc~mapl_verify interface~mapl_assert MAPL_Assert none~init~7->interface~mapl_assert mpi_comm_rank mpi_comm_rank none~init~7->mpi_comm_rank at at proc~mapl_return->at insert insert proc~mapl_return->insert proc~mapl_throw_exception MAPL_throw_exception proc~mapl_return->proc~mapl_throw_exception proc~mapl_verify->proc~mapl_throw_exception

Called by

proc~~make_gathervkernel~~CalledByGraph proc~make_gathervkernel make_GathervKernel proc~run~10 run proc~run~10->proc~make_gathervkernel program~main~6 main program~main~6->proc~run~10

Source Code

   function make_GathervKernel(spec, comm, rc) result(kernel)
      type(GathervKernel) :: kernel
      type(GathervSpec), intent(in) :: spec
      integer, intent(in) :: comm
      integer, optional, intent(out) :: rc

      integer :: status
      integer :: npes
      integer :: n

      call MPI_Comm_size(MPI_COMM_WORLD, npes, status)
      _VERIFY(status)
      n = int(spec%nx,kind=INT64)**2 * 6 * spec%n_levs / npes

      kernel = GathervKernel(n, comm)
      call kernel%init(_RC)

      _RETURN(_SUCCESS)
   end function make_GathervKernel