From e3b16f9fec15e6b96cc37aac73c2f24a7620c60d Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 17 Jan 2003 19:24:49 +0000 Subject: [PATCH] Get rid of FEValues::get_cell and get_face. git-svn-id: https://svn.dealii.org/trunk@6932 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe_values.h | 41 -------------------------- deal.II/deal.II/source/fe/fe_values.cc | 5 +--- deal.II/doc/news/2002/c-3-4.html | 10 +++++++ 3 files changed, 11 insertions(+), 45 deletions(-) diff --git a/deal.II/deal.II/include/fe/fe_values.h b/deal.II/deal.II/include/fe/fe_values.h index 4bffccd439..f4203116e8 100644 --- a/deal.II/deal.II/include/fe/fe_values.h +++ b/deal.II/deal.II/include/fe/fe_values.h @@ -719,11 +719,6 @@ class FEValuesBase : protected FEValuesData */ const std::vector & get_JxW_values () const; - /** - * Return the present cell. - */ - const typename DoFHandler::cell_iterator & get_cell() const; - /** * Constant reference to the * selected mapping object. @@ -999,12 +994,6 @@ class FEFaceValuesBase : public FEValuesBase */ const std::vector > & get_boundary_forms () const; - /** - * Return the present - * face. - */ - typename DoFHandler::face_iterator get_face() const; - /** * Return a reference to the copy * of the quadrature formula @@ -1025,15 +1014,6 @@ class FEFaceValuesBase : public FEValuesBase * formula here. */ const Quadrature quadrature; - - /** - * Stores the face or subface, - * resp., that was selected the - * last time the @p{reinit} - * function was called. Is used - * by the @p{get_face} function. - */ - typename DoFHandler::face_iterator present_face; }; @@ -1453,16 +1433,6 @@ FEValuesBase::shape_2nd_derivative_component (const unsigned int i, -template -inline -const typename DoFHandler::cell_iterator & -FEValuesBase::get_cell() const -{ - return present_cell; -} - - - template inline const FiniteElement & @@ -1507,17 +1477,6 @@ FEFaceValuesBase::normal_vector (const unsigned int i) const } -template -inline -typename DoFHandler::face_iterator -FEFaceValuesBase::get_face() const -{ - return present_face; -} - - - - template const Quadrature & FEFaceValuesBase::get_quadrature () const diff --git a/deal.II/deal.II/source/fe/fe_values.cc b/deal.II/deal.II/source/fe/fe_values.cc index 3078dafb31..ade7867c25 100644 --- a/deal.II/deal.II/source/fe/fe_values.cc +++ b/deal.II/deal.II/source/fe/fe_values.cc @@ -666,8 +666,7 @@ unsigned int FEFaceValuesBase::memory_consumption () const { return (FEValuesBase::memory_consumption () + - MemoryConsumption::memory_consumption (quadrature) + - MemoryConsumption::memory_consumption (present_face)); + MemoryConsumption::memory_consumption (quadrature)); } @@ -740,7 +739,6 @@ void FEFaceValues::reinit (const typename DoFHandler::cell_iterator &c typename FEValuesBase::ExcFEDontMatch()); this->present_cell = cell; - this->present_face = cell->face(face_no); this->get_mapping().fill_fe_face_values(cell, face_no, this->quadrature, @@ -838,7 +836,6 @@ void FESubfaceValues::reinit (const typename DoFHandler::cell_iterator ExcIndexRange (subface_no, 0, GeometryInfo::subfaces_per_face)); this->present_cell = cell; - this->present_face = cell->face(face_no); this->get_mapping().fill_fe_subface_values(cell, face_no, subface_no, this->quadrature, diff --git a/deal.II/doc/news/2002/c-3-4.html b/deal.II/doc/news/2002/c-3-4.html index e7cf96d863..0cfef36178 100644 --- a/deal.II/doc/news/2002/c-3-4.html +++ b/deal.II/doc/news/2002/c-3-4.html @@ -599,6 +599,16 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK

deal.II

    +
  1. + Changed: The FEValues::get_cell and + FEValues::get_face functions have + been removed, since they limited our inability to use this + class for other types of DoFHandlers, for example future + extensions for hp elements. +
    + (WB 2003/01/17) +

    +
  2. New: The DoF accessor classes now have a function get_fe() that returns a reference to the finite -- 2.39.5