]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a testcase that doesn't make sense for complex vectors.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Nov 2007 03:49:28 +0000 (03:49 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Nov 2007 03:49:28 +0000 (03:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@15444 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/complex-vector_57.cc [deleted file]
tests/bits/complex_vector_57/cmp/generic [deleted file]

diff --git a/tests/bits/complex-vector_57.cc b/tests/bits/complex-vector_57.cc
deleted file mode 100644 (file)
index 59250f4..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-//----------------------------  vector_57.cc  ---------------------------
-//    $Id$
-//    Version: $Name$ 
-//
-//    Copyright (C) 2004, 2005 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.
-//
-//----------------------------  vector_57.cc  ---------------------------
-
-
-// check Vector::is_non_zero
-
-#include "../tests.h"
-#include <lac/vector.h>    
-#include <fstream>
-#include <iostream>
-#include <vector>
-
-
-void test (Vector<std::complex<double> > &v)
-{
-                                   // set only certain elements of the
-                                   // vector. they are all positive
-  std::vector<bool> pattern (v.size(), false);
-  for (unsigned int i=0; i<v.size(); i+=1+i)
-    {
-      v(i) += i;
-      pattern[i] = true;
-    }
-
-  v.compress ();
-
-                                   // check that the vector is really
-                                   // non-negative
-  Assert (v.is_non_negative() == true, ExcInternalError());
-
-                                   // then set a single element to a negative
-                                   // value and check again
-  v(v.size()/2) = -1;
-  Assert (v.is_non_negative() == false, ExcInternalError());  
-
-  deallog << "OK" << std::endl;
-}
-
-
-
-int main ()
-{
-  std::ofstream logfile("complex-vector_57/output");
-  deallog.attach(logfile);
-  deallog.depth_console(0);
-  deallog.threshold_double(1.e-10);
-
-  try
-    {
-      Vector<std::complex<double> > v (100);
-      test (v);
-    }
-  catch (std::exception &exc)
-    {
-      std::cerr << std::endl << std::endl
-               << "----------------------------------------------------"
-               << std::endl;
-      std::cerr << "Exception on processing: " << std::endl
-               << exc.what() << std::endl
-               << "Aborting!" << std::endl
-               << "----------------------------------------------------"
-               << std::endl;
-      
-      return 1;
-    }
-  catch (...) 
-    {
-      std::cerr << std::endl << std::endl
-               << "----------------------------------------------------"
-               << std::endl;
-      std::cerr << "Unknown exception!" << std::endl
-               << "Aborting!" << std::endl
-               << "----------------------------------------------------"
-               << std::endl;
-      return 1;
-    };
-}
diff --git a/tests/bits/complex_vector_57/cmp/generic b/tests/bits/complex_vector_57/cmp/generic
deleted file mode 100644 (file)
index 0fd8fc1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-
-DEAL::OK

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.