From 9aede594c1b68cb94b6973dbc6076387b886e19a Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 6 Apr 2017 15:38:05 -0500 Subject: [PATCH] Remove ProductSparseMatrix test --- tests/lac/matrix_lib.cc | 101 ------------------------------------ tests/lac/matrix_lib.output | 7 --- 2 files changed, 108 deletions(-) delete mode 100644 tests/lac/matrix_lib.cc delete mode 100644 tests/lac/matrix_lib.output diff --git a/tests/lac/matrix_lib.cc b/tests/lac/matrix_lib.cc deleted file mode 100644 index bab667a1c3..0000000000 --- a/tests/lac/matrix_lib.cc +++ /dev/null @@ -1,101 +0,0 @@ -// --------------------------------------------------------------------- -// -// Copyright (C) 2005 - 2015 by the deal.II authors -// -// This file is part of the deal.II library. -// -// The deal.II library is free software; you can use it, redistribute -// it, and/or modify it under the terms of the GNU Lesser General -// Public License as published by the Free Software Foundation; either -// version 2.1 of the License, or (at your option) any later version. -// The full text of the license can be found in the file LICENSE at -// the top level of the deal.II distribution. -// -// --------------------------------------------------------------------- - - - -#include "../tests.h" -#include -#include -#include -#include -#include - -#include -#include -#include - -template -void check_sparse_product(const SparseMatrix &m1, SparseMatrix &m2) -{ - Vector v(m2.n()); - Vector w(m1.m()); - deallog << "Sizes\t" << v.size() << '\t' << w.size() << std::endl; - - for (unsigned int i=0; i > mem; - - ProductSparseMatrix product(m1, m2, mem); - - product.vmult(w,v); - for (unsigned int i=0; i m1(sparsity1); - SparseMatrix m2(sparsity2); - - for (unsigned int i=0; i<2; ++i) - for (unsigned int j=0; j<3; ++j) - { - m1.set(i, j, 1.*i-j); - m2.set(j, i, 1.*i-j); - m2.set(j, 2+i, 1.*j-i); - } - check_sparse_product(m1, m2); -} diff --git a/tests/lac/matrix_lib.output b/tests/lac/matrix_lib.output deleted file mode 100644 index 9409127953..0000000000 --- a/tests/lac/matrix_lib.output +++ /dev/null @@ -1,7 +0,0 @@ - -DEAL::Sizes 4 2 -DEAL:: 1. 2. 3. 4. -DEAL:: -14. -8. -DEAL:: -28. -16. -DEAL:: -172. -88. 172. 88. -DEAL:: -344. -176. 344. 176. -- 2.39.5