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:
Andreas Lauser 2015-12-31 13:20:37 +01:00
parent 898940730e
commit c44ad1ca3c

View File

@ -661,10 +661,7 @@ public:
unsigned spaceIdx,
unsigned timeIdx) const
{
rate = Toolbox::createConstant(0);
for (unsigned eqIdx = 0; eqIdx < numEq; ++ eqIdx)
rate[eqIdx] = Toolbox::createConstant(0.0);
rate = 0.0;
wellManager_.computeTotalRatesForDof(rate, context, spaceIdx, timeIdx);