summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-04 10:02:44 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-04 10:02:44 +0000
commitdae6ca25163e947242f7281dde691bd19cc297fe (patch)
tree74793fea92e3416e34b264447c1b1d5aa6404663
parenteacfa5cf3b7e740ea9eafe51bc48cfbc94814fc6 (diff)
Configuration file for PACX MPI.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1516 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--lib/make/extras/MPI/PACX46
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/make/extras/MPI/PACX b/lib/make/extras/MPI/PACX
new file mode 100644
index 00000000..97b46f0f
--- /dev/null
+++ b/lib/make/extras/MPI/PACX
@@ -0,0 +1,46 @@
+#! /bin/sh
+# /*@@
+# @file PACX
+# @date Mar 12 2000
+# @author Thomas Radke
+# @desc
+#
+# @enddesc
+# @version
+# @@*/
+
+echo "PACX selected"
+
+if test -z "$PACX_MPI" ; then
+ echo "PACX selected but no underlying MPI method specified !"
+ echo "Please set PACX_MPI to the MPI method PACX was build with !"
+ exit 2
+fi
+
+if test $PACX_MPI = "PACX" ; then
+ echo "Cannot configure PACX with PACX MPI method !"
+ echo "Please set PACX_MPI to the MPI method PACX was build with !"
+ exit 2
+fi
+
+echo "Configuring PACX with MPI method $PACX_MPI"
+
+if test -r $srcdir/extras/MPI/$PACX_MPI ; then
+ . $srcdir/extras/MPI/$PACX_MPI
+else
+ echo "PACX_MPI selected, but no known MPI method - what is $PACX_MPI ?"
+ exit 2
+fi
+
+if test -z "$PACX_DIR" ; then
+ echo "PACX selected but no PACX_DIR set... Checking some places"
+ CCTK_Search PACX_DIR "/usr /usr/local /usr/local/pacx /usr/local/packages/pacx /usr/local/apps/pacx" include/pacx.h
+ if test -z "$PACX_DIR" ; then
+ echo "Unable to locate the PACX directory - please set PACX_DIR"
+ exit 2
+ fi
+fi
+
+MPI_LIBS="pacx pacxf $MPI_LIBS"
+MPI_LIB_DIRS="$PACX_DIR/lib $MPI_LIB_DIRS"
+MPI_INC_DIRS="$PACX_DIR/include $MPI_INC_DIRS"