]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix wrong assertion in case no SIMD is applied. 6377/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 28 Apr 2018 15:24:07 +0000 (17:24 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 28 Apr 2018 15:24:07 +0000 (17:24 +0200)
include/deal.II/matrix_free/dof_info.templates.h

index 997b0a5c19dca3f07ef683e46f12bc44208f1154..57e598d3af6736b28fec1b15c9bb97dc6c2c39a9 100644 (file)
@@ -610,7 +610,8 @@ no_constraint:
       const bool have_hp = dofs_per_cell.size() > 1;
       const unsigned int n_components = start_components.back();
 
-      Assert(row_starts.size() % vectorization_length == 1, ExcInternalError());
+      Assert(vectorization_length == 1 ||
+             row_starts.size() % vectorization_length == 1, ExcInternalError());
       if (vectorization_length > 1)
         AssertDimension(row_starts.size()/vectorization_length/n_components,
                         irregular_cells.size());

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.