From: hartmann Date: Tue, 23 Aug 2005 07:47:46 +0000 (+0000) Subject: . X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19d42b2ed226003e478ce97a7ed8348802be8ea8;p=dealii-svn.git . git-svn-id: https://svn.dealii.org/trunk@11307 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/petsc_70.cc b/tests/bits/petsc_70.cc new file mode 100644 index 0000000000..c35525e7bb --- /dev/null +++ b/tests/bits/petsc_70.cc @@ -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 +#include + +#include + +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 index 0000000000..04c108ac22 --- /dev/null +++ b/tests/results/i686-pc-linux-gnu+gcc2.95/bits/petsc_70.output @@ -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 index 0000000000..04c108ac22 --- /dev/null +++ b/tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_70.output @@ -0,0 +1,2 @@ + +DEAL::double