From b5aef3406e9f13de7452dbf9df17333f54796baa Mon Sep 17 00:00:00 2001 From: heister Date: Thu, 5 Jul 2012 15:50:15 +0000 Subject: [PATCH] update test git-svn-id: https://svn.dealii.org/trunk@25688 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/fe/mapping_real_to_unit_02.cc | 65 +------------------- tests/fe/mapping_real_to_unit_02/cmp/generic | 41 ------------ 2 files changed, 2 insertions(+), 104 deletions(-) diff --git a/tests/fe/mapping_real_to_unit_02.cc b/tests/fe/mapping_real_to_unit_02.cc index 33ecafe13f..53336d31ec 100644 --- a/tests/fe/mapping_real_to_unit_02.cc +++ b/tests/fe/mapping_real_to_unit_02.cc @@ -13,41 +13,8 @@ /* - reduced failing test. Original exception in transform_real_to_unit_cell: - -#0 0x00007fffeec931a0 in __cxa_throw () from /usr/lib64/libstdc++.so.6 -#1 0x00007ffff5215d60 in dealii::deal_II_exceptions::internals::issue_error_throw::ExcTransformationFailed> ( - file=0x7ffff6b47ce8 "/w/kwang/kwang/deal.II/source/fe/mapping_q1.cc", line=1803, - function=0x7ffff6b54e80 "dealii::Point dealii::MappingQ1::transform_real_to_unit_cell_internal(const typename dealii::Triangulation::cell_iterator&, const dealii::Point&, c"..., cond=0x7ffff6b47b3d "false", - exc_name=0x7ffff6b47fd8 "(typename Mapping::ExcTransformationFailed())", e=...) - at /w/kwang/kwang/deal.II/include/deal.II/base/exceptions.h:304 -#2 0x00007ffff5201d5f in dealii::MappingQ1<2, 2>::transform_real_to_unit_cell_internal (this=0x7ffff7dd8160, cell={ - triangulation = 0x7fffffffd2b0, - level = 1, - index = 4 -}, p={-0.27999999999999992, -0.62999999999999989}, initial_p_unit={1.4871340295728577, -0.21318360089489402}, mdata=...) - at /w/kwang/kwang/deal.II/source/fe/mapping_q1.cc:1803 -#3 0x00007ffff51ff24a in dealii::MappingQ1<2, 2>::transform_real_to_unit_cell (this=0x7ffff7dd8160, cell={ - triangulation = 0x7fffffffd2b0, - level = 1, - index = 4 -}, p={-0.27999999999999992, -0.62999999999999989}) at /w/kwang/kwang/deal.II/source/fe/mapping_q1.cc:1683 -#4 0x00007ffff4037ea2 in dealii::Functions::FEFieldFunction<2, dealii::DoFHandler<2, 2>, dealii::Vector >::compute_point_locations (this=0x7fffffffcc80, points=..., cells=..., qpoints=..., maps=...) - at /w/kwang/kwang/deal.II/include/deal.II/numerics/fe_field_function.templates.h:443 -#5 0x00007ffff4035808 in dealii::Functions::FEFieldFunction<2, dealii::DoFHandler<2, 2>, dealii::Vector >::vector_value_list (this=0x7fffffffcc80, points=..., values=...) at /w/kwang/kwang/deal.II/include/deal.II/numerics/fe_field_function.templates.h:208 -#6 0x00007ffff40355e5 in dealii::Functions::FEFieldFunction<2, dealii::DoFHandler<2, 2>, dealii::Vector >::value_list ( - this=0x7fffffffcc80, points=..., values=..., component=0) - at /w/kwang/kwang/deal.II/include/deal.II/numerics/fe_field_function.templates.h:246 -#7 0x0000000000450fd5 in Step6<2>::compute_measure (this=0x7fffffffd2b0) at step-6.cc:627 -#8 0x000000000045874c in Step6<2>::run (this=0x7fffffffd2b0) at step-6.cc:705 -#9 0x000000000045127f in main () at step-6.cc:728 - - - Note that test() only looks at the one cell that causes the failure. - -test2() is the original code using FEFieldFunction. Note that it depends on the contents of the points in the value_list (see comments). - - */ + FEFieldFunction could not deal with ExcTransformationFailed from transform_real_to_unit_cell() + */ #include "../tests.h" @@ -60,34 +27,7 @@ test2() is the original code using FEFieldFunction. Note that it depends on the #include -template -void test() -{ - const HyperBallBoundary boundary_description; - - Triangulation triangulation; - GridGenerator::hyper_ball (triangulation); - triangulation.set_boundary (0, boundary_description); - triangulation.refine_global (1); - MappingQ1< dim > mapping; - - Point p(-0.27999999999999992, -0.62999999999999989); - typename Triangulation::active_cell_iterator cell; - - for (cell = triangulation.begin_active(); - cell != triangulation.end(); cell++) - { - if (cell->level()==1 && cell->index()==4) - mapping.transform_real_to_unit_cell(cell, p); - - - } - - triangulation.set_boundary (0); - - deallog << "OK" << std::endl; -} template @@ -139,7 +79,6 @@ main() deallog.depth_console(0); deallog.threshold_double(1.e-10); - test<2>(); test2<2>(); return 0; diff --git a/tests/fe/mapping_real_to_unit_02/cmp/generic b/tests/fe/mapping_real_to_unit_02/cmp/generic index c68c1fb460..0fd8fc12f0 100644 --- a/tests/fe/mapping_real_to_unit_02/cmp/generic +++ b/tests/fe/mapping_real_to_unit_02/cmp/generic @@ -1,43 +1,2 @@ -DEAL::dim=1, spacedim=1 -DEAL::Vertex displacement: 0.00000 -DEAL::Vertex displacement: 0.0800000 -DEAL::Vertex displacement: 0.160000 -DEAL::Vertex displacement: 0.240000 -DEAL::Vertex displacement: 0.320000 -DEAL::OK -DEAL::dim=2, spacedim=2 -DEAL::Vertex displacement: 0.00000 0.00000 -DEAL::Vertex displacement: 0.0800000 0.0800000 -DEAL::Vertex displacement: 0.160000 0.160000 -DEAL::Vertex displacement: 0.240000 0.240000 -DEAL::Vertex displacement: 0.320000 0.320000 -DEAL::OK -DEAL::dim=3, spacedim=3 -DEAL::Vertex displacement: 0.00000 0.00000 0.00000 -DEAL::Vertex displacement: 0.0800000 0.0800000 0.0800000 -DEAL::Vertex displacement: 0.160000 0.160000 0.160000 -DEAL::Vertex displacement: 0.240000 0.240000 0.240000 -DEAL::Vertex displacement: 0.320000 0.320000 0.320000 -DEAL::OK -DEAL::dim=1, spacedim=2 -DEAL::Vertex displacement: 0.00000 0.00000 -DEAL::Vertex displacement: 0.0800000 0.0800000 -DEAL::Vertex displacement: 0.160000 0.160000 -DEAL::Vertex displacement: 0.240000 0.240000 -DEAL::Vertex displacement: 0.320000 0.320000 -DEAL::OK -DEAL::dim=1, spacedim=3 -DEAL::Vertex displacement: 0.00000 0.00000 0.00000 -DEAL::Vertex displacement: 0.0800000 0.0800000 0.0800000 -DEAL::Vertex displacement: 0.160000 0.160000 0.160000 -DEAL::Vertex displacement: 0.240000 0.240000 0.240000 -DEAL::Vertex displacement: 0.320000 0.320000 0.320000 -DEAL::OK -DEAL::dim=2, spacedim=3 -DEAL::Vertex displacement: 0.00000 0.00000 0.00000 -DEAL::Vertex displacement: 0.0800000 0.0800000 0.0800000 -DEAL::Vertex displacement: 0.160000 0.160000 0.160000 -DEAL::Vertex displacement: 0.240000 0.240000 0.240000 -DEAL::Vertex displacement: 0.320000 0.320000 0.320000 DEAL::OK -- 2.39.5