mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove unneeded timeIdx function parameters.
This commit is contained in:
parent
3e8c024cdb
commit
0d4c19b723
@ -114,14 +114,12 @@ public:
|
||||
{
|
||||
const IntensiveQuantities& intQuants = elemCtx.intensiveQuantities(dofIdx, timeIdx);
|
||||
computeStorage(storage,
|
||||
intQuants,
|
||||
timeIdx);
|
||||
intQuants);
|
||||
}
|
||||
|
||||
template <class LhsEval>
|
||||
static void computeStorage(Dune::FieldVector<LhsEval, numEq>& storage,
|
||||
const IntensiveQuantities& intQuants,
|
||||
unsigned timeIdx)
|
||||
const IntensiveQuantities& intQuants)
|
||||
{
|
||||
// retrieve the intensive quantities for the SCV at the specified point in time
|
||||
const auto& fs = intQuants.fluidState();
|
||||
@ -196,11 +194,9 @@ public:
|
||||
const unsigned globalIndexEx,
|
||||
const IntensiveQuantities& intQuantsIn,
|
||||
const IntensiveQuantities& intQuantsEx,
|
||||
const unsigned timeIdx,
|
||||
const Scalar trans,
|
||||
const Scalar faceArea)
|
||||
{
|
||||
assert(timeIdx == 0);
|
||||
flux = 0.0;
|
||||
Scalar Vin = problem.model().dofTotalVolume(globalIndexIn);
|
||||
Scalar Vex = problem.model().dofTotalVolume(globalIndexEx);
|
||||
@ -227,7 +223,6 @@ public:
|
||||
calculateFluxes_(flux,
|
||||
intQuantsIn,
|
||||
intQuantsEx,
|
||||
timeIdx, // input
|
||||
Vin,
|
||||
Vex,
|
||||
globalIndexIn,
|
||||
@ -290,7 +285,6 @@ public:
|
||||
calculateFluxes_(flux,
|
||||
intQuantsIn,
|
||||
intQuantsEx,
|
||||
timeIdx, // input
|
||||
Vin,
|
||||
Vex,
|
||||
globalIndexIn,
|
||||
@ -304,7 +298,6 @@ public:
|
||||
static void calculateFluxes_(RateVector& flux,
|
||||
const IntensiveQuantities& intQuantsIn,
|
||||
const IntensiveQuantities& intQuantsEx,
|
||||
const unsigned timeIdx,
|
||||
const Scalar& Vin,
|
||||
const Scalar& Vex,
|
||||
const unsigned& globalIndexIn,
|
||||
@ -330,7 +323,6 @@ public:
|
||||
pressureDifference,
|
||||
intQuantsIn,
|
||||
intQuantsEx,
|
||||
timeIdx, // input
|
||||
phaseIdx, // input
|
||||
interiorDofIdx, // input
|
||||
exteriorDofIdx, // intput
|
||||
|
@ -410,7 +410,7 @@ private:
|
||||
}
|
||||
const IntensiveQuantities& intQuantsEx = *intQuantsExP;
|
||||
LocalResidual::computeFlux(
|
||||
adres, problem_(), globI, globJ, intQuantsIn, intQuantsEx, 0, nbInfo.trans, nbInfo.faceArea);
|
||||
adres, problem_(), globI, globJ, intQuantsIn, intQuantsEx, nbInfo.trans, nbInfo.faceArea);
|
||||
adres *= nbInfo.faceArea;
|
||||
setResAndJacobi(res, bMat, adres);
|
||||
residual_[globI] += res;
|
||||
@ -425,7 +425,7 @@ private:
|
||||
double volume = model_().dofTotalVolume(globI);
|
||||
Scalar storefac = volume / dt;
|
||||
adres = 0.0;
|
||||
LocalResidual::computeStorage(adres, intQuantsIn, 0);
|
||||
LocalResidual::computeStorage(adres, intQuantsIn);
|
||||
setResAndJacobi(res, bMat, adres);
|
||||
// TODO: check recycleFirst etc.
|
||||
// first we use it as storage cache
|
||||
|
Loading…
Reference in New Issue
Block a user