From: Luca Heltai Date: Fri, 6 Apr 2018 16:42:55 +0000 (+0200) Subject: Make step-53 compatible with the new interface. X-Git-Tag: v9.0.0-rc1~196^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94063ee511974a69659e4f5d4871351855309ca3;p=dealii.git Make step-53 compatible with the new interface. --- 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