From: wolf Date: Fri, 6 Feb 2004 19:27:30 +0000 (+0000) Subject: . X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ccb9c29ee7cb6f821769ad53ba138d7e8efeeae;p=dealii-svn.git . git-svn-id: https://svn.dealii.org/trunk@8409 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/petsc_01.cc b/tests/bits/petsc_01.cc index ac4b0dd8d6..d959ab0678 100644 --- a/tests/bits/petsc_01.cc +++ b/tests/bits/petsc_01.cc @@ -12,7 +12,8 @@ //---------------------------- petsc_01.cc --------------------------- -// check setting elements in a petsc matrix using set() +// check setting elements in a petsc matrix using +// petsc_wrappers::SparseMatrix::set() #include "../tests.h" #include diff --git a/tests/bits/petsc_02.cc b/tests/bits/petsc_02.cc index 6e0ec65baa..ec62862849 100644 --- a/tests/bits/petsc_02.cc +++ b/tests/bits/petsc_02.cc @@ -12,7 +12,8 @@ //---------------------------- petsc_02.cc --------------------------- -// check setting elements in a petsc matrix using add() +// check setting elements in a petsc matrix using +// petsc_wrappers::SparseMatrix::add() #include "../tests.h" #include diff --git a/tests/bits/petsc_05.cc b/tests/bits/petsc_05.cc index 26d0b16019..9128f9d263 100644 --- a/tests/bits/petsc_05.cc +++ b/tests/bits/petsc_05.cc @@ -12,7 +12,8 @@ //---------------------------- petsc_05.cc --------------------------- -// check querying the number of nonzero elements +// check querying the number of nonzero elements in +// petsc_wrappers::SparseMatrix #include "../tests.h" #include diff --git a/tests/bits/petsc_06.cc b/tests/bits/petsc_06.cc index cefe548081..f8ab572a98 100644 --- a/tests/bits/petsc_06.cc +++ b/tests/bits/petsc_06.cc @@ -12,7 +12,7 @@ //---------------------------- petsc_06.cc --------------------------- -// check l1_norm +// check petsc_wrappers::SparseMatrix::l1_norm #include "../tests.h" #include diff --git a/tests/bits/petsc_07.cc b/tests/bits/petsc_07.cc index e91d8c37c2..2d163c3de1 100644 --- a/tests/bits/petsc_07.cc +++ b/tests/bits/petsc_07.cc @@ -12,7 +12,7 @@ //---------------------------- petsc_07.cc --------------------------- -// check linfty_norm +// check petsc_wrappers::SparseMatrix::linfty_norm #include "../tests.h" #include diff --git a/tests/bits/petsc_08.cc b/tests/bits/petsc_08.cc index 353a792c34..51fb49bd3a 100644 --- a/tests/bits/petsc_08.cc +++ b/tests/bits/petsc_08.cc @@ -12,7 +12,7 @@ //---------------------------- petsc_08.cc --------------------------- -// check l2_norm +// check petsc_wrappers::SparseMatrix::l2_norm #include "../tests.h" #include diff --git a/tests/bits/petsc_09.cc b/tests/bits/petsc_09.cc new file mode 100644 index 0000000000..ec2d14e9df --- /dev/null +++ b/tests/bits/petsc_09.cc @@ -0,0 +1,95 @@ +//---------------------------- petsc_09.cc --------------------------- +// petsc_09.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_09.cc --------------------------- + + +// check petsc_wrapper::SparseMatrix::operator *= + +#include "../tests.h" +#include +#include +#include + + +void test (petsc_wrappers::SparseMatrix &m) +{ + // first set a few entries + for (unsigned int i=0; i +#include +#include + + +void test (petsc_wrappers::SparseMatrix &m) +{ + // first set a few entries + for (unsigned int i=0; i