mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1070 from babrodtk/eigen_3.3_fix
This enables compiling with Eigen 3.3
This commit is contained in:
commit
6024a7ad78
@ -187,7 +187,14 @@ equalSparsityPattern(const Lhs& lhs, const Rhs& rhs)
|
||||
// check complete sparsity pattern
|
||||
if( equal )
|
||||
{
|
||||
//Eigen 3.3 series uses StorageIndex instead of Index
|
||||
#if (EIGEN_WORLD_VERSION > 3) \
|
||||
|| (EIGEN_WORLD_VERSION == 3 && EIGEN_MAJOR_VERSION >= 3) \
|
||||
|| (EIGEN_WORLD_VERSION == 3 && EIGEN_MAJOR_VERSION == 2 && EIGEN_MINOR_VERSION >= 90)
|
||||
typedef typename Eigen::internal::remove_all<Lhs>::type::StorageIndex Index;
|
||||
#else
|
||||
typedef typename Eigen::internal::remove_all<Lhs>::type::Index Index;
|
||||
#endif
|
||||
const Index outerSize = lhs.outerSize();
|
||||
if( outerSize != rhs.outerSize() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user