From 039dfd56feb7100d3cbc656f5e2166366377f847 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth 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 +++++++++++++++++++++++++++ 4 files changed, 340 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 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