mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove unneeded timeIdx argument.
This commit is contained in:
parent
66e5da9709
commit
521b057035
@ -420,13 +420,12 @@ public:
|
||||
const Problem& problem,
|
||||
const BoundaryConditionData& bdyInfo,
|
||||
const IntensiveQuantities& insideIntQuants,
|
||||
unsigned globalSpaceIdx,
|
||||
unsigned timeIdx)
|
||||
unsigned globalSpaceIdx)
|
||||
{
|
||||
if (bdyInfo.type == BCType::RATE) {
|
||||
computeBoundaryFluxRate(bdyFlux, bdyInfo);
|
||||
} else if (bdyInfo.type == BCType::FREE) {
|
||||
computeBoundaryFluxFree(problem, bdyFlux, bdyInfo, insideIntQuants, globalSpaceIdx, timeIdx);
|
||||
computeBoundaryFluxFree(problem, bdyFlux, bdyInfo, insideIntQuants, globalSpaceIdx);
|
||||
} else {
|
||||
throw std::logic_error("Unknown boundary condition type " + std::to_string(static_cast<int>(bdyInfo.type)) + " in computeBoundaryFlux()." );
|
||||
}
|
||||
@ -444,8 +443,7 @@ public:
|
||||
RateVector& bdyFlux,
|
||||
const BoundaryConditionData& bdyInfo,
|
||||
const IntensiveQuantities& insideIntQuants,
|
||||
unsigned globalSpaceIdx,
|
||||
unsigned timeIdx)
|
||||
unsigned globalSpaceIdx)
|
||||
{
|
||||
std::array<short, numPhases> upIdx;
|
||||
std::array<short, numPhases> dnIdx;
|
||||
@ -455,7 +453,6 @@ public:
|
||||
globalSpaceIdx,
|
||||
insideIntQuants,
|
||||
bdyInfo.boundaryFaceIndex,
|
||||
timeIdx,
|
||||
bdyInfo.faceArea,
|
||||
bdyInfo.faceZCoord,
|
||||
bdyInfo.exFluidState,
|
||||
|
@ -493,7 +493,7 @@ private:
|
||||
if (insideIntQuants == nullptr) {
|
||||
throw std::logic_error("Missing updated intensive quantities for cell " + std::to_string(globI));
|
||||
}
|
||||
LocalResidual::computeBoundaryFlux(adres, problem_(), bdyInfo.bcdata, *insideIntQuants, globI, 0);
|
||||
LocalResidual::computeBoundaryFlux(adres, problem_(), bdyInfo.bcdata, *insideIntQuants, globI);
|
||||
adres *= bdyInfo.bcdata.faceArea;
|
||||
setResAndJacobi(res, bMat, adres);
|
||||
residual_[globI] += res;
|
||||
|
Loading…
Reference in New Issue
Block a user