From: Wolfgang Bangerth Date: Wed, 14 Nov 2012 03:25:14 +0000 (+0000) Subject: Leave two urgent TODOs for this class. X-Git-Tag: v8.0.0~1827 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3047f291d790117ff4506c2b3c2f82cba544aec5;p=dealii.git Leave two urgent TODOs for this class. git-svn-id: https://svn.dealii.org/trunk@27534 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/meshworker/vector_info.h b/deal.II/include/deal.II/meshworker/vector_info.h index e768b7a929..5f5920e5ed 100644 --- a/deal.II/include/deal.II/meshworker/vector_info.h +++ b/deal.II/include/deal.II/meshworker/vector_info.h @@ -1,7 +1,7 @@ //--------------------------------------------------------------------------- // $Id: mesh_worker_info.h 23936 2011-07-09 17:02:27Z kanschat $ // -// Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors +// Copyright (C) 2012 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -17,8 +17,10 @@ #include #include +//TODO[GK]: Remove the using directive using namespace dealii; +//TODO[GK]: Provide any kind of documentation for this class and the one below... class VectorInfo { public: @@ -28,12 +30,12 @@ class VectorInfo * selector. */ void initialize_data(const NamedData*>&data); - + template void reinit(const MeshWorker::DoFInfo& i); BlockVector& operator() (unsigned int i); - + private: std::vector > local_data; /** @@ -42,7 +44,7 @@ class VectorInfo * values in quadrature * points. */ - SmartPointer*> > global_data; + SmartPointer*> > global_data; }; @@ -50,9 +52,9 @@ class VectorInfoBox { public: typedef VectorInfo CellInfo; - + void initialize_data(const NamedData*>&data); - + template void post_cell(const MeshWorker::DoFInfoBox&) {} @@ -60,7 +62,7 @@ class VectorInfoBox template void post_faces(const MeshWorker::DoFInfoBox&) {} - + VectorInfo cell; VectorInfo boundary; VectorInfo face; @@ -84,11 +86,11 @@ void VectorInfo::reinit(const MeshWorker::DoFInfo& i) { const NamedData*>& gd = *global_data; - + for (unsigned int k=0;k& v = *gd(k); - + local_data[k].reinit(i.block_info->local()); for (unsigned int j=0;j