else
GridGenerator::subdivided_hyper_cube(tria, 2, 0, 1);
- MappingQGeneric<dim> mapping(degree);
+ MappingQGeneric<dim> mapping(std::max<unsigned int>(1, degree));
deallog << "Mapping of degree " << degree << std::endl;
std::vector<Point<dim>> unit_points;
initlog();
deallog << std::setprecision(10);
+ test<1>(0);
test<1>(3);
test<2>(2);
test<2>(6);
+DEAL::Mapping of degree 0
+DEAL::Cell with center 0.2500000000
+DEAL::0.000000000: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.02941176471: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.05882352941: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.08823529412: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.1176470588: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.1470588235: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.1764705882: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.2058823529: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.2352941176: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.2647058824: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.2941176471: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.3235294118: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.3529411765: 0.2500000000 error value 0.000000000 error grad 0.000000000
+DEAL::
+DEAL::3.250000000
+DEAL::Cell with center 0.7500000000
+DEAL::0.5000000000: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.5294117647: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.5588235294: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.5882352941: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.6176470588: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.6470588235: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.6764705882: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.7058823529: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.7352941176: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.7647058824: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.7941176471: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.8235294118: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::0.8529411765: 0.7500000000 error value 0.000000000 error grad 0.000000000
+DEAL::
+DEAL::9.750000000
DEAL::Mapping of degree 3
DEAL::Cell with center 0.2500000000
DEAL::0.000000000: 0.000000000 error value 0.000000000 error grad 1.110223025e-16