boundary = (test_case==2 ?
static_cast<Boundary<dim>*>(new Ball<dim>()) :
static_cast<Boundary<dim>*>(new CurvedLine<dim>()));
- tria->set_boundary (boundary);
+ tria->set_boundary (0, *boundary);
+ tria->set_boundary (1, *boundary);
// refine once
tria->begin_active()->set_refine_flag();
// finite element object
dof->clear ();
tria->set_boundary (0);
+ tria->set_boundary (1);
if (boundary)
delete boundary;
};
boundary = (test_case==2 ?
static_cast<Boundary<dim>*>(new Ball<dim>()) :
static_cast<Boundary<dim>*>(new CurvedLine<dim>()));
- tria->set_boundary (boundary);
+ tria->set_boundary (0, *boundary);
+ tria->set_boundary (1, *boundary);
// refine once
tria->begin_active()->set_refine_flag();
// finite element object
dof->clear ();
tria->set_boundary (0);
+ tria->set_boundary (1);
if (boundary)
delete boundary;
};
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