]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix manifold_lib compilation 2398/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 23 Mar 2016 15:49:03 +0000 (16:49 +0100)
committerTimo Heister <timo.heister@gmail.com>
Wed, 23 Mar 2016 15:49:03 +0000 (16:49 +0100)
It turns out clang doesn't like the declaration based on constants.

include/deal.II/grid/manifold_lib.h

index bca3ad4473fe7721b25a1a1efdaf73c79ac3a645..b366d1cc0050d24720bec699e3e97de42f1871ce 100644 (file)
@@ -365,21 +365,21 @@ public:
   /**
    * Pull back operation.
    */
-  virtual Point<chartdim>
-  pull_back(const Point<spacedim> &p) const;
+  virtual Point<3>
+  pull_back(const Point<3> &p) const;
 
   /**
    * Push forward operation.
    */
-  virtual Point<spacedim>
-  push_forward(const Point<chartdim> &chart_point) const;
+  virtual Point<3>
+  push_forward(const Point<3> &chart_point) const;
 
   /**
    * Gradient.
    */
   virtual
-  DerivativeForm<1,chartdim,spacedim>
-  push_forward_gradient(const Point<chartdim> &chart_point) const;
+  DerivativeForm<1,3,3>
+  push_forward_gradient(const Point<3> &chart_point) const;
 
 private:
   double r, R;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.