In addition, disable usage of the class by throwing an exception.
This class is not as useful in 1D as it is in higher spatial dimensions, but
compiling it in the library improves generic programming (i.e., one can write a
solver that runs in 1D and 2D and on a 2D execution path can use
TransfiniteInterpolationManifold).
* has children.
*/
bool has_children () const;
+
+ /**
+ * Dummy function that always returns numbers::invalid_manifold_id.
+ */
+ types::manifold_id manifold_id () const;
};
+template <int structdim, int dim, int spacedim>
+types::manifold_id
+InvalidAccessor<structdim, dim, spacedim>::manifold_id () const
+{
+ return numbers::invalid_manifold_id;
+}
+
+
+
/*------------------------ Functions: TriaAccessor ---------------------------*/
:
triangulation(nullptr),
level_coarse (-1)
-{}
+{
+ AssertThrow(dim > 1, ExcNotImplemented());
+}
Point<AccessorType::space_dimension>
compute_transfinite_interpolation(const AccessorType &cell,
const Point<1> &chart_point,
- const bool cell_is_flat)
+ const bool /*cell_is_flat*/)
{
return cell.vertex(0) * (1.-chart_point[0]) + cell.vertex(1) * chart_point[0];
}
#if deal_II_dimension <= deal_II_space_dimension
template class PolarManifold<deal_II_dimension, deal_II_space_dimension>;
template class SphericalManifold<deal_II_dimension, deal_II_space_dimension>;
-#if deal_II_dimension > 1
template class TransfiniteInterpolationManifold<deal_II_dimension, deal_II_space_dimension>;
#endif
-#endif
#if deal_II_dimension == deal_II_space_dimension
template class TorusManifold<deal_II_dimension>;
#endif
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