diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-07-18 00:51:15 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-07-18 00:51:15 +0000 |
commit | 40bf4581924cc4f7dab9c0202c23a0bab3090118 (patch) | |
tree | 5bd9b13a9bb4166d92016ac57501d23a53b71514 /src/main/CactusDefaultShutdown.c | |
parent | 71a5bcaf01299bcf9bc733e509bd6ee924b45a3a (diff) |
#ifdef MPI changed into #ifdef CCTK_MPI
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1756 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/CactusDefaultShutdown.c')
-rw-r--r-- | src/main/CactusDefaultShutdown.c | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/src/main/CactusDefaultShutdown.c b/src/main/CactusDefaultShutdown.c index e65b4a58..f86be197 100644 --- a/src/main/CactusDefaultShutdown.c +++ b/src/main/CactusDefaultShutdown.c @@ -15,7 +15,7 @@ #include "cctk_Comm.h" -#ifdef MPI +#ifdef CCTK_MPI #include "mpi.h" #endif @@ -23,23 +23,30 @@ static char *rcsid = "$Header$"; CCTK_FILEVERSION(main_CactusDefaultShutdown_c) -#ifdef MPI +#ifdef CCTK_MPI extern char MPI_Active; #endif -#ifdef MPI -#define CACTUS_MPI_ERROR(xf) do {int errcode; \ - if((errcode = xf) != MPI_SUCCESS) \ - { \ - char mpi_error_string[MPI_MAX_ERROR_STRING+1]; \ - int resultlen; \ - MPI_Error_string(errcode, mpi_error_string, &resultlen);\ - fprintf(stderr, "MPI Call %s returned error code %d (%s)\n", \ - #xf, errcode, mpi_error_string); \ - fprintf(stderr, "At line %d of file %s\n", \ - __LINE__, __FILE__); \ - } \ - } while (0) +#ifdef CCTK_MPI +#define CACTUS_MPI_ERROR(xf) \ + do \ + { \ + int errcode; \ + \ + \ + if((errcode = xf) != MPI_SUCCESS) \ + { \ + char mpi_error_string[MPI_MAX_ERROR_STRING+1]; \ + int resultlen; \ + \ + \ + MPI_Error_string(errcode, mpi_error_string, &resultlen); \ + fprintf(stderr, "MPI Call %s returned error code %d (%s)\n", \ + #xf, errcode, mpi_error_string); \ + fprintf(stderr, "At line %d of file %s\n", \ + __LINE__, __FILE__); \ + } \ + } while (0) #endif /*@@ |