Skip to content
Snippets Groups Projects
Commit b0d1e24f authored by Marco Agnese's avatar Marco Agnese Committed by Christoph Grüninger
Browse files

[suitesparse][cleanup] Remove useless class variable in SPQR wrapper

parent 9efd2742
No related branches found
No related tags found
1 merge request!8Feature/fs1519 suitesparse ldl spqr
......@@ -138,12 +138,12 @@ namespace Dune {
(static_cast<T*>(B_->x))[k] = b[k];
cholmod_dense* BTemp = B_;
B_ = SuiteSparseQR_qmult<T>(0, spqrfactorization_, B_, cc_);
X_ = SuiteSparseQR_solve<T>(1, spqrfactorization_, B_, cc_);
cholmod_dense* X = SuiteSparseQR_solve<T>(1, spqrfactorization_, B_, cc_);
cholmod_l_free_dense(&BTemp, cc_);
// fill x
for(std::size_t k = 0; k != dimMat; ++k)
x [k] = (static_cast<T*>(X_->x))[k];
cholmod_l_free_dense(&X_, cc_);
x [k] = (static_cast<T*>(X->x))[k];
cholmod_l_free_dense(&X, cc_);
// this is a direct solver
res.iterations = 1;
res.converged = true;
......@@ -268,7 +268,6 @@ namespace Dune {
int verbose_;
cholmod_common* cc_;
cholmod_sparse* A_;
cholmod_dense* X_;
cholmod_dense* B_;
SuiteSparseQR_factorization<T>* spqrfactorization_;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment