void scale (const double scaling_factor,
Triangulation<dim, spacedim> &triangulation);
+ /**
+ * Distort the given triangulation by randomly
+ * moving around all the vertices
+ * of the grid. The direction of
+ * movement of each vertex is random, while the
+ * length of the shift vector has
+ * a value of @p factor times
+ * the minimal length of the
+ * active edges adjacent to this
+ * vertex. Note that @p factor
+ * should obviously be well below
+ * <tt>0.5</tt>.
+ *
+ * If @p keep_boundary is set to
+ * @p true (which is the
+ * default), then boundary
+ * vertices are not moved.
+ */
+ template <int dim, int spacedim>
+ void distort_random (const double factor,
+ Triangulation<dim, spacedim> &triangulation,
+ const bool keep_boundary=true);
+
/**
* Find and return the number of
* the used vertex in a given
* @p true (which is the
* default), then boundary
* vertices are not moved.
+ *
+ * @deprecated Use GridTools::distort_random instead.
*/
void distort_random (const double factor,
- const bool keep_boundary=true);
+ const bool keep_boundary=true) DEAL_II_DEPRECATED;
/**
}
+ template <int dim, int spacedim>
+ void
+ distort_random (const double factor,
+ Triangulation<dim, spacedim> &triangulation,
+ const bool keep_boundary)
+ {
+ //TODO: Move implementation of this function into the current
+ // namespace
+ triangulation.distort_random (factor, keep_boundary);
+ }
+
template <int dim, template <int, int> class Container, int spacedim>
unsigned int
void scale<deal_II_dimension> (const double,
Triangulation<deal_II_dimension, deal_II_space_dimension> &);
+ template
+ void distort_random<deal_II_dimension> (const double,
+ Triangulation<deal_II_dimension, deal_II_space_dimension> &,
+ const bool);
+
template
void get_face_connectivity_of_cells
(const Triangulation<deal_II_dimension, deal_II_space_dimension> &triangulation,