From 4e2de6f7381233406a1bd472aad1c71ab07a5f3f Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sun, 16 May 2021 10:22:45 +0200 Subject: [PATCH] FEPointEvaluation: test FE_DGQ(0) --- tests/fe/point_evaluation_02.cc | 3 ++- tests/fe/point_evaluation_02.output | 33 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/tests/fe/point_evaluation_02.cc b/tests/fe/point_evaluation_02.cc index 98556e85ab..20b50fdf98 100644 --- a/tests/fe/point_evaluation_02.cc +++ b/tests/fe/point_evaluation_02.cc @@ -51,7 +51,7 @@ test(const unsigned int degree) else GridGenerator::subdivided_hyper_cube(tria, 2, 0, 1); - MappingQGeneric mapping(degree); + MappingQGeneric mapping(std::max(1, degree)); deallog << "Mapping of degree " << degree << std::endl; std::vector> unit_points; @@ -135,6 +135,7 @@ main() initlog(); deallog << std::setprecision(10); + test<1>(0); test<1>(3); test<2>(2); test<2>(6); diff --git a/tests/fe/point_evaluation_02.output b/tests/fe/point_evaluation_02.output index 5c22522d62..80c3dd39b2 100644 --- a/tests/fe/point_evaluation_02.output +++ b/tests/fe/point_evaluation_02.output @@ -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 -- 2.39.5