From a5355a27dca40a6384da2d29e0f67a1859743565 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 25 Jan 2018 17:02:21 +0100 Subject: [PATCH] Fix structure of Assert in scalapack.cc --- source/lac/scalapack.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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")); -- 2.39.5