From 39661689959ca915f20594fe57c39905f3e6f05c Mon Sep 17 00:00:00 2001 From: Alexander Grayver Date: Fri, 27 Jul 2018 10:23:52 +0200 Subject: [PATCH] Update tests --- tests/fe/crash_01.cc | 43 ++--------------------- tests/fe/curl_curl_01.cc | 2 +- tests/numerics/project_bv_curl_conf.cc | 2 +- tests/numerics/project_bv_curl_conf_02.cc | 2 +- 4 files changed, 5 insertions(+), 44 deletions(-) diff --git a/tests/fe/crash_01.cc b/tests/fe/crash_01.cc index fb9aae88f5..fa9535caa2 100644 --- a/tests/fe/crash_01.cc +++ b/tests/fe/crash_01.cc @@ -14,46 +14,7 @@ // --------------------------------------------------------------------- -// crash with fe nedelec reported on mailing list (01/14/2014) -/* -#0 0x00007fffeba50425 in __GI_raise (sig=) at -../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007fffeba53b8b in __GI_abort -() at abort.c:91 #2 0x00007ffff4f95895 in -dealii::deal_II_exceptions::internals::abort (exc=..., nothrow=false) at -/ssd/deal-trunk/deal.II/source/base/exceptions.cc:323 #3 0x00007ffff18ef959 in -dealii::deal_II_exceptions::internals::issue_error -( handling=dealii::deal_II_exceptions::internals::abort_on_exception, -file=0x7ffff6035000 "/ssd/deal-trunk/deal.II/source/fe/fe.cc", line=557, - function=0x7ffff6039240 "unsigned int dealii::FiniteElement::face_to_cell_index(unsigned int, unsigned int, bool, bool, bool) -const [with int dim = 3, int spacedim = 3]", cond=0x7ffff6035db0 "face_index < -this->dofs_per_face", exc_name=0x7ffff6035d78 "ExcIndexRange(face_index, 0, -this->dofs_per_face)", e=...) at -/ssd/deal-trunk/deal.II/include/deal.II/base/exceptions.h:272 #4 -0x00007ffff31708c1 in dealii::FiniteElement<3, 3>::face_to_cell_index -(this=0xa16f70, face_index=4, face=0, face_orientation=true, face_flip=false, -face_rotation=false) at /ssd/deal-trunk/deal.II/source/fe/fe.cc:556 #5 -0x00007ffff2d7fe1c in -dealii::VectorTools::internals::compute_edge_projection, false> > > (cell=..., face=0, line=3, hp_fe_values=..., -boundary_function=..., first_vector_component=0, dof_values=std::vector of -length 8, capacity 8 = {...}, dofs_processed=std::vector of length 8, -capacity 64 = {...}) at -/ssd/deal-trunk/deal.II/include/deal.II/numerics/vector_tools.templates.h:2944 -#6 0x00007ffff2d77846 in -dealii::VectorTools::project_boundary_values_curl_conforming<3> -(dof_handler=..., first_vector_component=0, boundary_function=..., -boundary_component=0 '\000', constraints=..., mapping=...) at -/ssd/deal-trunk/deal.II/include/deal.II/numerics/vector_tools.templates.h:3543 -#7 0x000000000042b479 in test<3> (fe=...) at -/ssd/deal-trunk/tests/fe/crash_01.cc:74 #8 0x0000000000429a4e in main () at -/ssd/deal-trunk/tests/fe/crash_01.cc:91 - - - - -*/ - +// Test project_boundary_values_curl_conforming_l2 #include @@ -84,7 +45,7 @@ test(FiniteElement &fe) dof_handler.distribute_dofs(fe); AffineConstraints constraints; Functions::ZeroFunction boundary_values(fe.n_components()); - VectorTools::project_boundary_values_curl_conforming( + VectorTools::project_boundary_values_curl_conforming_l2( dof_handler, 0, boundary_values, 0, constraints); } diff --git a/tests/fe/curl_curl_01.cc b/tests/fe/curl_curl_01.cc index a7d0dd1738..3b46e8cf84 100644 --- a/tests/fe/curl_curl_01.cc +++ b/tests/fe/curl_curl_01.cc @@ -309,7 +309,7 @@ MaxwellProblem::setup_system() constraints.clear(); DoFTools::make_hanging_node_constraints(dof_handler, constraints); // FE_Nedelec boundary condition. - VectorTools::project_boundary_values_curl_conforming( + VectorTools::project_boundary_values_curl_conforming_l2( dof_handler, 0, ExactSolution(), 0, constraints); constraints.close(); diff --git a/tests/numerics/project_bv_curl_conf.cc b/tests/numerics/project_bv_curl_conf.cc index 8821a532ab..d39856290d 100644 --- a/tests/numerics/project_bv_curl_conf.cc +++ b/tests/numerics/project_bv_curl_conf.cc @@ -69,7 +69,7 @@ test_boundary_values(const FiniteElement &fe) AffineConstraints constraints; constraints.clear(); - VectorTools::project_boundary_values_curl_conforming( + VectorTools::project_boundary_values_curl_conforming_l2( dof_handler, 0, boundary_function, 0, constraints); constraints.close(); constraints.print(logfile); diff --git a/tests/numerics/project_bv_curl_conf_02.cc b/tests/numerics/project_bv_curl_conf_02.cc index 846e088fee..8d68fe0f73 100644 --- a/tests/numerics/project_bv_curl_conf_02.cc +++ b/tests/numerics/project_bv_curl_conf_02.cc @@ -70,7 +70,7 @@ test_boundary_values(const FiniteElement & fe, dof_handler.distribute_dofs(fe); BoundaryFunction boundary_function; constraints.clear(); - VectorTools::project_boundary_values_curl_conforming( + VectorTools::project_boundary_values_curl_conforming_l2( dof_handler, 0, boundary_function, 0, constraints); constraints.close(); } -- 2.39.5