From db614b71bc54b04fef29f6ffbca4e80c55ba1c02 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 9 Feb 2004 20:12:43 +0000 Subject: [PATCH] New tests. git-svn-id: https://svn.dealii.org/trunk@8440 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/petsc_vector_equality_1.cc | 84 ++++++++++++++++++ tests/bits/petsc_vector_equality_2.cc | 86 +++++++++++++++++++ tests/bits/petsc_vector_equality_3.cc | 84 ++++++++++++++++++ tests/bits/petsc_vector_equality_4.cc | 86 +++++++++++++++++++ .../bits/petsc_vector_equality_1.output | 2 + .../bits/petsc_vector_equality_2.output | 2 + .../bits/petsc_vector_equality_3.output | 2 + .../bits/petsc_vector_equality_4.output | 2 + 8 files changed, 348 insertions(+) create mode 100644 tests/bits/petsc_vector_equality_1.cc create mode 100644 tests/bits/petsc_vector_equality_2.cc create mode 100644 tests/bits/petsc_vector_equality_3.cc create mode 100644 tests/bits/petsc_vector_equality_4.cc create mode 100644 tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_vector_equality_1.output create mode 100644 tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_vector_equality_2.output create mode 100644 tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_vector_equality_3.output create mode 100644 tests/results/i686-pc-linux-gnu+gcc3.2/bits/petsc_vector_equality_4.output diff --git a/tests/bits/petsc_vector_equality_1.cc b/tests/bits/petsc_vector_equality_1.cc new file mode 100644 index 0000000000..b663407bde --- /dev/null +++ b/tests/bits/petsc_vector_equality_1.cc @@ -0,0 +1,84 @@ +//---------------------------- petsc_vector_equality_1.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_vector_equality_1.cc --------------------------- + + +// check petsc_wrappers::Vector::operator==(petsc_wrappers::Vector) for vectors that are not +// equal + +#include "../tests.h" +#include +#include +#include +#include + + +void test (petsc_wrappers::Vector &v, + petsc_wrappers::Vector &w) +{ + // set only certain elements of each + // vector + for (unsigned int i=0; i +#include +#include +#include + + +void test (petsc_wrappers::Vector &v, + petsc_wrappers::Vector &w) +{ + // set only certain elements of each + // vector + for (unsigned int i=0; i +#include +#include +#include + + +void test (petsc_wrappers::Vector &v, + petsc_wrappers::Vector &w) +{ + // set only certain elements of each + // vector + for (unsigned int i=0; i +#include +#include +#include + + +void test (petsc_wrappers::Vector &v, + petsc_wrappers::Vector &w) +{ + // set only certain elements of each + // vector + for (unsigned int i=0; i