diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-09-12 16:30:59 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-09-12 16:30:59 +0000 |
commit | eeba75f909ead76d42676e6eabf4bcfaa34df061 (patch) | |
tree | e094020b3b9a20f30750eae7eef325d4afa55638 /lib/make | |
parent | 373166584cb4b311008b246677642439f72cb5ef (diff) |
Define the MPI version used to be an integer constant so that it can be used
in preprocessor directives. This is for Gordon.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2352 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rwxr-xr-x | lib/make/extras/MPI/setup.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/make/extras/MPI/setup.sh b/lib/make/extras/MPI/setup.sh index fe0ae1f3..328c6a5d 100755 --- a/lib/make/extras/MPI/setup.sh +++ b/lib/make/extras/MPI/setup.sh @@ -24,11 +24,11 @@ fi # Write the data out to the header and make files. -if test -n "$MPI_VERSION" ; then - CCTK_WriteLine cctk_Extradefs.h "#define CCTK_MPI $MPI_VERSION" -else - CCTK_WriteLine cctk_Extradefs.h "#define CCTK_MPI $MPI" +if test -z "$MPI_VERSION" ; then + MPI_VERSION="$MPI" fi +CCTK_WriteLine cctk_Extradefs.h "#define CCTK_MPI_$MPI_VERSION 1" +CCTK_WriteLine cctk_Extradefs.h "#define CCTK_MPI CCTK_MPI_$MPI_VERSION" CCTK_WriteLine make.extra.defn "MPI_LIBS = $MPI_LIBS" CCTK_WriteLine make.extra.defn "MPI_LIB_DIRS = $MPI_LIB_DIRS" |