From 94063ee511974a69659e4f5d4871351855309ca3 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Fri, 6 Apr 2018 18:42:55 +0200 Subject: [PATCH] Make step-53 compatible with the new interface. --- examples/step-53/step-53.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/examples/step-53/step-53.cc b/examples/step-53/step-53.cc index d0a0b56082..eb20352517 100644 --- a/examples/step-53/step-53.cc +++ b/examples/step-53/step-53.cc @@ -210,11 +210,13 @@ namespace Step53 public: virtual Point<3> - pull_back(const Point<3> &space_point) const; + pull_back(const Point<3> &space_point) const override; virtual Point<3> - push_forward(const Point<3> &chart_point) const; + push_forward(const Point<3> &chart_point) const override; + + virtual std::unique_ptr > clone() const override; private: static const double R; @@ -251,6 +253,15 @@ namespace Step53 } + // This function is required by the interface of the Manifold base + // class, and allows you to clone the AfricaGeometry class: + std::unique_ptr > + AfricaGeometry::clone() const + { + return std::unique_ptr >(new AfricaGeometry()); + } + + // The following two functions then define the forward and inverse // transformations that correspond to the WGS 84 reference shape of // Earth. The forward transform follows the formula shown in the -- 2.39.5