In the current setup, steps-1 and 2 first set all manifold ids, and only
then attach a manifold object. This invites the question what the triangulation
would do in between. On the other hand, we can easily fix this by first
attaching a manifold object to the triangulation for manifold_id zero,
and only then set the manifold_ids of cells and faces to zero.
// topic; if you're confused about what exactly is happening here,
// you may want to look at the @ref GlossManifoldIndicator "glossary
// entry on this topic".)
- triangulation.set_all_manifold_ids(0);
const SphericalManifold<2> manifold_description(center);
triangulation.set_manifold (0, manifold_description);
+ triangulation.set_all_manifold_ids(0);
// In order to demonstrate how to write a loop over all cells, we will
// refine the grid in five steps towards the inner circle of the domain:
5 );
static const SphericalManifold<2> manifold_description(center);
- triangulation.set_all_manifold_ids(0);
triangulation.set_manifold (0, manifold_description);
+ triangulation.set_all_manifold_ids(0);
for (unsigned int step=0; step<3; ++step)
{
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