From: wolf Date: Tue, 17 Sep 2002 19:26:13 +0000 (+0000) Subject: Add comments, and cosmetic corrections. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffa4827f8b8a32bd3465838867155ff895beef82;p=dealii-svn.git Add comments, and cosmetic corrections. git-svn-id: https://svn.dealii.org/trunk@6444 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/fe/shapes.cc b/tests/fe/shapes.cc index 413c762c3f..4ae7d3ae7d 100644 --- a/tests/fe/shapes.cc +++ b/tests/fe/shapes.cc @@ -239,6 +239,14 @@ void test_compute_functions (const Mapping &mapping, const FiniteElement &fe, const char*) { + // generate a grid with only one + // cell, which furthermore has the + // shape of the unit cell. then the + // values/gradients/... we get from + // the FEValues object on this cell + // should really be equal to what + // we get from the finite element + // itself on the unit cell: Triangulation tr; DoFHandler dof(tr); GridGenerator::hyper_cube(tr, 0., 1.); @@ -250,11 +258,16 @@ void test_compute_functions (const Mapping &mapping, typename DoFHandler::active_cell_iterator cell = dof.begin_active(); fe_values.reinit(cell); + // check values for (unsigned int x=0; x &mapping, (fe_values.shape_value_component(i,x,c) == 0)), ExcInternalError()); }; + + // check gradients for (unsigned int x=0; x &mapping, ExcInternalError()); } + // check second derivatives double max_diff=0.; for (unsigned int x=0; x