]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Address row_start
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 25 Apr 2019 21:12:06 +0000 (23:12 +0200)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 25 Apr 2019 21:13:57 +0000 (15:13 -0600)
include/deal.II/matrix_free/cuda_matrix_free.templates.h

index 64a399bb68cdd60588a448b3e9bc90969a327cfd..7a5e1460cc7b8427190f963f3a8bfe7d6cfc829f 100644 (file)
@@ -894,7 +894,8 @@ namespace CUDAWrappers
       }
 
     // Setup row starts
-    row_start[0] = 0;
+    if (n_colors > 0)
+      row_start[0] = 0;
     for (unsigned int i = 1; i < n_colors; ++i)
       row_start[i] = row_start[i - 1] + n_cells[i - 1] * get_padding_length();
 

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.