From: Daniel Arndt Date: Thu, 25 Apr 2019 21:12:06 +0000 (+0200) Subject: Address row_start X-Git-Tag: v9.1.0-rc1~166^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4813346904909597985c7fc6ba6c67d8be42bd12;p=dealii.git Address row_start --- diff --git a/include/deal.II/matrix_free/cuda_matrix_free.templates.h b/include/deal.II/matrix_free/cuda_matrix_free.templates.h index 64a399bb68..7a5e1460cc 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.templates.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.templates.h @@ -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();