]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix types in failing IndexSet tests 3730/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 4 Jan 2017 22:47:31 +0000 (23:47 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 4 Jan 2017 22:47:31 +0000 (23:47 +0100)
tests/base/index_set_28.cc
tests/base/index_set_29.cc

index 09d80ddc949e6196ec1a23281ca8c063d135ff7a..bb91b2b3c1be4987d3c9cfa0c5d9f3d77bb38793 100644 (file)
@@ -42,7 +42,7 @@ void test ()
 
   index_set.add_index (5);
 
-  for (unsigned int i=0; i<index_set.n_elements(); ++i)
+  for (IndexSet::size_type i=0; i<index_set.n_elements(); ++i)
     {
       deallog << index_set.nth_index_in_set(i)
               << std::endl;
@@ -52,9 +52,9 @@ void test ()
     }
   deallog << "OK" << std::endl;
 
-  for (unsigned int i=0; i<index_set.size(); ++i)
+  for (IndexSet::size_type i=0; i<index_set.size(); ++i)
     {
-      const unsigned int i_out = index_set.index_within_set(i);
+      const IndexSet::size_type i_out = index_set.index_within_set(i);
       const bool within = (i_out != numbers::invalid_dof_index);
       AssertThrow (within == index_set.is_element(i),
                    ExcInternalError());
index ae2577a440e09475ef877893362bd6ecef199abf..2d104246bae9e22d14c017d1920636072898c5ea 100644 (file)
@@ -42,7 +42,7 @@ void test ()
 
   index_set.add_index (9);
 
-  for (unsigned int i=0; i<index_set.n_elements(); ++i)
+  for (IndexSet::size_type i=0; i<index_set.n_elements(); ++i)
     {
       deallog << index_set.nth_index_in_set(i)
               << std::endl;
@@ -52,9 +52,9 @@ void test ()
     }
   deallog << "OK" << std::endl;
 
-  for (unsigned int i=0; i<index_set.size(); ++i)
+  for (IndexSet::size_type i=0; i<index_set.size(); ++i)
     {
-      const unsigned int i_out = index_set.index_within_set(i);
+      const IndexSet::size_type i_out = index_set.index_within_set(i);
       const bool within = (i_out != numbers::invalid_dof_index);
       AssertThrow (within == index_set.is_element(i),
                    ExcInternalError());

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.