AutoDiffMatrix: added braces in operator += and -=.

This commit is contained in:
Robert Kloefkorn 2016-02-17 14:24:55 +01:00
parent 75ffd897da
commit bc71458d44

View File

@ -268,8 +268,9 @@ namespace Opm
{
fastSparseAdd( sparse_, rhs.sparse_ );
}
else
else {
*this = *this + rhs;
}
return *this;
}
@ -284,8 +285,9 @@ namespace Opm
{
fastSparseSubstract( sparse_, rhs.sparse_ );
}
else
else {
*this = *this + (rhs * -1.0);
}
return *this;
}