mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 12:33:49 -06:00
Operator *=(): Use correct derivative chain rule
Updating the derivative using '*=' is just plain wrong.
This commit is contained in:
parent
72d6d32095
commit
011ab5ee93
@ -96,7 +96,7 @@ namespace AutoDiff {
|
||||
Forward&
|
||||
operator *=(const Forward& rhs)
|
||||
{
|
||||
dx_ *= dx_*rhs.x_ + x_*rhs.dx_;
|
||||
dx_ = dx_*rhs.x_ + x_*rhs.dx_;
|
||||
x_ *= rhs.x_;
|
||||
|
||||
return *this;
|
||||
|
Loading…
Reference in New Issue
Block a user