mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
revert AutoDiffMatrix back to the master version
that class is not used by flow_ebos anymore...
This commit is contained in:
parent
b2f7b8c989
commit
2f208962f0
@ -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
|
* Returns number of rows in the matrix
|
||||||
|
Loading…
Reference in New Issue
Block a user