mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
AutoDiffMatrix: added braces in operator += and -=.
This commit is contained in:
parent
75ffd897da
commit
bc71458d44
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user