From 1e73faf4088298530d34c91b3cdf3ac8486e97d6 Mon Sep 17 00:00:00 2001 From: Benjamin Brands Date: Sun, 18 Mar 2018 21:33:32 +0100 Subject: [PATCH] change setting of state variable at various places --- source/lac/scalapack.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.5