Definition at line 176 of file ComputePme.C.
PmePencilMap::PmePencilMap |
( |
int |
i_a, |
|
|
int |
i_b, |
|
|
int |
n_b, |
|
|
int |
n, |
|
|
int * |
d |
|
) |
| |
|
inline |
Definition at line 178 of file ComputePme.C.
179 : ia(i_a), ib(i_b), nb(n_b),
180 size(n), data(newcopyint(n,d)) {
virtual void PmePencilMap::populateInitial |
( |
int |
, |
|
|
CkArrayIndexMax & |
, |
|
|
void * |
msg, |
|
|
CkArrMgr * |
mgr |
|
) |
| |
|
inlinevirtual |
Definition at line 190 of file ComputePme.C.
References NAMD_bug().
192 for (
int i=0; i < size; ++i ) {
193 if ( data[i] == mype ) {
194 CkArrayIndex3D ai(0,0,0);
195 ai.data()[ia] = i / nb;
196 ai.data()[ib] = i % nb;
198 if ( ! msg )
NAMD_bug(
"PmePencilMap multiple pencils on a pe?");
199 mgr->insertInitial(ai,msg);
203 mgr->doneInserting();
204 if ( msg ) CkFreeMsg(msg);
void NAMD_bug(const char *err_msg)
virtual int procNum(int, const CkArrayIndex &i)
virtual int PmePencilMap::procNum |
( |
int |
, |
|
|
const CkArrayIndex & |
i |
|
) |
| |
|
inlinevirtual |
Definition at line 186 of file ComputePme.C.
188 return data[ i.data()[ia] * nb + i.data()[ib] ];
virtual int PmePencilMap::registerArray |
( |
CkArrayIndexMax & |
, |
|
|
CkArrayID |
|
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following file: