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_ );
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user