]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
New test that presently fails.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Oct 2003 19:19:01 +0000 (19:19 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Oct 2003 19:19:01 +0000 (19:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@8126 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/Makefile
tests/bits/mapping_q4_3d.cc [new file with mode: 0644]

index 43a0f890558b0d2bb8e1277f84a50a7c856ed874..312ecc61c710dea913b1478ff7626bc632798b8a 100644 (file)
@@ -124,6 +124,7 @@ normals_2.exe           : normals_2.g.$(OBJEXT)            $(libraries)
 normals_3.exe           : normals_3.g.$(OBJEXT)            $(libraries)
 normals_4.exe           : normals_4.g.$(OBJEXT)            $(libraries)
 mapping_cartesian_1.exe : mapping_cartesian_1.g.$(OBJEXT)  $(libraries)
+mapping_q4_3d.exe       : mapping_q4_3d.g.$(OBJEXT)        $(libraries)
 q_points.exe            : q_points.g.$(OBJEXT)             $(libraries)
 q_point_sum_1.exe       : q_point_sum_1.g.$(OBJEXT)        $(libraries)
 q_point_sum_2.exe       : q_point_sum_2.g.$(OBJEXT)        $(libraries)
@@ -170,6 +171,7 @@ tests = anna_1 anna_2 anna_3 anna_4 anna_5 anna_6 \
        q_point_sum_1 q_point_sum_2 q_point_sum_3 q_point_sum_4 \
        volume_1 volume_2 volume_3 volume_4 \
        mapping_cartesian_1 \
+       mapping_q4_3d \
        q_points
 
 ############################################################
diff --git a/tests/bits/mapping_q4_3d.cc b/tests/bits/mapping_q4_3d.cc
new file mode 100644 (file)
index 0000000..2a0b39a
--- /dev/null
@@ -0,0 +1,53 @@
+//----------------------------  mapping_q4_3d.cc  ---------------------------
+//    $Id$
+//    Version: $Name$
+//
+//    Copyright (C) 2003 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//----------------------------  mapping_q4_3d.cc  ---------------------------
+
+
+// this test used to fail somewhere in the 3d parts of MappingQ for
+// fourth order mappings
+
+#include <base/logstream.h>
+#include <base/quadrature_lib.h>
+#include <grid/tria.h>
+#include <grid/tria_accessor.h>
+#include <grid/tria_iterator.h>
+#include <grid/grid_generator.h>
+#include <dofs/dof_handler.h>
+#include <fe/fe_q.h>
+#include <fe/fe_values.h>
+#include <fe/mapping_q.h>
+
+#include <fstream>
+
+
+int main () 
+{
+  std::ofstream logfile("mapping_q4_3d.output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  Triangulation<3> coarse_grid;
+  GridGenerator::hyper_cube (coarse_grid, -1, 1);
+  coarse_grid.refine_global (1);
+
+  FE_Q<3> fe(1);
+  DoFHandler<3> dof_handler (coarse_grid);
+  dof_handler.distribute_dofs (fe);
+
+  MappingQ<3> mapping(4);
+  QGauss3<2> q_face;
+  FEFaceValues<3> fe_face_values (mapping, fe, q_face,
+                                  update_normal_vectors | update_JxW_values);
+  fe_face_values.reinit (dof_handler.begin_active(), 0);
+}
+
+  

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.