From e1e9ca7ace1df4eba5752337e7544f6f627f597b Mon Sep 17 00:00:00 2001 From: Ralf Hartmann Date: Tue, 23 Aug 2005 07:47:46 +0000 Subject: [PATCH] . git-svn-id: https://svn.dealii.org/trunk@11307 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/petsc_70.cc | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/bits/petsc_70.cc 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()); +} -- 2.39.5