From: Guido Kanschat Date: Tue, 19 Jul 2005 11:58:05 +0000 (+0000) Subject: check new projection matrices X-Git-Tag: v8.0.0~13387 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82f34d9d6b9f626874ff74f536a005909fbbef2f;p=dealii.git check new projection matrices git-svn-id: https://svn.dealii.org/trunk@11179 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/fe/internals.cc b/tests/fe/internals.cc index 00211a681f..e0a6109365 100644 --- a/tests/fe/internals.cc +++ b/tests/fe/internals.cc @@ -93,9 +93,11 @@ check_matrices (FiniteElement& fe, const char* name) for (unsigned int i=0;i::children_per_cell;++i) { deallog << name << '<' << dim << '>' << " restriction " << i << std::endl; - print_formatted (fe.get_restriction_matrix(i), 3, 6); + if (fe.restriction_is_implemented()) + print_formatted (fe.get_restriction_matrix(i), 3, 6); deallog << name << '<' << dim << '>' << " embedding " << i << std::endl; - print_formatted (fe.get_prolongation_matrix(i), 3, 6); + if (fe.prolongation_is_implemented()) + print_formatted (fe.get_prolongation_matrix(i), 3, 6); } } @@ -130,11 +132,11 @@ main() // DGP elements presently have no // restriction matrices, so cannot // be tested -// CHECK_M(DGP,0,2); -// CHECK_M(DGP,1,2); -// CHECK_M(DGP,2,2); -// CHECK_M(DGP,3,2); -// CHECK_M(DGP,4,2); + CHECK_M(DGP,0,2); + CHECK_M(DGP,1,2); + CHECK_M(DGP,2,2); + CHECK_M(DGP,3,2); + CHECK_M(DGP,4,2); CHECK_ALL(Q,1,2); CHECK_ALL(Q,2,2); @@ -149,9 +151,9 @@ main() CHECK_M(DGQ,2,3); // see above -// CHECK_M(DGP,0,3); -// CHECK_M(DGP,1,3); -// CHECK_M(DGP,2,3); + CHECK_M(DGP,0,3); + CHECK_M(DGP,1,3); + CHECK_M(DGP,2,3); CHECK_ALL(Q,1,3); CHECK_ALL(Q,2,3);