]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
put test of lapack functions into own directory
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Sep 2006 21:04:19 +0000 (21:04 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Sep 2006 21:04:19 +0000 (21:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@13841 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/Makefile
tests/lapack/Makefile
tests/lapack/full_matrix.cc [moved from tests/lac/lapack.cc with 78% similarity]
tests/lapack/full_matrix/cmp/generic [moved from tests/lac/lapack/cmp/generic with 100% similarity]

index be472e2f4ddb658bfb5249f8422e5d5c7fbaeb62..ea9dbddfb79e5d795ef39574a43eb8204f940e07 100644 (file)
@@ -28,7 +28,7 @@ tests_x = vector-vector \
        block_vector block_vector_* block_matrices \
        matrix_lib matrix_out pointer_matrix \
        solver eigen \
-       sparse_ilu sparse_ilu_t lapack lapack_fill block_minres \
+       sparse_ilu sparse_ilu_t lapack_fill block_minres \
        identity_matrix* trace
 
 
index 3a72131993a3541b4db7c623b8f5bf1ea475e083..48d67c28abe4f25d7abbe8af5930ad98a7bde23f 100644 (file)
@@ -20,7 +20,7 @@ default: run-tests
 
 ############################################################
 
-tests_x = tridiagonal_ev1
+tests_x = tridiagonal_ev1 full_matrix
 
 
 # from above list of regular expressions, generate the real set of
similarity index 78%
rename from tests/lac/lapack.cc
rename to tests/lapack/full_matrix.cc
index ea442450a2b2bdd05c1c932a606f629fc410a97a..f2b3cd985828eadb1fdc0ddba754dcae80af6f7c 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2005 by the deal.II authors
+//    Copyright (C) 2005, 2006 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -47,13 +47,12 @@ const double rect[] =
 
 int main()
 {
-  std::ofstream logfile("lapack/output");
+  std::ofstream logfile("full_matrix/output");
   logfile.precision(3);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
 
-#ifdef HAVE_LIBLAPACK
   FullMatrix<double> A(3,4,rect);
   LAPACKFullMatrix<double> LA(3,4);
   LA = A;
@@ -114,23 +113,5 @@ int main()
     }
   
   v1.reinit(4);
-  v2.reinit(4);
-  
-#else
-                       // If lapack is not available, this
-                                  // test will not complain.
-  deallog.push("Rect");
-  deallog << "operator= (const FullMatrix<number>&) ok" << std::endl;
-  deallog << "vmult ok" << std::endl;
-  deallog << "vmult_add ok" << std::endl;
-  deallog << "Tvmult ok" << std::endl;
-  deallog << "Tvmult_add ok" << std::endl;
-  deallog.pop();
-  
-  deallog << "Eigenvalues 5\t0" << std::endl;
-  deallog << "Eigenvalues 1\t0" << std::endl;
-  deallog << "Eigenvalues 5\t0" << std::endl;
-  deallog << "Eigenvalues 5\t0" << std::endl;
-  deallog.pop();
-#endif
+  v2.reinit(4);  
 }

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.