]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Rename test.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Aug 2011 02:06:47 +0000 (02:06 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Aug 2011 02:06:47 +0000 (02:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@24192 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/normals_at_vertices_01.cc [moved from tests/deal.II/normals_at_vertices.cc with 74% similarity]
tests/deal.II/normals_at_vertices_01/cmp/generic [moved from tests/deal.II/normals_at_vertices/cmp/generic with 100% similarity]

similarity index 74%
rename from tests/deal.II/normals_at_vertices.cc
rename to tests/deal.II/normals_at_vertices_01.cc
index 4152885d7de0d7f35f71e8e4c2acc345e715bd38..2276c7488a42367f1a51abfc2fc5729303e1656e 100644 (file)
@@ -1,15 +1,15 @@
-//----------------------------  normals_at_vertices.cc  ---------------------------
+//----------------------------  normals_at_vertices_01.cc  ---------------------------
 //    $Id$
-//    Version: $Name$ 
+//    Version: $Name$
 //
-//    Copyright (C) 2005, 2008 by the deal.II authors
+//    Copyright (C) 2005, 2008, 2011 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.
 //
-//----------------------------  normals_at_vertices.cc  ---------------------------
+//----------------------------  normals_at_vertices_01.cc  ---------------------------
 
 
 /* Author: Ralf Hartmann, 2005 */
@@ -56,9 +56,9 @@ void create_triangulation(const unsigned int case_no,
 
 int main ()
 {
-  std::ofstream logfile ("normals_at_vertices/output");
+  std::ofstream logfile ("normals_at_vertices_01/output");
   deallog << std::setprecision (3);
-  deallog << std::fixed;  
+  deallog << std::fixed;
   deallog.attach(logfile);
   deallog.depth_console (0);
 
@@ -77,8 +77,16 @@ int main ()
          face=cell->face(face_no);
          boundary.get_normals_at_vertices(face, normals);
          for (unsigned int v=0; v<GeometryInfo<3>::vertices_per_face; ++v)
-           deallog << "  vertex=" << face->vertex(v)
-                   << ",  normal=" << normals[v] << std::endl;
+           {
+             deallog << "  vertex=" << face->vertex(v)
+                     << ",  normal=" << normals[v] << std::endl;
+
+                                              // note that we can't check
+                                              // here that the normal vector
+                                              // is, in fact, normalized,
+                                              // since the function does not
+                                              // actually guarantee that
+           }
        }
       tria.clear();
     }

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.