// check
-// DoFTools::lexicographic_to_hierarchic_numbering
+// FETools::lexicographic_to_hierarchic_numbering
template <int dim>
{
deallog << "Checking " << name << " in " << dim << "d:" << std::endl;
- std::vector<unsigned int> n(fe.dofs_per_cell);
- FETools::lexicographic_to_hierarchic_numbering(fe, n);
+ const std::vector<unsigned int> n =
+ FETools::lexicographic_to_hierarchic_numbering<dim>(fe.degree);
for (unsigned int i = 0; i < fe.dofs_per_cell; ++i)
deallog << n[i] << " ";
deallog << std::endl;
// check
-// DoFTools::hierarchic_to_lexicographic_numbering
+// FETools::hierarchic_to_lexicographic_numbering
template <int dim>
{
deallog << "Checking " << name << " in " << dim << "d:" << std::endl;
- std::vector<unsigned int> n(fe.dofs_per_cell);
- FETools::hierarchic_to_lexicographic_numbering(fe, n);
+ const std::vector<unsigned int> n =
+ FETools::hierarchic_to_lexicographic_numbering<dim>(fe.degree);
for (unsigned int i = 0; i < fe.dofs_per_cell; ++i)
deallog << n[i] << " ";
deallog << std::endl;
// check invertability of the map from
-// DoFTools::hierarchic_to_lexicographic_numbering
+// FETools::hierarchic_to_lexicographic_numbering
// to
-// DoFTools::lexicographic_to_hierarchic_numbering
+// FETools::lexicographic_to_hierarchic_numbering
template <int dim>
{
deallog << "Checking " << name << " in " << dim << "d:" << std::endl;
- std::vector<unsigned int> n1(fe.dofs_per_cell);
- FETools::hierarchic_to_lexicographic_numbering(fe, n1);
+ const std::vector<unsigned int> n1 =
+ FETools::hierarchic_to_lexicographic_numbering<dim>(fe.degree);
- std::vector<unsigned int> n2(fe.dofs_per_cell);
- FETools::lexicographic_to_hierarchic_numbering(fe, n2);
+ const std::vector<unsigned int> n2 =
+ FETools::lexicographic_to_hierarchic_numbering<dim>(fe.degree);
for (unsigned int i = 0; i < fe.dofs_per_cell; ++i)
{
// identity. output the two maps to
// generate some output for
// automatic comparison
- std::vector<unsigned int> l2h(fe.dofs_per_cell);
- FETools::lexicographic_to_hierarchic_numbering(fe, l2h);
+ const std::vector<unsigned int> l2h =
+ FETools::lexicographic_to_hierarchic_numbering<dim>(fe.degree);
for (unsigned int i = 0; i < dofs_per_cell; ++i)
{
Assert(l2h[hierarchic_to_lexicographic_numbering[i]] == i,
// finally, we also have the
// forward map in the lib, so check
// for equality
- std::vector<unsigned int> h2l(fe.dofs_per_cell);
- FETools::hierarchic_to_lexicographic_numbering(fe, h2l);
+ const std::vector<unsigned int> h2l =
+ FETools::hierarchic_to_lexicographic_numbering<dim>(fe.degree);
AssertThrow(hierarchic_to_lexicographic_numbering == h2l, ExcInternalError());
}