]> https://gitweb.dealii.org/ - dealii.git/commitdiff
change setting of state variable at various places
authorBenjamin Brands <benjamin.brands@fau.de>
Sun, 18 Mar 2018 20:33:32 +0000 (21:33 +0100)
committerBenjamin Brands <benjamin.brands@fau.de>
Mon, 19 Mar 2018 15:29:44 +0000 (16:29 +0100)
source/lac/scalapack.cc

index 6ea55a6f9646d746405f7c44355db62f36765d31..57eec07c0b6e4f91b69742e26a2a92cd2ffe49e0 100644 (file)
@@ -78,7 +78,7 @@ ScaLAPACKMatrix<NumberType>::ScaLAPACKMatrix(const size_type n_rows_,
                                              const LAPACKSupport::Property property)
   :
   TransposeTable<NumberType> (),
-  state (LAPACKSupport::unusable),
+  state (LAPACKSupport::matrix),
   property(property),
   grid (process_grid),
   n_rows(n_rows_),
@@ -472,6 +472,7 @@ template <typename NumberType>
 void ScaLAPACKMatrix<NumberType>::copy_transposed(const ScaLAPACKMatrix<NumberType> &B)
 {
   add(B,0,1,true);
+  state = B.state;
 }
 
 
@@ -508,6 +509,7 @@ void ScaLAPACKMatrix<NumberType>::add(const ScaLAPACKMatrix<NumberType> &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<NumberType>::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;
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.