From: Wolfgang Bangerth Date: Mon, 15 Feb 2010 13:15:07 +0000 (+0000) Subject: Do not allow compilation when using threads. X-Git-Tag: v8.0.0~6436 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e06f3774c6239828db27081dd0abf6b29f05b4;p=dealii.git Do not allow compilation when using threads. git-svn-id: https://svn.dealii.org/trunk@20629 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-17/Makefile b/deal.II/examples/step-17/Makefile index 0daa83ee86..2b01d86d89 100644 --- a/deal.II/examples/step-17/Makefile +++ b/deal.II/examples/step-17/Makefile @@ -48,7 +48,11 @@ include $D/common/Make.global_options ################################################################ # This example program will only work if PETSc is installed. If this # is not the case, then simply redefine the main targets to do nothing -ifneq ($(USE_CONTRIB_PETSC),yes) +# +# The same holds true if we use threads: PETSc and threads doesn't +# seem to work well together... +ifneq ($(USE_CONTRIB_PETSC)$(enable-threads),yesno) + ifneq ($(USE_CONTRIB_PETSC),yes) default run clean: @echo @echo "===========================================================" @@ -57,7 +61,16 @@ default run clean: @echo "= configuration of deal.II =" @echo "===========================================================" @echo - + else +default run clean: + @echo + @echo "===========================================================" + @echo "= PETSc can not be used when running programs on =" + @echo "= multiple threads. Make sure you have specified the =" + @echo "= --disable-threads flag upon configuration of deal.II =" + @echo "===========================================================" + @echo + endif else # ################################################################