]> https://gitweb.dealii.org/ - dealii.git/commitdiff
testing for normal information
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sat, 18 Dec 2004 15:51:58 +0000 (15:51 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sat, 18 Dec 2004 15:51:58 +0000 (15:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@9818 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/geometry_info_1.cc

index 4ea35be1122e5bddcab25d99facdc688837855c1..ff7df31a28df40bece0164462397531ae0cb7f4b 100644 (file)
@@ -30,13 +30,30 @@ double rand_2 ()
 template <int dim>
 void test ()
 {
+                                  // Output normal directions for each face
+  for (unsigned int f=0;f<GeometryInfo<dim>::faces_per_cell;++f)
+    {
+      deallog << "Face " << f << ": n = ( ";
+      for (unsigned int d=0;d<dim;++d)
+       {
+         if (d != 0)
+           deallog << " , ";
+         if (d==GeometryInfo<dim>::unit_normal_direction[f])
+           deallog << GeometryInfo<dim>::unit_normal_orientation[f];
+         else
+           deallog << '0';
+       }
+      deallog << " )" << std::endl;
+    }
+  
+  
   Point<dim> p;
 
                                   // generate N random points in
                                   // [-2:2]^d, and transform them
                                   // back and forth between mother
                                   // and child cell
-  const unsigned int N = 50;
+  const unsigned int N = 7;
   for (unsigned int i=0; i<N; ++i)
     {
       for (unsigned int d=0; d<dim; ++d)

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.