From ffb6f03305c1656b4381d1a822ca9734753d8c94 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 21 Jan 2016 11:01:10 -0500 Subject: [PATCH] fix test --- tests/codim_one/error_estimator_02.cc | 18 +++--- tests/codim_one/error_estimator_02.output | 73 +++++++++++++++++++++++ 2 files changed, 84 insertions(+), 7 deletions(-) diff --git a/tests/codim_one/error_estimator_02.cc b/tests/codim_one/error_estimator_02.cc index 96a1c3962d..e54befd854 100644 --- a/tests/codim_one/error_estimator_02.cc +++ b/tests/codim_one/error_estimator_02.cc @@ -48,7 +48,7 @@ public: virtual double value (const Point &p, const unsigned int component) const { - return p(0)*p(0)+p(0)*p(1); + return p(0)*p(0)+2.0*p(0)*p(1); } virtual void vector_value (const Point &p, @@ -89,6 +89,13 @@ void make_mesh (Triangulation &tria) GridGenerator::extract_boundary_mesh (volume_mesh, tria, boundary_ids); tria.refine_global (2); + typename Triangulation::active_cell_iterator + cell = tria.begin_active(); + for (; cell != tria.end(); ++cell) + if (cell->center()[1]<1e-10 && + (spacedim!=3 || cell->center()[2]<0.5)) + cell->set_refine_flag(); + tria.execute_coarsening_and_refinement (); } @@ -110,9 +117,6 @@ check () MappingQ mapping(3); Quadrature &q_face = get_q_face(); - std::map*> neumann_bc; - neumann_bc[0] = &function; - Vector v (dof.n_dofs()); VectorTools::interpolate (mapping, dof, function, v); @@ -149,12 +153,12 @@ check () int main () { - initlog(); + initlog(true); - deallog.push ("1d"); + deallog.push ("<1,2>"); check<1,2> (); deallog.pop(); - deallog.push ("2d"); + deallog.push ("<2,3>"); check<2,3> (); deallog.pop(); } diff --git a/tests/codim_one/error_estimator_02.output b/tests/codim_one/error_estimator_02.output index e69de29bb2..de3f9c8bd7 100644 --- a/tests/codim_one/error_estimator_02.output +++ b/tests/codim_one/error_estimator_02.output @@ -0,0 +1,73 @@ + +DEAL:<1,2>::Estimated error indicators: +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::1.00000 +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::0 +DEAL:<1,2>::OK +DEAL:<2,3>::Estimated error indicators: +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::0 +DEAL:<2,3>::OK -- 2.39.5