31 fprintf (stderr,
"\n !!!! WARNING !!!!\n\n");
32 fprintf (stderr,
"This is a sequential built of the %s code\n", *argv[0]);
33 fprintf (stderr,
"If you planned to run the MPI-parallel version,\n");
34 fprintf (stderr,
"then you MUST rebuild the executable. Go into the\n");
35 fprintf (stderr,
"source directory (normally src/), then issue:\n");
36 fprintf (stderr,
"\ngmake BUILD=parallel\n");
37 fprintf (stderr,
"\nAny further invocation of gmake will refer to a parallel built.\n");
72 void MPI_Allreduce (
void *ptr,
void *ptr2,
int count,
int type,
int foo3,
int foo4)
75 for (i = 0; i < count; i++) {
78 *(((
double *)ptr2)+i) = (
double)(*(((
double *)ptr)+i));
81 *(((
int *)ptr2)+i) = (
int)(*(((
int *)ptr)+i));
Declaration of fake MPI functions for sequential built.
void MPI_Comm_size(int a, int *b)
void MPI_Comm_rank(int a, int *b)
void MPI_Allreduce(void *ptr, void *ptr2, int count, int type, int foo3, int foo4)
void MPI_Init(int *argc, argv)