]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug in matrix free thread graph creation. 4376/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 11 May 2017 19:30:53 +0000 (21:30 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 11 May 2017 19:30:53 +0000 (21:30 +0200)
include/deal.II/matrix_free/dof_info.templates.h

index 0edceea0d5c5ae4db4bc28c10466c28cf08d44a3..d9568242db520965f17369d3da50f90fd956d40f 100644 (file)
@@ -839,13 +839,11 @@ no_constraint:
             std::min(((size_info.boundary_cells_end+task_info.block_size-1)/
                       task_info.block_size)*task_info.block_size,
                      size_info.n_macro_cells);
-          start_up = start_nonboundary;
           size_info.boundary_cells_end = start_nonboundary;
         }
       else
         {
           start_nonboundary = size_info.n_macro_cells;
-          start_up = size_info.n_macro_cells;
           size_info.boundary_cells_start = 0;
           size_info.boundary_cells_end = size_info.n_macro_cells;
         }
@@ -948,10 +946,11 @@ no_constraint:
         {
           // put all cells up to begin_inner_cells into first partition. if
           // the numbers do not add up exactly, assign an additional block
-          if (start_nonboundary>0 && start_up == start_nonboundary)
+          if (start_nonboundary>0)
             {
               unsigned int n_blocks = ((start_nonboundary+task_info.block_size-1)
                                        /task_info.block_size);
+              start_nonboundary = 0;
               for (unsigned int cell=0; cell<n_blocks; ++cell)
                 {
                   cell_partition[cell] = partition;

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.