diff options
Diffstat (limited to 'lib/make/extras/MPI/setup.sh')
-rwxr-xr-x | lib/make/extras/MPI/setup.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/make/extras/MPI/setup.sh b/lib/make/extras/MPI/setup.sh new file mode 100755 index 00000000..abc054af --- /dev/null +++ b/lib/make/extras/MPI/setup.sh @@ -0,0 +1,42 @@ +#! /bin/sh +# /*@@ +# @file setup.sh +# @date Wed Jul 21 11:18:40 1999 +# @author Tom Goodale +# @desc +# Setup MPI +# @enddesc +# @version $Header$ +# @@*/ + +if test -n "$MPI" ; then + +echo "Configuring with MPI" + +CCTK_WriteLine cctk_extradefs.h "#define MPI" + +# Work out which variation of MPI is installed + +if test -r $srcdir/extras/MPI/$MPI ; then + . $srcdir/extras/MPI/$MPI +else + echo "MPI selected, but no known MPI method - what is $MPI ?" + exit 2 +fi + +# Write the data out to the header and make files. + +CCTK_WriteLine make.extra.defn "MPI_LIBS = $MPI_LIBS" +CCTK_WriteLine make.extra.defn "MPI_LIB_DIRS = $MPI_LIB_DIRS" +CCTK_WriteLine make.extra.defn "MPI_INC_DIRS = $MPI_INC_DIRS" + +CCTK_WriteLine make.extra.defn "" +CCTK_WriteLine make.extra.defn "" + +CCTK_WriteLine make.extra.defn 'LIBS += $(MPI_LIBS)' +CCTK_WriteLine make.extra.defn 'LIBDIRS += $(MPI_LIB_DIRS)' +CCTK_WriteLine make.extra.defn 'SYS_INC_DIRS += $(MPI_INC_DIRS)' + +fi + + |