From: Benjamin Brands Date: Sun, 18 Mar 2018 20:33:32 +0000 (+0100) Subject: change setting of state variable at various places X-Git-Tag: v9.0.0-rc1~305^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e73faf4088298530d34c91b3cdf3ac8486e97d6;p=dealii.git change setting of state variable at various places --- diff --git a/source/lac/scalapack.cc b/source/lac/scalapack.cc index 6ea55a6f96..57eec07c0b 100644 --- a/source/lac/scalapack.cc +++ b/source/lac/scalapack.cc @@ -78,7 +78,7 @@ ScaLAPACKMatrix::ScaLAPACKMatrix(const size_type n_rows_, const LAPACKSupport::Property property) : TransposeTable (), - state (LAPACKSupport::unusable), + state (LAPACKSupport::matrix), property(property), grid (process_grid), n_rows(n_rows_), @@ -472,6 +472,7 @@ template void ScaLAPACKMatrix::copy_transposed(const ScaLAPACKMatrix &B) { add(B,0,1,true); + state = B.state; } @@ -508,6 +509,7 @@ void ScaLAPACKMatrix::add(const ScaLAPACKMatrix &B, &beta,B_loc,&B.submatrix_row,&B.submatrix_column,B.descriptor, &alpha,A_loc,&submatrix_row,&submatrix_column,descriptor); } + state = LAPACKSupport::matrix; } @@ -597,6 +599,7 @@ void ScaLAPACKMatrix::mult(const NumberType b, B_loc,&B.submatrix_row,&B.submatrix_column,B.descriptor, &c,C_loc,&C.submatrix_row,&C.submatrix_column,C.descriptor); } + C.state = LAPACKSupport::matrix; }