Jpetra Development
Public Member Functions
Jpetra::CcjSupport::CcjGatherSerializableArray Class Reference
Collaboration diagram for Jpetra::CcjSupport::CcjGatherSerializableArray:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CcjGatherSerializableArray (int groupSize)
void setElementAt (int index, int groupSize, Serializable object)
Serializable elementAt (int index, int groupSize)
Serializable[] getAllElements ()
Serializable[][] getAllElements2dArray ()

Detailed Description

Used by CCJ to collect all the allElements together during a allGather call. Implements the CCJ interface Partitionable.

Author:
Jason Cross

Constructor & Destructor Documentation

Jpetra::CcjSupport::CcjGatherSerializableArray::CcjGatherSerializableArray ( int  groupSize) [inline]

Creates a new CcjGatherIntArray.

Parameters:
groupSizenumber of processes in the group

Member Function Documentation

Serializable Jpetra::CcjSupport::CcjGatherSerializableArray::elementAt ( int  index,
int  groupSize 
) [inline]

Used internally by CCJ.

Parameters:
indexprocess ID or rank
groupSizenumber of processes in the group
Returns:
ArrayList from process with this index
Serializable [] Jpetra::CcjSupport::CcjGatherSerializableArray::getAllElements ( ) [inline]

Takes all second degree elements of allElements and joins them into one int array.

Returns:
all arrays from all proceses put in order by process into one int array

the size of the int array to be returned

tracks the position of returnResults when performing the joining of allElements

contains the contiguous list of values to be returned

void Jpetra::CcjSupport::CcjGatherSerializableArray::setElementAt ( int  index,
int  groupSize,
Serializable  object 
) [inline]

Used internally by CCJ.

Parameters:
indexprocess ID or rank
groupSizenumber of processes in the group
objectobject being added to allElements[index]

The documentation for this class was generated from the following file:
 All Classes Functions Variables