From: kanschat Date: Mon, 15 Aug 2011 09:52:18 +0000 (+0000) Subject: new BlockIndices functionality X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f98be2c877ab35bd676d02c18a06f74f2881446e;p=dealii-svn.git new BlockIndices functionality git-svn-id: https://svn.dealii.org/trunk@24067 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lac/block_indices.cc b/tests/lac/block_indices.cc index df70ba5460..5b7958ca53 100644 --- a/tests/lac/block_indices.cc +++ b/tests/lac/block_indices.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2007 by the deal.II authors +// Copyright (C) 2007, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -23,14 +23,10 @@ void test (const BlockIndices& idx) { const unsigned int n = idx.size(); - deallog << "blocks " << idx.size() << std::endl - << "elements " << idx.total_size() << std::endl - << "block sizes "; + deallog << "sizes: " << idx << std::endl; + deallog << "start: "; for (unsigned i=0;i v(4); for (unsigned int i=0;i0 +DEAL::push: 1:[3]->3 +DEAL::push: 2:[3 2]->5 +DEAL::sizes: 3:[0 0 0]->0 +DEAL::start: 0 0 0 DEAL:: DEAL:: -DEAL::blocks 3 -DEAL::elements 12 -DEAL::block sizes 4 4 4 -DEAL::Block start 0 4 8 +DEAL::sizes: 3:[4 4 4]->12 +DEAL::start: 0 4 8 DEAL:: 0:0:0 1:0:1 2:0:2 3:0:3 4:1:0 5:1:1 6:1:2 7:1:3 8:2:0 9:2:1 10:2:2 11:2:3 DEAL:: 0:0:0 1:0:1 2:0:2 3:0:3 4:1:0 5:1:1 6:1:2 7:1:3 8:2:0 9:2:1 10:2:2 11:2:3 -DEAL::blocks 4 -DEAL::elements 10 -DEAL::block sizes 4 3 2 1 -DEAL::Block start 0 4 7 9 +DEAL::push: 4:[4 4 4 2]->14 +DEAL::push: 5:[4 4 4 2 5]->19 +DEAL::sizes: 6:[4 4 4 2 5 4]->23 +DEAL::start: 0 4 8 12 14 19 +DEAL:: 0:0:0 1:0:1 2:0:2 3:0:3 4:1:0 5:1:1 6:1:2 7:1:3 8:2:0 9:2:1 10:2:2 11:2:3 12:3:0 13:3:1 14:4:0 15:4:1 16:4:2 17:4:3 18:4:4 19:5:0 20:5:1 21:5:2 22:5:3 +DEAL:: 0:0:0 1:0:1 2:0:2 3:0:3 4:1:0 5:1:1 6:1:2 7:1:3 8:2:0 9:2:1 10:2:2 11:2:3 12:3:0 13:3:1 14:4:0 15:4:1 16:4:2 17:4:3 18:4:4 19:5:0 20:5:1 21:5:2 22:5:3 +DEAL::sizes: 4:[4 3 2 1]->10 +DEAL::start: 0 4 7 9 DEAL:: 0:0:0 1:0:1 2:0:2 3:0:3 4:1:0 5:1:1 6:1:2 7:2:0 8:2:1 9:3:0 DEAL:: 0:0:0 1:0:1 2:0:2 3:0:3 4:1:0 5:1:1 6:1:2 7:2:0 8:2:1 9:3:0