]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
New test.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 24 Feb 2004 20:50:27 +0000 (20:50 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 24 Feb 2004 20:50:27 +0000 (20:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@8527 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/Makefile
tests/bits/solver_selector.cc [new file with mode: 0644]

index f57862e88bfba77f3097c0809a8b2bc204d22d5a..e7a8a09e01a6e31680884819250474f232bbcf45 100644 (file)
@@ -47,10 +47,11 @@ tests_x = anna_? \
          q_points \
           find_cell_* \
           sparse_matrix_* \
-         full_matrix_vector_*
+         full_matrix_vector_* \
+         solver_selector
 
 ifeq ($(USE_CONTRIB_PETSC),yes)
-  tests_x += petsc_*
+  tests_x += vector_* petsc_*
 endif
 
 # from above list of regular expressions, generate the real set of
diff --git a/tests/bits/solver_selector.cc b/tests/bits/solver_selector.cc
new file mode 100644 (file)
index 0000000..6fabd6b
--- /dev/null
@@ -0,0 +1,31 @@
+//----------------------------  solver_selector.cc  ---------------------------
+//    petsc_11.cc,v 1.4 2003/07/03 10:31:46 guido Exp
+//    Version: 
+//
+//    Copyright (C) 2004 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//----------------------------  solver_selector.cc  ---------------------------
+
+// I managed to break solver selector once by making some variables in the
+// AdditionalData structures of the solvers const. This test simply
+// instantiates that class, to make sure it still compiles
+
+#include <lac/solver_selector.h>
+#include <fstream>
+
+// instantiation here
+template class SolverSelector<>;
+
+int main () 
+{  
+  std::ofstream logfile("solver_selector.output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  deallog << "OK" << std::endl;
+}

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.