![]() |
Timothy
0.9
Tissue Modelling Framework
|
contains domain decomposition functions More...
Go to the source code of this file.
Functions | |
int | ztnReturnDimension (void *data, int *ierr) |
void | ztnReturnCoords (void *data, int numGidEntries, int numLidEntries, ZOLTAN_ID_PTR globalId, ZOLTAN_ID_PTR localId, double *geomVec, int *ierr) |
int | ztnReturnNumNode (void *data, int *ierr) |
void | ztnReturnOwnedNodes (void *data, int numGIdEntries, int numLIdEntries, ZOLTAN_ID_PTR globalIds, ZOLTAN_ID_PTR localIds, int wgtDim, float *objWgts, int *ierr) |
int | ztnReturnParticleDataSize (void *data, int numGIdEntries, int numLIdEntries, ZOLTAN_ID_PTR globalId, ZOLTAN_ID_PTR localId, int *ierr) |
void | ztnPack (void *data, int numGIdEntries, int numLIdEntries, ZOLTAN_ID_PTR globalId, ZOLTAN_ID_PTR localId, int dest, int size, char *buf, int *ierr) |
void | ztnPre (void *data, int numGIdEntries, int numLIdEntries, int numImport, ZOLTAN_ID_PTR importGlobalIds, ZOLTAN_ID_PTR importLocalIds, int *importProcs, int *importToPart, int numExport, ZOLTAN_ID_PTR exportGlobalIds, ZOLTAN_ID_PTR exportLocalIds, int *exportProcs, int *exportToPart, int *ierr) |
void | ztnMid (void *data, int numGIdEntries, int numLIdEntries, int numImport, ZOLTAN_ID_PTR importGlobalIds, ZOLTAN_ID_PTR importLocalIds, int *importProcs, int *importToPart, int numExport, ZOLTAN_ID_PTR exportGlobalIds, ZOLTAN_ID_PTR exportLocalIds, int *exportProcs, int *exportToPart, int *ierr) |
void | ztnPost (void *data, int numGIdEntries, int numLIdEntries, int numImport, ZOLTAN_ID_PTR importGlobalIds, ZOLTAN_ID_PTR importLocalIds, int *importProcs, int *importToPart, int numExport, ZOLTAN_ID_PTR exportGlobalIds, ZOLTAN_ID_PTR exportLocalIds, int *exportProcs, int *exportToPart, int *ierr) |
void | ztnUnpack (void *data, int numGIdEntries, ZOLTAN_ID_PTR globalId, int size, char *buf, int *ierr) |
void | decompositionInit (int argc, char **argv, MPI_Comm Comm) |
void | decompositionExecute () |
void | decompositionFinalize () |
Variables | |
int | changes |
int | numGidEntries |
int | numLidEntries |
int | numImport |
ZOLTAN_ID_PTR | importGlobalGids |
ZOLTAN_ID_PTR | importLocalGids |
int * | importProcs |
int * | importToPart |
int | numExport |
ZOLTAN_ID_PTR | exportGlobalGids |
ZOLTAN_ID_PTR | exportLocalGids |
int * | exportProcs |
int * | exportToPart |
contains domain decomposition functions
Definition in file domdec.c.
void decompositionExecute | ( | ) |
This function calls the Zoltan's domain decomposition and migration functions. It is called at the beginning of each simulation step.
Definition at line 240 of file domdec.c.
References changes, exportGlobalGids, exportLocalGids, exportProcs, exportToPart, importGlobalGids, importLocalGids, importProcs, importToPart, MPIsize, nc, numExport, numGidEntries, numImport, numLidEntries, stopRun(), and ztn.
void decompositionFinalize | ( | ) |
void decompositionInit | ( | int | argc, |
char ** | argv, | ||
MPI_Comm | Comm | ||
) |
This function initializes the Zoltan library. It is called at the beginning of the simulation.
Definition at line 191 of file domdec.c.
References cells, MPIrank, stopRun(), ztn, ztnMid(), ztnPack(), ztnPost(), ztnPre(), ztnReturnCoords(), ztnReturnDimension(), ztnReturnNumNode(), ztnReturnOwnedNodes(), ztnReturnParticleDataSize(), and ztnUnpack().
void ztnMid | ( | void * | data, |
int | numGIdEntries, | ||
int | numLIdEntries, | ||
int | numImport, | ||
ZOLTAN_ID_PTR | importGlobalIds, | ||
ZOLTAN_ID_PTR | importLocalIds, | ||
int * | importProcs, | ||
int * | importToPart, | ||
int | numExport, | ||
ZOLTAN_ID_PTR | exportGlobalIds, | ||
ZOLTAN_ID_PTR | exportLocalIds, | ||
int * | exportProcs, | ||
int * | exportToPart, | ||
int * | ierr | ||
) |
Zoltan callback function. This function is executed after packing of send buffer and unpacking of receive buffer during migration.
Definition at line 140 of file domdec.c.
References cellData::gid, lnc, and numExport.
void ztnPack | ( | void * | data, |
int | numGIdEntries, | ||
int | numLIdEntries, | ||
ZOLTAN_ID_PTR | globalId, | ||
ZOLTAN_ID_PTR | localId, | ||
int | dest, | ||
int | size, | ||
char * | buf, | ||
int * | ierr | ||
) |
Zoltan callback function. This function packs data into a send buffer before migration.
Definition at line 115 of file domdec.c.
References cellData::gid.
void ztnPost | ( | void * | data, |
int | numGIdEntries, | ||
int | numLIdEntries, | ||
int | numImport, | ||
ZOLTAN_ID_PTR | importGlobalIds, | ||
ZOLTAN_ID_PTR | importLocalIds, | ||
int * | importProcs, | ||
int * | importToPart, | ||
int | numExport, | ||
ZOLTAN_ID_PTR | exportGlobalIds, | ||
ZOLTAN_ID_PTR | exportLocalIds, | ||
int * | exportProcs, | ||
int * | exportToPart, | ||
int * | ierr | ||
) |
void ztnPre | ( | void * | data, |
int | numGIdEntries, | ||
int | numLIdEntries, | ||
int | numImport, | ||
ZOLTAN_ID_PTR | importGlobalIds, | ||
ZOLTAN_ID_PTR | importLocalIds, | ||
int * | importProcs, | ||
int * | importToPart, | ||
int | numExport, | ||
ZOLTAN_ID_PTR | exportGlobalIds, | ||
ZOLTAN_ID_PTR | exportLocalIds, | ||
int * | exportProcs, | ||
int * | exportToPart, | ||
int * | ierr | ||
) |
void ztnReturnCoords | ( | void * | data, |
int | numGidEntries, | ||
int | numLidEntries, | ||
ZOLTAN_ID_PTR | globalId, | ||
ZOLTAN_ID_PTR | localId, | ||
double * | geomVec, | ||
int * | ierr | ||
) |
Zoltan callback function. This function returns the spatial coordinates of the cell identified by its global and local id.
Definition at line 61 of file domdec.c.
References cells, sdim, cellData::x, cellData::y, and cellData::z.
int ztnReturnDimension | ( | void * | data, |
int * | ierr | ||
) |
int ztnReturnNumNode | ( | void * | data, |
int * | ierr | ||
) |
void ztnReturnOwnedNodes | ( | void * | data, |
int | numGIdEntries, | ||
int | numLIdEntries, | ||
ZOLTAN_ID_PTR | globalIds, | ||
ZOLTAN_ID_PTR | localIds, | ||
int | wgtDim, | ||
float * | objWgts, | ||
int * | ierr | ||
) |
Zoltan callback function. This function fills the tables of global ids, local ids and weights for all cells assigned to this process.
Definition at line 87 of file domdec.c.
References cells, cellData::gid, and lnc.
int ztnReturnParticleDataSize | ( | void * | data, |
int | numGIdEntries, | ||
int | numLIdEntries, | ||
ZOLTAN_ID_PTR | globalId, | ||
ZOLTAN_ID_PTR | localId, | ||
int * | ierr | ||
) |
void ztnUnpack | ( | void * | data, |
int | numGIdEntries, | ||
ZOLTAN_ID_PTR | globalId, | ||
int | size, | ||
char * | buf, | ||
int * | ierr | ||
) |
Zoltan callback function. This function unpacks data from the receive buffer.
Definition at line 179 of file domdec.c.
References lnc.