]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace calls to deprecated TableIndices constructor 4630/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 19 Jul 2017 14:45:02 +0000 (16:45 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 19 Jul 2017 16:22:14 +0000 (18:22 +0200)
include/deal.II/base/table.h

index 95b26b20d962cb1cba57a922796be202dc62ef9c..95ece9b5f415e14a8aa45903ac3870ea56dacece 100644 (file)
@@ -2845,8 +2845,18 @@ Table<6,T>::Table (const unsigned int size1,
                    const unsigned int size5,
                    const unsigned int size6)
   :
-  TableBase<6,T> (TableIndices<6> (size1, size2, size3, size4, size5, size6))
-{}
+  TableBase<6,T> ()
+{
+  TableIndices<6> table_indices;
+  table_indices[0] = size1;
+  table_indices[1] = size2;
+  table_indices[2] = size3;
+  table_indices[3] = size4;
+  table_indices[4] = size5;
+  table_indices[5] = size6;
+
+  TableBase<6,T>::reinit(table_indices);
+}
 
 
 
@@ -2980,8 +2990,19 @@ Table<7,T>::Table (const unsigned int size1,
                    const unsigned int size6,
                    const unsigned int size7)
   :
-  TableBase<7,T> (TableIndices<7> (size1, size2, size3, size4, size5, size6, size7))
-{}
+  TableBase<7,T> ()
+{
+  TableIndices<7> table_indices;
+  table_indices[0] = size1;
+  table_indices[1] = size2;
+  table_indices[2] = size3;
+  table_indices[3] = size4;
+  table_indices[4] = size5;
+  table_indices[5] = size6;
+  table_indices[6] = size7;
+
+  TableBase<7,T>::reinit(table_indices);
+}
 
 
 

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.