]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Reindent two tests.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 May 2012 08:26:37 +0000 (08:26 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 May 2012 08:26:37 +0000 (08:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@25565 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/find_cells_adjacent_to_vertex_1.cc
tests/bits/find_cells_adjacent_to_vertex_2.cc

index 27cd5edfcaaa0e9a70cd2b1185c501e32669ee7f..f29721f18c1f818fecda257be928e5ef21d9773c 100644 (file)
@@ -1,8 +1,8 @@
 //  ---------------- find_cells_adjacent_to_vertex_1.cc  ------------------
 //    $Id$
-//    Version: $Name$ 
+//    Version: $Name$
 //
-//    Copyright (C) 2006 by the deal.II authors and Ralf B. Schulz
+//    Copyright (C) 2006, 2012 by the deal.II authors and Ralf B. Schulz
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 
 void check (Triangulation<2> &tria)
 {
-   for(unsigned i=0; i<tria.n_vertices(); i++)
-      {
-         std::vector<Triangulation<2>::active_cell_iterator>
-            cells = GridTools::find_cells_adjacent_to_vertex(tria, i);
+  for(unsigned i=0; i<tria.n_vertices(); i++)
+    {
+      std::vector<Triangulation<2>::active_cell_iterator>
+       cells = GridTools::find_cells_adjacent_to_vertex(tria, i);
 
-         deallog << "Vertex " << i << " at " << tria.get_vertices()[i] << ": " << cells.size() << " cells" << std::endl;
+      deallog << "Vertex " << i << " at " << tria.get_vertices()[i] << ": " << cells.size() << " cells" << std::endl;
 
-         for(unsigned c=0; c<cells.size(); c++) {
-            for (unsigned int v=0; v<GeometryInfo<2>::vertices_per_cell; ++v)
-               deallog << "<" << cells[c]->vertex(v) << "> ";
-            deallog << std::endl;
-         }
+      for(unsigned c=0; c<cells.size(); c++) {
+       for (unsigned int v=0; v<GeometryInfo<2>::vertices_per_cell; ++v)
+         deallog << "<" << cells[c]->vertex(v) << "> ";
+       deallog << std::endl;
       }
+    }
 }
 
 
-int main () 
+int main ()
 {
   std::ofstream logfile("find_cells_adjacent_to_vertex_1/output");
   deallog.attach(logfile);
@@ -80,6 +80,3 @@ int main ()
       deallog << exc.what() << std::endl;
     }
 }
-
-  
-  
index 853555993ced5d8af8d9b2df8037c14a339d9dd6..08923262509fee09866619d8745287aa04e18086 100644 (file)
@@ -1,8 +1,8 @@
 //  ---------------- find_cells_adjacent_to_vertex_2.cc  ------------------
 //    $Id$
-//    Version: $Name$ 
+//    Version: $Name$
 //
-//    Copyright (C) 2006 by the deal.II authors and Ralf B. Schulz
+//    Copyright (C) 2006, 2012 by the deal.II authors and Ralf B. Schulz
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 
 void check (Triangulation<3> &tria)
 {
-   for(unsigned i=0; i<tria.n_vertices(); i++)
-      {
-         std::vector<Triangulation<3>::active_cell_iterator>
-            cells = GridTools::find_cells_adjacent_to_vertex(tria, i);
+  for(unsigned i=0; i<tria.n_vertices(); i++)
+    {
+      std::vector<Triangulation<3>::active_cell_iterator>
+       cells = GridTools::find_cells_adjacent_to_vertex(tria, i);
 
-         deallog << "Vertex " << i << " at " << tria.get_vertices()[i] << ": " << cells.size() << " cells" << std::endl;
+      deallog << "Vertex " << i << " at " << tria.get_vertices()[i] << ": " << cells.size() << " cells" << std::endl;
 
-         for(unsigned c=0; c<cells.size(); c++) {
-            for (unsigned int v=0; v<GeometryInfo<3>::vertices_per_cell; ++v)
-               deallog << "<" << cells[c]->vertex(v) << "> ";
-            deallog << std::endl;
-         }
+      for(unsigned c=0; c<cells.size(); c++) {
+       for (unsigned int v=0; v<GeometryInfo<3>::vertices_per_cell; ++v)
+         deallog << "<" << cells[c]->vertex(v) << "> ";
+       deallog << std::endl;
       }
+    }
 }
 
 
-int main () 
+int main ()
 {
   std::ofstream logfile("find_cells_adjacent_to_vertex_2/output");
   deallog.attach(logfile);
@@ -69,6 +69,3 @@ int main ()
       deallog << exc.what() << std::endl;
     }
 }
-
-  
-  

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.