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_ ); fastSparseAdd( sparse_, rhs.sparse_ );
} }
else else {
*this = *this + rhs; *this = *this + rhs;
}
return *this; return *this;
} }
@ -284,8 +285,9 @@ namespace Opm
{ {
fastSparseSubstract( sparse_, rhs.sparse_ ); fastSparseSubstract( sparse_, rhs.sparse_ );
} }
else else {
*this = *this + (rhs * -1.0); *this = *this + (rhs * -1.0);
}
return *this; return *this;
} }