diff options
author | tradke <tradke@1d96b42b-98df-4a6a-9d84-1b24288d4588> | 2001-12-13 12:58:49 +0000 |
---|---|---|
committer | tradke <tradke@1d96b42b-98df-4a6a-9d84-1b24288d4588> | 2001-12-13 12:58:49 +0000 |
commit | a6f45773b8408f71a0cfd11f3ee4a90d53c9b6b6 (patch) | |
tree | dc12771b4f1386ce90af84bbccd104edf9131de5 | |
parent | 99ae0f653d4bed63f0611009cad52227f87aecf7 (diff) |
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
-rw-r--r-- | src/make.configuration.defn | 13 |
1 files 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 - - |