]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Aug 2005 07:47:46 +0000 (07:47 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Aug 2005 07:47:46 +0000 (07:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@11307 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/petsc_70.cc [new file with mode: 0644]
tests/results/i686-pc-linux-gnu+gcc2.95/bits/petsc_70.output [new file with mode: 0644]
tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_70.output [new file with mode: 0644]

diff --git a/tests/bits/petsc_70.cc b/tests/bits/petsc_70.cc
new file mode 100644 (file)
index 0000000..c35525e
--- /dev/null
@@ -0,0 +1,36 @@
+//----------------------------  petsc_70.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.
+//
+//----------------------------  petsc_70.cc  ---------------------------
+
+
+// check PetscScalar
+
+#include "../tests.h"
+#include <base/logstream.h>
+#include <lac/petsc_vector.h>
+
+#include <fstream>
+
+int main (int argc,char **argv) 
+{
+  std::ofstream logfile("petsc_70.output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  if (typeid(PetscScalar)==typeid(double))
+    deallog << "double" << endl;
+  else if (typeid(PetscScalar)==typeid(float))
+    deallog << "float" << endl;
+  else
+    Assert(false, ExcNotImplemented());
+}
diff --git a/tests/results/i686-pc-linux-gnu+gcc2.95/bits/petsc_70.output b/tests/results/i686-pc-linux-gnu+gcc2.95/bits/petsc_70.output
new file mode 100644 (file)
index 0000000..04c108a
--- /dev/null
@@ -0,0 +1,2 @@
+
+DEAL::double
diff --git a/tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_70.output b/tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_70.output
new file mode 100644 (file)
index 0000000..04c108a
--- /dev/null
@@ -0,0 +1,2 @@
+
+DEAL::double

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.