From 87f82f0daf0933c24c902dd661343ee105baad03 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 22 May 2013 05:27:30 +0000 Subject: [PATCH] Remove this file since it's unused, see bug report 57 at http://code.google.com/p/dealii/issues/detail?id=57. git-svn-id: https://svn.dealii.org/trunk@29543 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/news/changes.h | 6 + .../include/deal.II/meshworker/vector_info.h | 166 ------------------ 2 files changed, 6 insertions(+), 166 deletions(-) delete mode 100644 deal.II/include/deal.II/meshworker/vector_info.h diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index b600ecd77d..7f7d99099b 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -128,6 +128,12 @@ this function.
    +
  1. Removed: The file mesh_worker/vector_info.h was unused and +untested. It has thus been removed. +
    +(Wolfgang Bangerth, Guido Kanschat, 2013/05/21) +
  2. +
  3. Fixed: The method parallel::distributed::Vector::compress (VectorOperation::insert) previously set the elements of ghost elements unconditionally on the owning processor, even if they had not been touched. diff --git a/deal.II/include/deal.II/meshworker/vector_info.h b/deal.II/include/deal.II/meshworker/vector_info.h deleted file mode 100644 index 0e24b1b5f4..0000000000 --- a/deal.II/include/deal.II/meshworker/vector_info.h +++ /dev/null @@ -1,166 +0,0 @@ -//--------------------------------------------------------------------------- -// $Id$ -// -// Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 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. -// -//--------------------------------------------------------------------------- - -#ifndef __deal2__mesh_worker_vector_info_h -#define __deal2__mesh_worker_vector_info_h - -#include -#include -#include -#include - -DEAL_II_NAMESPACE_OPEN - -namespace MeshWorker -{ - /** - * This class is a simple object that can be used in - * MeshWorker::loop(). For all vectors provided in the argument to - * initialize_data(), this class generates the local data vector on a - * cell specified by reinit(). - * - * This objects of class as part of VectorInfoBox conform to the - * interface for INFOBOX laid out in the documentation of MeshWorker. - * - * See IntegrationInfo for an alternative. - * - * @author Guido Kanschat - * @date 2012 - */ - class VectorInfo - { - public: - /** - * Initialize the data - * vector and cache the - * selector. - */ - void initialize_data(const NamedData*> &data); - - /** - * Reinitialize the local data - * vectors to represent the - * information on the given cell. - */ - template - void reinit(const MeshWorker::DoFInfo &cell); - - /** - * Return local data vector - * i, which selects the - * local data from vector - * i of the - * data object - * used in initialize_data(). - */ - BlockVector &operator() (unsigned int i); - - private: - std::vector > local_data; - /** - * The global data vector - * used to compute function - * values in quadrature - * points. - */ - SmartPointer*> > global_data; - }; - - - /** - * A class conforming to the INFOBOX interface in the documentation of - * MeshWorker. This class provides local operators in - * MeshWorker::loop() with the local values of the degrees of freedom - * of global vectors, for instance for calculations based on cell - * matrices. - * - * For an alternative providing the values in quadrature points see - * IntegrationInfoBox. - * - * @author Guido Kanschat - * @date 2012 - */ - class VectorInfoBox - { - public: - typedef VectorInfo CellInfo; - - void initialize_data(const NamedData*> &data); - - template - void post_cell(const MeshWorker::DoFInfoBox &) - {} - - template - void post_faces(const MeshWorker::DoFInfoBox &) - {} - - VectorInfo cell; - VectorInfo boundary; - VectorInfo face; - VectorInfo subface; - VectorInfo neighbor; - }; - - - inline - void - VectorInfo::initialize_data(const NamedData*> &data) - { - global_data = &data; - local_data.resize(global_data->size()); - } - - - template - inline - 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 & - VectorInfo::operator() (unsigned int i) - { - AssertIndexRange(i, local_data.size()); - return local_data[i]; - } - - - inline - void - VectorInfoBox::initialize_data(const NamedData*> &data) - { - cell.initialize_data(data); - boundary.initialize_data(data); - face.initialize_data(data); - subface.initialize_data(data); - neighbor.initialize_data(data); - } - -} - -DEAL_II_NAMESPACE_CLOSE - -#endif -- 2.39.5