revert AutoDiffMatrix back to the master version

that class is not used by flow_ebos anymore...
This commit is contained in:
Andreas Lauser 2016-11-18 11:24:35 +01:00
parent b2f7b8c989
commit 2f208962f0

View File

@ -558,28 +558,6 @@ namespace Opm
}
/**
* Converts the AutoDiffMatrix to an Eigen SparseMatrix.This might be
* an expensive operation to perform for e.g., an identity matrix or a
* diagonal matrix.
*/
template<class Scalar, int Options, class Index>
void assign(const Eigen::SparseMatrix<Scalar, Options, Index>& s)
{
(*this) = AutoDiffMatrix( s.rows(), s.cols() );
type_ = Sparse;
sparse_ = s;
}
template<class Scalar, int Options, class Index>
void assign(const Eigen::SparseMatrix<Scalar, Options, Index>&& s)
{
(*this) = AutoDiffMatrix( s.rows(), s.cols() );
type_ = Sparse;
sparse_ = std::move(s);
}
/**
* Returns number of rows in the matrix