]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FEPointEvaluation: test FE_DGQ(0) 12215/head
authorPeter Munch <peterrmuench@gmail.com>
Sun, 16 May 2021 08:22:45 +0000 (10:22 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sun, 16 May 2021 08:22:45 +0000 (10:22 +0200)
tests/fe/point_evaluation_02.cc
tests/fe/point_evaluation_02.output

index 98556e85ab504bce3eba22c987415e2e09ee39e6..20b50fdf98752c1434ebd0b00a763a3039a3c92d 100644 (file)
@@ -51,7 +51,7 @@ test(const unsigned int degree)
   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;
@@ -135,6 +135,7 @@ main()
   initlog();
   deallog << std::setprecision(10);
 
+  test<1>(0);
   test<1>(3);
   test<2>(2);
   test<2>(6);
index 5c22522d62200c1356eddf4350cefc04b7caf33a..80c3dd39b2b1d239780dfa0bea66b1076adb668a 100644 (file)
@@ -1,4 +1,37 @@
 
+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

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


Typeset in Trocchi and Trocchi Bold Sans Serif.