From: wolf Date: Mon, 9 Feb 2004 20:12:43 +0000 (+0000) Subject: New tests. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db614b71bc54b04fef29f6ffbca4e80c55ba1c02;p=dealii-svn.git New tests. git-svn-id: https://svn.dealii.org/trunk@8440 0785d39b-7218-0410-832d-ea1e28bc413d --- 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