]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove special treatment of the 64bit case 4325/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 28 Apr 2017 17:50:03 +0000 (19:50 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 28 Apr 2017 17:50:03 +0000 (19:50 +0200)
include/deal.II/lac/petsc_matrix_base.h

index a1f25a63cba6ab3903d2a40991ede1343dc21236..55f5214a6884bdd327a5d69bc8693b3a5a064eac 100644 (file)
@@ -1219,17 +1219,7 @@ namespace PETScWrappers
     // If we don't elide zeros, the pointers are already available...
     if (elide_zero_values == false)
       {
-#ifndef PETSC_USE_64BIT_INDICES
         col_index_ptr = reinterpret_cast<const PetscInt *>(col_indices);
-#else
-        if (column_indices.size() < n_cols)
-          column_indices.resize(n_cols);
-
-        for (size_type j=0; j<n_cols; ++j)
-          column_indices[j] = col_indices[j];
-
-        col_index_ptr = &column_indices[0];
-#endif
         col_value_ptr = values;
         n_columns = n_cols;
       }
@@ -1369,17 +1359,7 @@ namespace PETScWrappers
     // If we don't elide zeros, the pointers are already available...
     if (elide_zero_values == false)
       {
-#ifndef PETSC_USE_64BIT_INDICES
         col_index_ptr = reinterpret_cast<const PetscInt *>(col_indices);
-#else
-        if (column_indices.size() < n_cols)
-          column_indices.resize(n_cols);
-
-        for (size_type j=0; j<n_cols; ++j)
-          column_indices[j] = col_indices[j];
-
-        col_index_ptr = &column_indices[0];
-#endif
         col_value_ptr = values;
         n_columns = n_cols;
       }

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.