From d2f1e2b3d81ce8f1de6540304867de2d5113b40e Mon Sep 17 00:00:00 2001 From: wolf Date: Sun, 15 Feb 2004 01:58:34 +0000 Subject: [PATCH] New tests. git-svn-id: https://svn.dealii.org/trunk@8469 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/petsc_49.cc | 86 +++++++++++++++ tests/bits/petsc_50.cc | 102 ++++++++++++++++++ .../bits/petsc_49.output | 2 + .../bits/petsc_50.output | 2 + 4 files changed, 192 insertions(+) create mode 100644 tests/bits/petsc_49.cc create mode 100644 tests/bits/petsc_50.cc create mode 100644 tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_49.output create mode 100644 tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_50.output diff --git a/tests/bits/petsc_49.cc b/tests/bits/petsc_49.cc new file mode 100644 index 0000000000..8fea52f1bc --- /dev/null +++ b/tests/bits/petsc_49.cc @@ -0,0 +1,86 @@ +//---------------------------- petsc_49.cc --------------------------- +// petsc_11.cc,v 1.4 2003/07/03 10:31:46 guido Exp +// Version: +// +// Copyright (C) 2004 by the deal.II authors and Anna Schneebeli +// +// 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_49.cc --------------------------- + + +// check petsc_wrapper::copy_from + +#include "../tests.h" +#include +#include +#include +#include +#include + + +void test (petsc_wrappers::Vector &v) +{ + Vector w (v.size()); + + for (unsigned int i=0; i with T!=PetscScalar + +#include "../tests.h" +#include +#include +#include +#include +#include + + +void test (petsc_wrappers::Vector &v) +{ + Vector w (v.size()); + Vector x (v.size()); + + for (unsigned int i=0; i must be different from + // PetscScalar + v.copy_from (w); + for (unsigned int i=0; i