37 inttriple(
int _x,
int _y,
int _z) : x(_x), y(_y), z(_z) {}
44 inline int getx()
const {
return x;};
45 inline int gety()
const {
return y;};
46 inline int getz()
const {
return z;};
49 inline CkHashCode hash()
const {
50 return (CkHashCode)((x<<16)|(y<<8)|z);
52 static CkHashCode staticHash(
const void *k,
size_t){
56 return (t.getx() == x && t.gety() == y && t.getz() ==z);
58 static int staticCompare(
const void *a,
const void *b,
size_t){
70 intdual(
int _x,
int _y) : x(_x), y(_y){}
76 inline int getx(){
return x;};
77 inline int gety(){
return y;};
78 inline CkHashCode hash()
const {
79 return (CkHashCode)((x<<10)|y);
81 static CkHashCode staticHash(
const void *k,
size_t){
84 inline int compare(
intdual &t)
const{
85 return (t.getx() == x && t.gety() == y);
87 static int staticCompare(
const void *a,
const void *b,
size_t){
107 CkVec <int> *reverseMap;
118 delete [] reverseMap;
120 void makeReverseMap();
130 return(reverseMap[proc]);
153 CkVec <intdual> *reverseMap;
164 delete [] reverseMap;
166 void makeReverseMap();
176 return(reverseMap[proc]);
194 CkVec <inttriple> *reverseMap;
205 delete [] reverseMap;
207 void makeReverseMap();
217 return(reverseMap[proc]);
241 CkVec <intdual> *reverseMap;
252 delete [] reverseMap;
254 void makeReverseMap();
264 return(reverseMap[proc]);
272 PeList *subListState2(
int state1,
int state2,
int nplanes,
int numChunks,
MapType4 *smap);
299 int _nchareG,
int _nstates,
int _Gstates_per_pe,
bool useCuboidMap,
int numInst,
300 int offsetX,
int offsetY,
int offsetZ);
312 int max_states, nchareG, grainsize;
322 int _nchareG,
int gs,
bool _flag,
int _scalc_per_plane,
323 int _planes_per_pe,
int _numChunksA,
int _numChunksS,
MapType2 *_gmap,
bool useCuboidMap,
bool useCentroid,
int boxSize);
329 void sortByCentroid(
PeList *avail,
int plane,
int stateX,
int stateY,
int grainsize,
MapType2 *gsmap);
340 int _nstates,
int _sizeZ,
int _Rstates_per_pe,
bool useCuboidMap,
MapType2 *gsmap,
341 int nchareG,
int numInst,
int offsetX,
int offsetY,
int offsetZ);
354 PeList *exclude,
int _nstates,
int _sizeZNL,
355 int _Rstates_per_pe,
int boxSize,
bool useCuboidMap,
369 void sortByCentroid(
PeList *avail,
int nplanes,
int state1,
int state2,
int numChunks,
MapType4 *smap);
370 int minDistCentroid(
PeList *avail,
int nplanes,
int state1,
int state2,
int numChunks,
MapType4 *smap);
389 int _nchareRhoR,
int _rhoRsubplanes,
int maxstates,
bool useCentroid,
MapType2 *rsmap,
PeList *exclude);
390 void sortByCentroid(
PeList *avail,
int plane,
int nstates,
MapType2 *rsmap);
401 int _nchareRhoR,
int _rhoRsubplanes,
int _nchareVdW,
int maxstates,
PeList *exclude);
411 int _nchareRhoG,
int _nchareVdW,
PeList *exclude);
422 int _nchareRhoRHart,
int rhoRsubplanes,
int _nchareHartAtmT,
432 int _nchareRhoGHart,
int _nchareHartAtmT,
int useCentroid,
442 int _nchareRhoG,
bool useCentroid,
MapType2 *rhorsmap,
PeList *exclude);
CkVec< intdual > ProcByArrIndex(int proc)
return ckvec containing the reverse map of all elements on given proc
CkVec< intdual > ProcByArrIndex(int proc)
return ckvec containing the reverse map of all elements on given proc
Author: Eric J Bohm Date Created: June 4th, 2006.
int getCentroid(int torusMap)
return processor at topological center of this list
CkVec< inttriple > ProcByArrIndex(int proc)
return ckvec containing the reverse map of all elements on given proc
int getCentroid(int torusMap)
return processor at topological center of this list
int getCentroid(int torusMap)
return processor at topological center of this list
CkVec< int > ProcByArrIndex(int proc)
return ckvec containing the reverse map of all elements on given proc