DataExchanger Class Reference

#include <DataExchanger.h>

List of all members.

Public Types

enum  { TREE_WIDTH = 2 }

Public Member Functions

 DataExchanger ()
 ~DataExchanger (void)

Public Attributes

 DataExchanger_SDAG_CODE
int loop
int recvred
int sendbcast
int numChildren
int firstChild
int parent
int recv_data_idx
int recv_ack_idx
int recv_bcast_idx
int recv_red_idx
int recv_eval_command_idx
int recv_eval_result_idx

Detailed Description

Definition at line 58 of file DataExchanger.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
TREE_WIDTH 

Definition at line 66 of file DataExchanger.h.

00066 { TREE_WIDTH=2};


Constructor & Destructor Documentation

DataExchanger::DataExchanger (  ) 

Definition at line 288 of file DataExchanger.C.

References firstChild, numChildren, parent, recv_ack_idx, recv_bcast_idx, recv_data_idx, recv_eval_command_idx, recv_eval_result_idx, recv_red_idx, and TREE_WIDTH.

00289 {
00290   CpvInitialize(int, breakScheduler);
00291   CpvAccess(breakScheduler) = 1;
00292   CpvInitialize(int, inEval);
00293   CpvAccess(inEval) = 0;
00294   if(CmiMyPartition() == 0) 
00295     parent = -1;
00296   else 
00297     parent = (CmiMyPartition()+1)/TREE_WIDTH - 1;
00298   firstChild = (CmiMyPartition()+1)*TREE_WIDTH - 1;
00299   numChildren = CmiNumPartitions() - firstChild;
00300   if(numChildren > TREE_WIDTH)
00301     numChildren = TREE_WIDTH;
00302   
00303   recv_data_idx = CkpvAccess(recv_data_idx);
00304   recv_ack_idx = CkpvAccess(recv_ack_idx);
00305   recv_red_idx = CkpvAccess(recv_red_idx);
00306   recv_bcast_idx = CkpvAccess(recv_bcast_idx);
00307   recv_eval_command_idx = CkpvAccess(recv_eval_command_idx);
00308   recv_eval_result_idx = CkpvAccess(recv_eval_result_idx);
00309 }

DataExchanger::~DataExchanger ( void   ) 

Definition at line 312 of file DataExchanger.C.

00313 { }


Member Data Documentation

Definition at line 61 of file DataExchanger.h.

Definition at line 67 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 65 of file DataExchanger.h.

Definition at line 67 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 67 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 71 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 72 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 70 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 74 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 75 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 73 of file DataExchanger.h.

Referenced by DataExchanger().

Definition at line 65 of file DataExchanger.h.

Definition at line 65 of file DataExchanger.h.


The documentation for this class was generated from the following files:

Generated on 8 Dec 2019 for NAMD by  doxygen 1.6.1