On Aug 19, 2015, at 6:29 AM, Jeff Hammond <[email protected]> wrote:
See below where you got a warning for defining MPI to 1? That is going to break EVERYTHING in the MPI C code. Consider the declaration MPI_Init_thread. It will become 1_Init_thread. This is a serious problem.
This isn't how the C preprocessor works, Jeff... "#define f x" will not change "fprintf" to "xprintf" later in the source file.
The MPI standard reserves the MPI namespace. You cannot use it. In your case, you took the entire namespace and changed it to a number :-)
Please use a preprocessor macro like USE_MPI in your application. Do not define any symbols anywhere that being with MPI.
This, however, is good advice and should fix this particular issue. -Dave _______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss