|
| PmePencilMap (int i_a, int i_b, int n_b, int n, int *d) |
|
virtual int | registerArray (CkArrayIndexMax &, CkArrayID) |
|
virtual int | procNum (int, const CkArrayIndex &i) |
|
virtual void | populateInitial (int, CkArrayIndexMax &, void *msg, CkArrMgr *mgr) |
|
Definition at line 196 of file ComputePme.C.
◆ PmePencilMap()
PmePencilMap::PmePencilMap |
( |
int |
i_a, |
|
|
int |
i_b, |
|
|
int |
n_b, |
|
|
int |
n, |
|
|
int * |
d |
|
) |
| |
|
inline |
Definition at line 198 of file ComputePme.C.
199 : ia(i_a), ib(i_b), nb(n_b),
200 size(n), data(newcopyint(n,d)) {
◆ populateInitial()
virtual void PmePencilMap::populateInitial |
( |
int |
, |
|
|
CkArrayIndexMax & |
, |
|
|
void * |
msg, |
|
|
CkArrMgr * |
mgr |
|
) |
| |
|
inlinevirtual |
Definition at line 210 of file ComputePme.C.
References NAMD_bug().
212 for (
int i=0; i < size; ++i ) {
213 if ( data[i] == mype ) {
214 CkArrayIndex3D ai(0,0,0);
215 ai.data()[ia] = i / nb;
216 ai.data()[ib] = i % nb;
218 if ( ! msg )
NAMD_bug(
"PmePencilMap multiple pencils on a pe?");
219 mgr->insertInitial(ai,msg);
223 mgr->doneInserting();
224 if ( msg ) CkFreeMsg(msg);
void NAMD_bug(const char *err_msg)
virtual int procNum(int, const CkArrayIndex &i)
◆ procNum()
virtual int PmePencilMap::procNum |
( |
int |
, |
|
|
const CkArrayIndex & |
i |
|
) |
| |
|
inlinevirtual |
Definition at line 206 of file ComputePme.C.
208 return data[ i.data()[ia] * nb + i.data()[ib] ];
◆ registerArray()
virtual int PmePencilMap::registerArray |
( |
CkArrayIndexMax & |
, |
|
|
CkArrayID |
|
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following file: