From 9500401dc5f397216321f43974b56cfcbac14c26 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 25 Nov 2016 20:09:45 -0700 Subject: [PATCH] Change the type of ChartManifold::sub_manifold. --- include/deal.II/grid/manifold.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/deal.II/grid/manifold.h b/include/deal.II/grid/manifold.h index bee19b2757..a1fda6dfb2 100644 --- a/include/deal.II/grid/manifold.h +++ b/include/deal.II/grid/manifold.h @@ -1028,8 +1028,15 @@ private: /** * The sub_manifold object is used to compute the average of the points in * the chart coordinates system. + * + * In an ideal world, it would have type + * FlatManifold. However, this would instantiate cases + * where dim>spacedim, which leads to invalid situations. We instead + * use , which is (i) always valid, and (ii) does + * not matter at all since the first (dim) argument of manifolds is, + * in fact, ignored as far as manifold functionality is concerned. */ - const FlatManifold sub_manifold; + const FlatManifold sub_manifold; }; -- 2.39.5