From: guido Date: Tue, 11 Jul 2006 16:12:14 +0000 (+0000) Subject: oops, that should not have been checked in X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cadd5e8eebddece2f5245f072cbdcedc7f1eaac9;p=dealii-svn.git oops, that should not have been checked in git-svn-id: https://svn.dealii.org/trunk@13354 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/dof_tools_01c.cc b/tests/bits/dof_tools_01c.cc index a6e3d1d604..7a402f7ccd 100644 --- a/tests/bits/dof_tools_01c.cc +++ b/tests/bits/dof_tools_01c.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2003, 2004, 2006 by the deal.II authors +// Copyright (C) 2003, 2004 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -38,22 +38,17 @@ check_this (const DoFHandler &dof_handler) // create sparsity pattern const unsigned int n_components = dof_handler.get_fe().n_components(); - const unsigned int n_blocks = dof_handler.get_fe().n_blocks(); - - BlockSparsityPattern sp (n_blocks, - n_blocks); - std::vector dofs_per_component(n_blocks); - DoFTools::count_dofs_per_block (dof_handler, - dofs_per_component); - BlockIndices block_indices(dofs_per_component); - - std::vector > - row_length(n_blocks, std::vector(dof_handler.n_dofs())); - Table<2,DoFTools::Coupling> couplings(n_components, n_components); - couplings.fill(DoFTools::always); - DoFTools::compute_row_length_vector(dof_handler, row_length, - couplings, couplings); - sp.reinit(block_indices, block_indices, row_length); + BlockSparsityPattern sp (n_components, + n_components); + std::vector dofs_per_component(n_components); + DoFTools::count_dofs_per_component (dof_handler, + dofs_per_component); + for (unsigned int i=0; i