From a6fbce06ef1e67cbced30d25c9b10900faeec12b Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 26 Feb 2004 23:01:06 +0000 Subject: [PATCH] Add test. git-svn-id: https://svn.dealii.org/trunk@8584 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/petsc_51.cc | 86 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 tests/bits/petsc_51.cc diff --git a/tests/bits/petsc_51.cc b/tests/bits/petsc_51.cc new file mode 100644 index 0000000000..8cbf78dbbf --- /dev/null +++ b/tests/bits/petsc_51.cc @@ -0,0 +1,86 @@ +//---------------------------- petsc_51.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_51.cc --------------------------- + + +// check copy constructor petsc_wrapper::Vector::Vector(Vector) + +#include "../tests.h" +#include +#include +#include +#include + + +void test (PETScWrappers::Vector &v) +{ + // set some entries of the vector + for (unsigned int i=0; i