]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace use of 'auto' for variables. This is only allowed in C++11. 85/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 15 Aug 2014 04:04:39 +0000 (23:04 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 15 Aug 2014 04:04:39 +0000 (23:04 -0500)
tests/manifold/cylindrical_manifold_01.cc
tests/manifold/function_manifold_01.cc
tests/manifold/spherical_manifold_01.cc

index 62387251e3a77272131086cad0874c746c2a714f..71dfd528b64ec08fbec37fba0de282e61946f444 100644 (file)
@@ -1,5 +1,5 @@
 //----------------------------  cylindrical_manifold_01.cc  ---------------------------
-//    Copyright (C) 2011, 2013 by the mathLab team.
+//    Copyright (C) 2011, 2013, 2014 by the mathLab team.
 //
 //    This file is subject to LGPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -37,7 +37,7 @@ void test(unsigned int ref=1)
   Triangulation<dim,spacedim> tria;
   GridGenerator::cylinder (tria);
 
-  for(auto cell = tria.begin_active(); cell != tria.end(); ++cell) {
+  for(typename Triangulation<dim,spacedim>::active_cell_iterator cell = tria.begin_active(); cell != tria.end(); ++cell) {
     cell->set_all_manifold_ids(1);
   }
   
index 6ae95e893d840ba732ba158d0d98f23f798afe9d..ed924a12914e709b5135c46f5c7e37992d380a6e 100644 (file)
@@ -1,5 +1,5 @@
 //----------------------------  function_manifold ---------------------------
-//    Copyright (C) 2011, 2013 by the mathLab team.
+//    Copyright (C) 2011, 2013, 2014 by the mathLab team.
 //
 //    This file is subject to LGPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -55,7 +55,7 @@ void test(unsigned int ref=1)
   Triangulation<dim,spacedim> tria;
   GridGenerator::hyper_cube (tria, 0, 1);
 
-  for(auto cell = tria.begin_active(); cell != tria.end(); ++cell) {
+  for(typename Triangulation<dim,spacedim>::active_cell_iterator cell = tria.begin_active(); cell != tria.end(); ++cell) {
     cell->set_all_manifold_ids(1);
   }
   
index e6454124525f4cbb3235db212928e30ab676d535..76cd2c43556231f02a00e8cd83491dcd1a5d6bcf 100644 (file)
@@ -1,5 +1,5 @@
 //----------------------------  spherical_manifold_01.cc  ---------------------------
-//    Copyright (C) 2011, 2013 by the mathLab team.
+//    Copyright (C) 2011, 2013, 2014 by the mathLab team.
 //
 //    This file is subject to LGPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -37,7 +37,7 @@ void test(unsigned int ref=1)
   Triangulation<dim,spacedim> tria;
   GridGenerator::hyper_shell (tria, Point<spacedim>(), .3, .6, 12);
 
-  for(auto cell = tria.begin_active(); cell != tria.end(); ++cell) {
+  for(typename Triangulation<dim,spacedim>::active_cell_iterator cell = tria.begin_active(); cell != tria.end(); ++cell) {
     cell->set_all_manifold_ids(1);
   }
   

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.