]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change CUDAWrappers::size_type to int
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 18 Aug 2018 21:34:34 +0000 (23:34 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 19 Aug 2018 22:31:02 +0000 (00:31 +0200)
include/deal.II/lac/cuda_sparse_matrix.h

index 51cf57d2fbb1c9e438cab8b94a54cdfe4057e4ec..8c82c430460d2a2a0b1ae99a6fcccd6772228d56 100644 (file)
@@ -51,7 +51,7 @@ namespace CUDAWrappers
     /**
      * Declare type for container size.
      */
-    using size_type = unsigned int;
+    using size_type = int;
 
     /**
      * Type of the matrix entries.
@@ -317,7 +317,7 @@ namespace CUDAWrappers
 
 
   template <typename Number>
-  inline unsigned int
+  inline SparseMatrix<Number>::size_type
   SparseMatrix<Number>::m() const
   {
     return n_rows;
@@ -326,7 +326,7 @@ namespace CUDAWrappers
 
 
   template <typename Number>
-  inline unsigned int
+  inline SparseMatrix<Number>::size_type
   SparseMatrix<Number>::n() const
   {
     return 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.