CPL_scatter Subroutine

public subroutine CPL_scatter(scatterarray, npercell, limits, recvarray)

Arguments

Type IntentOptional AttributesName
real(kind=kind(0.d0)), intent(in), dimension(:,:,:,:):: scatterarray
integer, intent(in) :: npercell
integer, intent(in) :: limits(6)
real(kind=kind(0.d0)), intent(inout), dimension(:,:,:,:):: recvarray

Description

Scatter cell-wise data from CFD processor to corresponding MD processors on the overlap communicator CPL_OLAP_COMM.

  • Synopsis

  • CPL_scatter(scatterarray,npercell,limits,recvarray)

  • Input

  • scatterarray

  • assumed shape array of data to be scattered (real(kind(0.d0)))

  • limits

  • integer array of length 6, specifying the global cell extents of the region to be scattered, is the same on all processors.

  • npercell

  • number of data points per cell to be scattered (integer). Note: should be the same as size(scatterarray(1)) for CFD proc

  • Input/Output

  • recvarray
  • the array in which the scattered values are stored on the MD processors.

  • Output

  • NONE

@author David Trevelyan


Variables

TypeVisibility AttributesNameInitial
integer, public :: recvcount
integer, public, dimension(:), allocatable:: displs
integer, public, dimension(:), allocatable:: sendcounts
real(kind=kind(0.d0)), public, dimension(:), allocatable:: recvbuf
real(kind=kind(0.d0)), public, dimension(:), allocatable:: scatterbuf

Subroutines

subroutine prepare_scatterv_parameters()

Arguments

None

Description

subroutine pack_scatterbuf()

Arguments

None

Description

subroutine unpack_scatterbuf()

Arguments

None

Description

subroutine deallocate_scatter_s()

Arguments

None

Description


© 2015 Fortran Program was written by Edward Smith David Trevelyan.
Documentation generated by FORD.