.TH PGAGetNumProcs 4 "05/01/95" " " "PGAPack" .SH NAME PGAGetNumProcs \- Returns the size of communicator comm in processes. .SH DESCRIPTION If comm is NULL or a sequential version of PGAPack is used, PGAGetNumProcs() returns 1. .SH INPUT PARAMETERS .PD 0 .TP ctx - context variable structure pointer .PD 0 .TP comm - an MPI communicator .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP none .PD 1 .SH SYNOPSIS .nf #include "pgapack.h" int PGAGetNumProcs(ctx, comm) PGAContext *ctx MPI_Comm comm .fi .SH LOCATION parallel.c .SH EXAMPLE .nf Example: PGAContext *ctx; : if (PGAGetNumProcs(ctx, MPI_COMM_WORLD) < 4) { printf("Too few processors for decent performance!\n"); exit(-1); } .fi