From a6f45773b8408f71a0cfd11f3ee4a90d53c9b6b6 Mon Sep 17 00:00:00 2001 From: tradke Date: Thu, 13 Dec 2001 12:58:49 +0000 Subject: Make sure that MPI is configured in. Closes PR BetaThorns/525 (??). git-svn-id: http://svn.cactuscode.org/arrangements/CactusElliptic/EllPETSc/trunk@56 1d96b42b-98df-4a6a-9d84-1b24288d4588 --- src/make.configuration.defn | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/make.configuration.defn b/src/make.configuration.defn index 2d1ac0f..4fc63b8 100644 --- a/src/make.configuration.defn +++ b/src/make.configuration.defn @@ -10,8 +10,17 @@ # keep them at the end of lapack -### check if PETSC_DIR/PETSC_ARCH are set, bail out if not +### check if this was configured with MPI, bail out if not +ifeq ($(strip $(MPI_LIBS)), ) +$(NAME): MissingMPI +.pseudo: MissingMPI +MissingMPI: + @echo "PETSc: requires MPI" + @echo "PETSc: Please configure with MPI or remove EllPETSc from ThornList !" + exit 2 +endif +### check if PETSC_DIR/PETSC_ARCH are set, bail out if not ifeq ($(strip $(PETSC_DIR)), ) $(NAME): MissingPETSC_DIR .pseudo: MissingPETSC_DIR @@ -55,5 +64,3 @@ endif LIBDIRS += $(PETSC_LIB_DIR) $(X_LIB_DIR) LIBS += $(PETSC_LIBS) $(PLATFORM_LIBS) X11 EXTRAFLAGS = -I$(PETSC_DIR)/include - - -- cgit v1.2.3