Returns the size of communicator comm in processes.
If comm is NULL or a sequential version of PGAPack is used, PGAGetNumProcs() returns 1.
ctx
- context variable structure pointer
comm
- an MPI communicator
none
#include "pgapack.h" int PGAGetNumProcs(ctx, comm) PGAContext *ctx MPI_Comm comm
parallel.c
Example: PGAContext *ctx; : if (PGAGetNumProcs(ctx, MPI_COMM_WORLD) < 4) { printf("Too few processors for decent performance!\n"); exit(-1); }