From: Daniel Arndt Date: Thu, 25 Jan 2018 16:02:21 +0000 (+0100) Subject: Fix structure of Assert in scalapack.cc X-Git-Tag: v9.0.0-rc1~520^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5803%2Fhead;p=dealii.git Fix structure of Assert in scalapack.cc --- diff --git a/source/lac/scalapack.cc b/source/lac/scalapack.cc index 174cd0a830..b7918ed7f5 100644 --- a/source/lac/scalapack.cc +++ b/source/lac/scalapack.cc @@ -627,9 +627,14 @@ void ScaLAPACKMatrix::least_squares(ScaLAPACKMatrix &B, Assert (B.state == LAPACKSupport::matrix, ExcMessage("Matrix B has to be in Matrix state before calling this function.")); - transpose ? - (Assert(n_columns==B.n_rows,ExcDimensionMismatch(n_columns,B.n_rows))) : - (Assert(n_rows==B.n_rows,ExcDimensionMismatch(n_rows,B.n_rows))); + if (transpose) + { + Assert(n_columns==B.n_rows,ExcDimensionMismatch(n_columns,B.n_rows)); + } + else + { + Assert(n_rows==B.n_rows,ExcDimensionMismatch(n_rows,B.n_rows)); + } //see https://www.ibm.com/support/knowledgecenter/en/SSNR5K_4.2.0/com.ibm.cluster.pessl.v4r2.pssl100.doc/am6gr_lgels.htm Assert(row_block_size==column_block_size,ExcMessage("Use identical block sizes for rows and columns of matrix A"));