From: Wolfgang Bangerth Date: Sun, 9 Aug 2015 21:27:23 +0000 (-0500) Subject: Remove is_first_cell(). X-Git-Tag: v8.4.0-rc2~638^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0cfec336c6551e78aa36995410e161f3a2236a2;p=dealii.git Remove is_first_cell(). The InternalDataBase::is_first_cell() function is now no longer used (though the value it returns is still internally used in current_update_flags()). Remove the function. --- diff --git a/include/deal.II/fe/fe.h b/include/deal.II/fe/fe.h index 94e2c40765..1268ebfbf4 100644 --- a/include/deal.II/fe/fe.h +++ b/include/deal.II/fe/fe.h @@ -430,18 +430,6 @@ public: */ UpdateFlags current_update_flags() const; - /** - * Return whether we are presently initializing data for the first cell. - * The value of the field this function is returning is set to @p true in - * the constructor, and cleared by the @p FEValues class after the first - * cell has been initialized. - * - * This function is used to determine whether we need to use the @p - * update_once flags for computing data, or whether we can use the @p - * update_each flags. - */ - bool is_first_cell () const; - /** * Set the @p first_cell flag to @p false. Used by the @p FEValues class * to indicate that we have already done the work on the first cell. @@ -464,7 +452,8 @@ public: private: /** - * The value returned by @p is_first_cell. + * Initially set to true, but reset to false when clear_first_cell() + * is called. */ bool first_cell; }; diff --git a/include/deal.II/fe/mapping.h b/include/deal.II/fe/mapping.h index 0d81c20796..bf44616aef 100644 --- a/include/deal.II/fe/mapping.h +++ b/include/deal.II/fe/mapping.h @@ -390,18 +390,6 @@ public: */ UpdateFlags current_update_flags() const; - /** - * Return whether we are presently initializing data for the first cell. - * The value of the field this function is returning is set to @p true in - * the constructor, and cleared by the @p FEValues class after the first - * cell has been initialized. - * - * This function is used to determine whether we need to use the @p - * update_once flags for computing data, or whether we can use the @p - * update_each flags. - */ - bool is_first_cell () const; - /** * Set the @p first_cell flag to @p false. Used by the @p FEValues class * to indicate that we have already done the work on the first cell. @@ -437,7 +425,8 @@ public: private: /** - * The value returned by @p is_first_cell. + * Initially set to true, but reset to false when clear_first_cell() + * is called. */ bool first_cell; }; @@ -895,16 +884,6 @@ Mapping::InternalDataBase::current_update_flags () const -template -inline -bool -Mapping::InternalDataBase::is_first_cell () const -{ - return first_cell; -} - - - template inline void diff --git a/source/fe/fe.cc b/source/fe/fe.cc index 18f846e6b8..fd00738656 100644 --- a/source/fe/fe.cc +++ b/source/fe/fe.cc @@ -126,7 +126,6 @@ InternalDataBase::initialize_2nd (const FiniteElement *element, template -inline UpdateFlags FiniteElement::InternalDataBase::current_update_flags () const { @@ -143,17 +142,6 @@ FiniteElement::InternalDataBase::current_update_flags () const template -inline -bool -FiniteElement::InternalDataBase::is_first_cell () const -{ - return first_cell; -} - - - -template -inline void FiniteElement::InternalDataBase::clear_first_cell () {