HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Compute the local size. More...
Go to the source code of this file.
Functions | |
int | MPIPartition1D (int nglobal, int nproc, int rank) |
Compute the local size.
Definition in file MPIPartition1D.c.
int MPIPartition1D | ( | int | nglobal, |
int | nproc, | ||
int | rank | ||
) |
Given a 1D array of a given global size nglobal, and the total number of MPI ranks nproc on which it will be partitioned, this function computes the size of the local part of the 1D array on rank.
nglobal | Global size |
nproc | Total number of ranks |
rank | Rank |
Definition at line 14 of file MPIPartition1D.c.