NAMD
Public Member Functions | List of all members
MsmBlockMap Class Reference
Inheritance diagram for MsmBlockMap:

Public Member Functions

 MsmBlockMap (int lvl)
 
 MsmBlockMap (CkMigrateMessage *m)
 
int registerArray (CkArrayIndex &numElements, CkArrayID aid)
 
int procNum (int, const CkArrayIndex &idx)
 

Detailed Description

Definition at line 1658 of file ComputeMsm.C.

Constructor & Destructor Documentation

MsmBlockMap::MsmBlockMap ( int  lvl)
inline

Definition at line 1664 of file ComputeMsm.C.

1664  {
1665  mgrLocal = CProxy_ComputeMsmMgr::ckLocalBranch(
1666  CkpvAccess(BOCclass_group).computeMsmMgr);
1667 #ifdef MSM_NODE_MAPPING
1668  penum = mgrLocal->blockAssign.buffer();
1669 #else
1670  penum = 0;
1671 #endif
1672  level = lvl;
1673  }
msm::Array< int > blockAssign
Definition: ComputeMsm.C:484
const T * buffer() const
Definition: MsmMap.h:259
MsmBlockMap::MsmBlockMap ( CkMigrateMessage *  m)
inline

Definition at line 1674 of file ComputeMsm.C.

1674 { }

Member Function Documentation

int MsmBlockMap::procNum ( int  ,
const CkArrayIndex &  idx 
)
inline

Definition at line 1678 of file ComputeMsm.C.

1678  {
1679  int *pn = (int *)idx.data();
1680 #ifdef MSM_NODE_MAPPING
1681  int n = mgrLocal->blockFlatIndex(level, pn[0], pn[1], pn[2]);
1682  return penum[n];
1683 #else
1684  return 0;
1685 #endif
1686  }
int blockFlatIndex(int level, int i, int j, int k)
Definition: ComputeMsm.C:487
int MsmBlockMap::registerArray ( CkArrayIndex &  numElements,
CkArrayID  aid 
)
inline

Definition at line 1675 of file ComputeMsm.C.

1675  {
1676  return 0;
1677  }

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