52 static inline void updateCell(
double *myself,
double up,
double down,
double left,
double right ) {
53 *myself = ( up + down + left + right ) / 4;
73 HitTile root = *hit_tileRoot( &tileMat );
102 #ifdef WRITE_TILE_FILES
104 sprintf(name,
"Matrix.%d",
hit_Rank );
113 int main(
int argc,
char *argv[]) {
117 int rows, columns, numIter;
120 fprintf(stderr,
"\nUsage: %s <numRows> <numColumns> <numIterations>\n", argv[0]);
123 rows = atoi( argv[1] );
124 columns = atoi( argv[2] );
125 numIter = atoi( argv[3] );
137 HitTile_double matrix;
150 HitTile_double tileMat, tileCopy;
216 for (loopIndex = 0; loopIndex < numIter-1; loopIndex++) {
262 HitTile root = *hit_tileRoot( &tileMat );
263 HitTile_double outputTile;
#define hit_shape(nd,...)
#define hit_layShape(lay)
#define hit_comTagSet(...)
#define hit_tileNewType(baseType)
#define hit_tileFileWrite(var, file, coord)
#define hit_clockSynchronizeAll()
#define hit_tileFill(var, value)
HitShape hit_shapeExpand(HitShape shape, int dims, int offset)
#define hit_tileElemAt(var, ndims,...)
HitCom hit_comSendRecvSelectTag(HitLayout lay, HitRanks sendTo, const void *tilePSend, HitShape selectionSend, int modeSelectSend, HitRanks receiveFrom, const void *tilePRecv, HitShape selectionRecv, int modeSelectRecv, HitType baseType, int tag)
#define hit_dumpTileFile(var, prefix, comment)
#define hit_tileDimSig(var, dim)
#define hit_clockContinue(c)
void initMatrix(HitTile_double tileMat)
#define hit_tileAlloc(var)
#define hit_topology(name,...)
#define hit_sigIn(sig, ind)
#define hit_tileSelect(newVar, oldVar, shape)
#define HIT_PAT_UNORDERED
void hit_patternAdd(HitPattern *pattern, HitCom comm)
#define hit_clockPrintMax(c)
#define hit_tileDimCard(var, dim)
#define hit_tileFileRead(var, file, coord)
#define hit_tileUpdateFromAncestor(shadow)
#define hit_tileDimBegin(var, dim)
#define hit_clockReset(c)
#define hit_tileTextFileWrite(var, file, coord, datatype, s1, s2)
void hit_topFree(HitTopology topo)
void hit_patternFree(HitPattern *pattern)
void hit_comInit(int *pargc, char **pargv[])
#define hit_layImActive(lay)
#define hit_tileTextFileRead(var, file, coord, datatype, s1, s2)
#define hit_tileDomain(newVarP, baseType, numDims,...)
#define hit_tileDimEnd(var, dim)
void hit_layFree(HitLayout lay)
int main(int argc, char *argv[])
#define hit_layNeighbor(lay, dim, shift)
#define hit_tileSelectArrayCoords(newVar, oldVar, shape)
HitShape hit_shapeDimExpand(HitShape shape, int dim, int position, int offset)
#define hit_tileForDimDomain(tile, dim, index)
#define hit_layout(name, topo,...)
#define hit_shapeSig(shape, dim)
#define HIT_COM_TILECOORDS
#define hit_tileFree(var)
#define hit_tileShape(var)
#define hit_patternDo(pattern)
#define hit_clockReduce(lay, c)
#define hit_clockStart(c)