From 3b4f37d4214ed9fad0ab58891b52414b4208caef Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 27 Feb 2004 19:46:52 +0000 Subject: [PATCH] New tests. git-svn-id: https://svn.dealii.org/trunk@8604 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/petsc_53.cc | 92 ++++++++++++++++++++++++++++++++++++++++++ tests/bits/petsc_54.cc | 92 ++++++++++++++++++++++++++++++++++++++++++ tests/bits/petsc_55.cc | 92 ++++++++++++++++++++++++++++++++++++++++++ tests/bits/petsc_56.cc | 92 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 368 insertions(+) create mode 100644 tests/bits/petsc_53.cc create mode 100644 tests/bits/petsc_54.cc create mode 100644 tests/bits/petsc_55.cc create mode 100644 tests/bits/petsc_56.cc 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