34 double StartTime=CmiWallTimer();
37 int *index=(
int *) iIndex.data();
41 CkPrintf(
"Warning! GSMap::procnum had to assign maptable on pe %d!\n",CkMyPe());
43 maptable= &GSImaptable;
45 maptable= &GSmaptable;
51 int retval=maptable->get(index[0],index[1]);
53 int retval=maptable->get(
intdual(index[0],index[1]));
56 traceUserBracketEvent(10000, StartTime, CmiWallTimer());
72 double StartTime=CmiWallTimer();
80 CkPrintf(
"Warning! SCalc::Procnum had to assign maptable on %d !\n",CkMyPe());
83 maptable= &SymScalcImaptable;
85 maptable= &AsymScalcImaptable;
88 maptable= &SymScalcmaptable;
90 maptable= &AsymScalcmaptable;
95 short *sindex=(
short *) iIndex.data();
96 int retval=maptable->get(sindex[0], sindex[1], sindex[2], sindex[3]);
98 int *index=(
int *) iIndex.data();
99 int retval=maptable->get(
intdual(index[0], index[1]));
101 #if CMK_TRACE_ENABLED
102 traceUserBracketEvent(30000, StartTime, CmiWallTimer());
113 #if CMK_TRACE_ENABLED
114 double StartTime=CmiWallTimer();
117 int *index=(
int *) iIndex.data();
121 CkPrintf(
"Warning! RSMap::Procnum had to assign maptable on %d!\n",CkMyPe());
123 maptable= &RSImaptable;
125 maptable= &RSmaptable;
131 int retval=maptable->get(index[0], index[1]);
133 int retval=maptable->get(
intdual(index[0], index[1]));
135 #if CMK_TRACE_ENABLED
136 traceUserBracketEvent(20000, StartTime, CmiWallTimer());
143 int RSPMap::procNum(
int handle,
const CkArrayIndex &index)
145 CkArrayIndex2D idx2d = *(CkArrayIndex2D *) &index;
150 CkPrintf(
"Warning! RSMap::Procnum had to assign maptable on %d!\n",CkMyPe());
152 maptable= &RSPImaptable;
154 maptable= &RSPmaptable;
160 int retval=maptable->get(idx2d.index[0], idx2d.index[1]);
162 int retval=maptable->get(
intdual(idx2d.index[0], idx2d.index[1]));
175 int *index=(
int *) iIndex.data();
179 CkPrintf(
"Warning! RhoRSMap::Procnum had to assign maptable on %d!\n",CkMyPe() );
181 maptable= &RhoRSImaptable;
183 maptable= &RhoRSmaptable;
188 int retval=maptable->get(index[0], 0);
190 int retval=maptable->get(
intdual(index[0], 0));
197 int RhoGSMap::procNum(
int arrayHdl,
const CkArrayIndex &iIndex)
199 int *index=(
int *) iIndex.data();
202 CkPrintf(
"Warning! RhoGSMap::Procnum had to assign maptable on %d!\n",CkMyPe() );
204 maptable= &RhoGSImaptable;
206 maptable= &RhoGSmaptable;
210 int retval=maptable->get(index[0], 0);
212 int retval=maptable->get(
intdual(index[0], 0));
215 CkAssert(retval<CkNumPes());
221 int RhoGHartMap::procNum(
int arrayHdl,
const CkArrayIndex &iIndex)
223 int *index=(
int *) iIndex.data();
226 CkPrintf(
"Warning! RhoGHartMap::Procnum had to assign maptable on %d!\n",CkMyPe() );
228 maptable= &RhoGHartImaptable;
230 maptable= &RhoGHartmaptable;
235 int retval=maptable->get(index[0], 0);
237 int retval=maptable->get(
intdual(index[0], 0));
240 CkAssert(retval<CkNumPes());
245 int RhoRHartMap::procNum(
int arrayHdl,
const CkArrayIndex &idx)
247 CkArrayIndex2D idx2d = *(CkArrayIndex2D *) &idx;
250 CkPrintf(
"Warning! RhoRHartMap::Procnum had to assign maptable on %d!\n",CkMyPe() );
252 maptable= &RhoRHartImaptable;
254 maptable= &RhoRHartmaptable;
259 int retval=maptable->get(idx2d.index[0], 0);
261 int retval=maptable->get(
intdual(idx2d.index[0], 0));
264 CkAssert(retval<CkNumPes());
int procNum(int, const CkArrayIndex &iIndex)
this one uses a lookup table built by calling the slow version
int procNum(int, const CkArrayIndex &iIndex)
New functions beind added for the topology mapping of the density objects - RhoR, RhoG...
int procNum(int, const CkArrayIndex &iIndex)
int GSMap::slowprocNum(int arrayHdl, const CkArrayIndex2D &idx2d)
Some basic data structures and the array map classes are defined here.
int procNum(int, const CkArrayIndex &iIndex)
Function for RealSpace objects.
Author: Eric J Bohm Date Created: May 31, 2006.