mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fastSparseAdd/Substruct: use operator += and -=.
This commit is contained in:
@@ -245,7 +245,7 @@ fastSparseAdd(Lhs& lhs, const Rhs& rhs)
|
||||
else
|
||||
{
|
||||
// default Eigen operator+=
|
||||
lhs = lhs + rhs;
|
||||
lhs += rhs;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ fastSparseSubstract(Lhs& lhs, const Rhs& rhs)
|
||||
else
|
||||
{
|
||||
// default Eigen operator-=
|
||||
lhs = lhs - rhs;
|
||||
lhs -= rhs;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user