Skip to content

Commit af93b47

Browse files
authored
Merge pull request #4277 from jwpeterson/drop_deprecated_centroid
Drop deprecated Elem::centroid() API
2 parents 96ddf2f + 2ed9380 commit af93b47

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

include/geom/elem.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,19 +1012,6 @@ class Elem : public ReferenceCountedObject<Elem>,
10121012
*/
10131013
virtual Order default_side_order () const { return default_order(); }
10141014

1015-
#ifdef LIBMESH_ENABLE_DEPRECATED
1016-
/**
1017-
* Calls Elem::vertex_average() for backwards compatibility.
1018-
*
1019-
* \deprecated This method has now been deprecated, so it will be
1020-
* removed at some point in the future. Calls to Elem::centroid()
1021-
* in user code should be updated to either call
1022-
* Elem::vertex_average() or Elem::true_centroid() on a case by case
1023-
* basis.
1024-
*/
1025-
virtual Point centroid () const;
1026-
#endif // LIBMESH_ENABLE_DEPRECATED
1027-
10281015
/**
10291016
* \returns The "true" geometric centroid of the element, c=(cx, cy,
10301017
* cz), where:

src/geom/elem.C

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -572,23 +572,6 @@ const Elem * Elem::reference_elem () const
572572

573573

574574

575-
#ifdef LIBMESH_ENABLE_DEPRECATED
576-
Point Elem::centroid() const
577-
{
578-
libmesh_do_once(libMesh::err
579-
<< "Elem::centroid() has been deprecated. Replace with either "
580-
<< "Elem::vertex_average() to maintain existing behavior, or "
581-
<< "the more expensive Elem::true_centroid() "
582-
<< "in cases where the true 'geometric' centroid is required."
583-
<< std::endl);
584-
libmesh_deprecated();
585-
586-
return Elem::vertex_average();
587-
}
588-
#endif // LIBMESH_ENABLE_DEPRECATED
589-
590-
591-
592575
Point Elem::true_centroid() const
593576
{
594577
// The base class implementation builds a finite element of the correct

0 commit comments

Comments
 (0)