Parallel domain decomposition. More...
#include "mytype.h"

Go to the source code of this file.
Data Structures | |
| struct | DomainSt |
| Domain decomposition information. More... | |
Typedefs | |
| typedef struct DomainSt | Domain |
| Domain decomposition information. More... | |
Functions | |
| struct DomainSt * | initDecomposition (int xproc, int yproc, int zproc, real3 globalExtent) |
| int | processorNum (Domain *domain, int dix, int diy, int dik) |
| Find the MPI rank of a neighbor domain from a relative coordinate. More... | |
Parallel domain decomposition.
Definition in file decomposition.h.
| [in] | xproc | x-size of domain decomposition grid. |
| [in] | yproc | y-size of domain decomposition grid. |
| [in] | zproc | z-size of domain decomposition grid. |
| [in] | globalExtent | Size of the simulation domain (in Angstroms). |
Definition at line 18 of file decomposition.c.


| int processorNum | ( | Domain * | domain, |
| int | dix, | ||
| int | diy, | ||
| int | diz | ||
| ) |
Find the MPI rank of a neighbor domain from a relative coordinate.
Calculates the rank of the processor with grid coordinates (ix+dix, iy+diy, iz+diz) where (ix, iy, iz) are the grid coordinates of the local rank. Assumes periodic boundary conditions. The deltas cannot be smaller than -procGrid[ii].
Definition at line 57 of file decomposition.c.
