mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ECL problem: some stylistic improvement
and a tiny bit of better performance since the rate vector of the source term is only reset once.
This commit is contained in:
parent
898940730e
commit
c44ad1ca3c
@ -661,10 +661,7 @@ public:
|
|||||||
unsigned spaceIdx,
|
unsigned spaceIdx,
|
||||||
unsigned timeIdx) const
|
unsigned timeIdx) const
|
||||||
{
|
{
|
||||||
rate = Toolbox::createConstant(0);
|
rate = 0.0;
|
||||||
|
|
||||||
for (unsigned eqIdx = 0; eqIdx < numEq; ++ eqIdx)
|
|
||||||
rate[eqIdx] = Toolbox::createConstant(0.0);
|
|
||||||
|
|
||||||
wellManager_.computeTotalRatesForDof(rate, context, spaceIdx, timeIdx);
|
wellManager_.computeTotalRatesForDof(rate, context, spaceIdx, timeIdx);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user