From 0c91819cc6b0e14d68b4b0e0e6e7c1502baa4695 Mon Sep 17 00:00:00 2001 From: heister Date: Mon, 6 May 2013 02:43:18 +0000 Subject: [PATCH] document a bug git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29461 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/petsc/sparse_matrix_02.cc | 100 +++++++++++++++++++++++ tests/petsc/sparse_matrix_02/cmp/generic | 2 + 2 files changed, 102 insertions(+) create mode 100644 tests/petsc/sparse_matrix_02.cc create mode 100644 tests/petsc/sparse_matrix_02/cmp/generic diff --git a/tests/petsc/sparse_matrix_02.cc b/tests/petsc/sparse_matrix_02.cc new file mode 100644 index 0000000000..da37b6252f --- /dev/null +++ b/tests/petsc/sparse_matrix_02.cc @@ -0,0 +1,100 @@ +//---------------------------- petsc_sparse_matrix_vector_01.cc --------------------------- +// $Id: sparse_matrix_vector_01.cc 29164 2013-04-03 16:42:17Z heister $ +// Version: $Name$ +// +// Copyright (C) 2004, 2005 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_sparse_matrix_vector_01.cc --------------------------- + + +// document that SparseMatrix::operator= is broken + +#include "../tests.h" +#include +#include +#include +#include +#include + + +void test () +{ + PETScWrappers::SparseMatrix m(10,10,10); + for (unsigned int i=0; i