From e29764f61c06d6d2e92cedb77984495ca746e8e6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 10 Feb 2013 04:50:33 +0000 Subject: [PATCH] Remove test that is now no longer relevant. git-svn-id: https://svn.dealii.org/trunk@28301 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/trilinos/sparse_matrix_06.cc | 67 --------------------- tests/trilinos/sparse_matrix_06/cmp/generic | 10 --- 2 files changed, 77 deletions(-) delete mode 100644 tests/trilinos/sparse_matrix_06.cc delete mode 100644 tests/trilinos/sparse_matrix_06/cmp/generic diff --git a/tests/trilinos/sparse_matrix_06.cc b/tests/trilinos/sparse_matrix_06.cc deleted file mode 100644 index 73f32bc704..0000000000 --- a/tests/trilinos/sparse_matrix_06.cc +++ /dev/null @@ -1,67 +0,0 @@ -//----------------- trilinos_sparse_matrix_01.cc ------------------------- -// $Id$ -// Version: $Name$ -// -// Copyright (C) 2011, 2013 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. -// -//----------------- trilinos_sparse_matrix_01.cc ------------------------- - - -// test TrilinosWrappers::SparseMatrix::reinit with a dealii::SparseMatrix -// with a separate sparsity pattern that is a subset and for which we don't -// even store the diagonal - -#include "../tests.h" -#include -#include -#include -#include -#include -#include - - -int main (int argc,char **argv) -{ - Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv); - - std::ofstream logfile("sparse_matrix_06/output"); - deallog.attach(logfile); - deallog.depth_console(0); - deallog.threshold_double(1.e-10); - - SparsityPattern sparsity (5,5,5); - sparsity.add (1,2); - sparsity.add (2,3); - sparsity.add (3,4); - sparsity.add (4,3); - sparsity.compress(); - SparseMatrix matrix(sparsity); - { - double value = 1; - for (SparseMatrix::iterator p=matrix.begin(); - p != matrix.end(); ++p, ++value) - p->value() = value; - } - deallog << "Original:" << std::endl; - matrix.print_formatted (deallog.get_file_stream()); - - // create a separate sparsity pattern to use - SparsityPattern xsparsity (5,5,5,/*optimize_diagonal=*/false); - xsparsity.add (1,2); - xsparsity.add (2,3); - xsparsity.compress(); - - - // now copy everything into a Trilinos matrix - Epetra_Map map(5,5,0,Utilities::Trilinos::comm_world()); - TrilinosWrappers::SparseMatrix tmatrix; - tmatrix.reinit (map, map, matrix, 0, true, &xsparsity); - - deallog << "Copy structure only:" << std::endl; - tmatrix.print (deallog.get_file_stream()); -} diff --git a/tests/trilinos/sparse_matrix_06/cmp/generic b/tests/trilinos/sparse_matrix_06/cmp/generic deleted file mode 100644 index 98e27e0d30..0000000000 --- a/tests/trilinos/sparse_matrix_06/cmp/generic +++ /dev/null @@ -1,10 +0,0 @@ - -DEAL::Original: -1.000e+00 - 2.000e+00 3.000e+00 - 4.000e+00 5.000e+00 - 6.000e+00 7.000e+00 - 9.000e+00 8.000e+00 -DEAL::Copy structure only: -(1,2) 3.00000 -(2,3) 5.00000 -- 2.39.5