From: Peter Munch Date: Mon, 24 Aug 2020 17:56:45 +0000 (+0200) Subject: Add some brackets X-Git-Tag: v9.3.0-rc1~1175^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e97cd69e4d72012f9d913c8f0cae69e8f8042a4;p=dealii.git Add some brackets --- diff --git a/source/multigrid/mg_transfer_matrix_free.cc b/source/multigrid/mg_transfer_matrix_free.cc index f17d18086e..13dd1c1a21 100644 --- a/source/multigrid/mg_transfer_matrix_free.cc +++ b/source/multigrid/mg_transfer_matrix_free.cc @@ -413,8 +413,8 @@ MGTransferMatrixFree::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::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