]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some brackets 10841/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 24 Aug 2020 17:56:45 +0000 (19:56 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Mon, 24 Aug 2020 17:56:45 +0000 (19:56 +0200)
source/multigrid/mg_transfer_matrix_free.cc

index f17d18086e102117404589f60b922fcb7d33e0c6..13dd1c1a2135b9413a9389917dc439272c051d07 100644 (file)
@@ -413,8 +413,8 @@ MGTransferMatrixFree<dim, Number>::do_prolongate_add(
        cell += vec_size)
     {
       const unsigned int n_lanes =
-        cell + vec_size > n_owned_level_cells[to_level - 1] ?
-          n_owned_level_cells[to_level - 1] - cell :
+        (cell + vec_size > n_owned_level_cells[to_level - 1]) ?
+          (n_owned_level_cells[to_level - 1] - cell) :
           vec_size;
 
       // read from source vector
@@ -528,8 +528,8 @@ MGTransferMatrixFree<dim, Number>::do_restrict_add(
        cell += vec_size)
     {
       const unsigned int n_lanes =
-        cell + vec_size > n_owned_level_cells[from_level - 1] ?
-          n_owned_level_cells[from_level - 1] - cell :
+        (cell + vec_size > n_owned_level_cells[from_level - 1]) ?
+          (n_owned_level_cells[from_level - 1] - cell) :
           vec_size;
 
       // read from source vector

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.