From 7b30cbbbf4a49869724abb8adae6e345eea5253c Mon Sep 17 00:00:00 2001 From: kanschat Date: Mon, 12 Mar 2012 22:55:40 +0000 Subject: [PATCH] add function to output debugging information git-svn-id: https://svn.dealii.org/trunk@25264 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/meshworker/local_results.h | 40 +++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/deal.II/include/deal.II/meshworker/local_results.h b/deal.II/include/deal.II/meshworker/local_results.h index 60831927f4..08eefc2678 100644 --- a/deal.II/include/deal.II/meshworker/local_results.h +++ b/deal.II/include/deal.II/meshworker/local_results.h @@ -1,7 +1,7 @@ //--------------------------------------------------------------------------- // $Id$ // -// Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors +// Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -340,12 +340,6 @@ namespace MeshWorker * themselves are resized by * reinit(). * - * The template parameter @p - * MatrixPtr should point to - * a MatrixBlock - * instantiation in order to - * provide row and column info. - * * @note This function is * usually only called by the * assembler. @@ -407,6 +401,9 @@ namespace MeshWorker */ void reinit(const BlockIndices& local_sizes); + template + void print_debug(STREAM& os) const; + /** * The memory used by this object. */ @@ -707,8 +704,37 @@ namespace MeshWorker { return quadrature_data(k,i); } + + + template + template + void + LocalResults::print_debug(STREAM& os) const + { + os << "J: " << J.size() << std::endl; + os << "R: " << R.size() << std::endl; + for (unsigned int i=0;i