/**
* The center of the spherical coordinate system.
+ *
+ * @deprecated Use get_center() instead.
*/
+ DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(
+ "Access the center with get_center() instead.")
const Point<spacedim> center;
private:
+ /**
+ * The center of the spherical coordinate system.
+ *
+ * @note This exists to avoid warnings when using center internally.
+ */
+ const Point<spacedim> p_center;
+
/**
* Helper function which returns the periodicity associated with this
* coordinate system, according to dim, chartdim, and spacedim.
inline const Point<spacedim> &
PolarManifold<dim, spacedim>::get_center() const
{
- return center;
+ return p_center;
}
: ChartManifold<dim, spacedim, spacedim>(
PolarManifold<dim, spacedim>::get_periodicity())
, center(center)
+ , p_center(center)
{}
default:
DEAL_II_NOT_IMPLEMENTED();
}
- return p + center;
+ return p + p_center;
}
PolarManifold<dim, spacedim>::pull_back(
const Point<spacedim> &space_point) const
{
- const Tensor<1, spacedim> R = space_point - center;
+ const Tensor<1, spacedim> R = space_point - p_center;
const double rho = R.norm();
Point<spacedim> p;