<h3>Specific improvements</h3>
<ol>
+ <li> Improved: GridGenerator::hyper_cube() accepts a
+ <code>colorize</code> argument.
+ <br>
+ (Guido Kanschat, 2014/06/23)
+ </li>
+
<li> New: Functions DoFTools::extract_locally_relevant_dofs(),
parallel::distributed::refine_and_coarsen_fixed_number() and
parallel::distributed::refine_and_coarsen_fixed_fraction() are
namespace GridGenerator
{
/**
- * Initialize the given triangulation with a hypercube (line in 1D, square
- * in 2D, etc) consisting of exactly one cell. The hypercube volume is the
- * tensor product interval <i>[left,right]<sup>dim</sup></i> in the present
- * number of dimensions, where the limits are given as arguments. They
- * default to zero and unity, then producing the unit hypercube. All
- * boundary indicators are set to zero ("not colorized") for 2d and 3d. In
- * 1d the indicators are colorized, see hyper_rectangle().
+ * Initialize the given triangulation with a hypercube (line in 1D,
+ * square in 2D, etc) consisting of exactly one cell. The hypercube
+ * volume is the tensor product interval
+ * \f$ [left,right]^{\text{dim}}\f$ in the present number of
+ * dimensions, where the limits are given as arguments. They default
+ * to zero and unity, then producing the unit hypercube. If the
+ * argument `colorize` is false, all boundary indicators are set to
+ * zero ("not colorized") for 2d and 3d. If it is true, the boundary
+ * is colorized as in hyper_rectangle(). In 1d the indicators are
+ * always colorized, see hyper_rectangle().
*
* @image html hyper_cubes.png
*
template <int dim, int spacedim>
void hyper_cube (Triangulation<dim,spacedim> &tria,
const double left = 0.,
- const double right= 1.);
+ const double right= 1.,
+ const bool colorize= false);
/**
* Same as hyper_cube(), but with the difference that not only one cell is
template <int dim, int spacedim>
void hyper_cube (Triangulation<dim,spacedim> &tria,
const double left,
- const double right)
+ const double right,
+ const bool colorize)
{
Assert (left < right,
ExcMessage ("Invalid left-to-right bounds of hypercube"));
p1(i) = left;
p2(i) = right;
}
- hyper_rectangle (tria, p1, p2);
+ hyper_rectangle (tria, p1, p2, colorize);
}
template void
hyper_cube<deal_II_dimension, deal_II_space_dimension> (
- Triangulation<deal_II_dimension, deal_II_space_dimension> &, const double, const double);
+ Triangulation<deal_II_dimension, deal_II_space_dimension> &, const double, const double, const bool);
template
void