]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not allow compilation when using threads.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 15 Feb 2010 13:10:30 +0000 (13:10 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 15 Feb 2010 13:10:30 +0000 (13:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@20626 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-18/Makefile

index 7da75ddf847924b609b406f419497c4f2acd1623..7e7cfbd4acea22f329dafb696d76c2b35d6134e7 100644 (file)
@@ -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
 #
 ################################################################

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.