41 std::vector<unsigned int>
const & repetitions,
42 dealii::Point<dim>
const & p1,
43 dealii::Point<dim>
const & p2,
44 ElementType
const & element_type,
45 bool const colorize =
false)
47 if(element_type == ElementType::Hypercube)
49 dealii::GridGenerator::subdivided_hyper_rectangle(tria, repetitions, p1, p2, colorize);
51 else if(element_type == ElementType::Simplex)
53 dealii::GridGenerator::subdivided_hyper_rectangle_with_simplices(
54 tria, repetitions, p1, p2, colorize);
59 dealii::ExcMessage(
"The function create_subdivided_hyper_rectangle() currently "
60 "supports ElementType::Hypercube and ElementType::Simplex."));
void create_subdivided_hyper_rectangle(dealii::Triangulation< dim > &tria, std::vector< unsigned int > const &repetitions, dealii::Point< dim > const &p1, dealii::Point< dim > const &p2, ElementType const &element_type, bool const colorize=false)
Definition hyper_rectangle.h:40