From: wolf Date: Fri, 27 Feb 2004 19:46:52 +0000 (+0000) Subject: New tests. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=262a49c66e79a7151c2f4a4092ea483f4c5dcf5c;p=dealii-svn.git New tests. git-svn-id: https://svn.dealii.org/trunk@8604 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/petsc_53.cc b/tests/bits/petsc_53.cc new file mode 100644 index 0000000000..ade4680fc1 --- /dev/null +++ b/tests/bits/petsc_53.cc @@ -0,0 +1,92 @@ +//---------------------------- petsc_53.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2004 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_53.cc --------------------------- + + +// check PETScWrappers::Vector::operator() in set, and later in add-mode + +#include "../tests.h" +#include +#include +#include +#include + + +void test (PETScWrappers::Vector &v) +{ + // set only certain elements of the + // vector. have a bit pattern of where we + // actually wrote elements to + std::vector pattern (v.size(), false); + for (unsigned int i=0; i +#include +#include +#include + + +void test (PETScWrappers::Vector &v) +{ + // set only certain elements of the + // vector. have a bit pattern of where we + // actually wrote elements to + std::vector pattern (v.size(), false); + for (unsigned int i=0; i +#include +#include +#include + + +void test (PETScWrappers::Vector &v) +{ + // set only certain elements of the + // vector. have a bit pattern of where we + // actually wrote elements to + std::vector pattern (v.size(), false); + for (unsigned int i=0; i +#include +#include +#include + + +void test (PETScWrappers::Vector &v) +{ + // set only certain elements of the + // vector. have a bit pattern of where we + // actually wrote elements to + std::vector pattern (v.size(), false); + for (unsigned int i=0; i