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 Problem& problem,
|
||||||
const BoundaryConditionData& bdyInfo,
|
const BoundaryConditionData& bdyInfo,
|
||||||
const IntensiveQuantities& insideIntQuants,
|
const IntensiveQuantities& insideIntQuants,
|
||||||
unsigned globalSpaceIdx,
|
unsigned globalSpaceIdx)
|
||||||
unsigned timeIdx)
|
|
||||||
{
|
{
|
||||||
if (bdyInfo.type == BCType::RATE) {
|
if (bdyInfo.type == BCType::RATE) {
|
||||||
computeBoundaryFluxRate(bdyFlux, bdyInfo);
|
computeBoundaryFluxRate(bdyFlux, bdyInfo);
|
||||||
} else if (bdyInfo.type == BCType::FREE) {
|
} else if (bdyInfo.type == BCType::FREE) {
|
||||||
computeBoundaryFluxFree(problem, bdyFlux, bdyInfo, insideIntQuants, globalSpaceIdx, timeIdx);
|
computeBoundaryFluxFree(problem, bdyFlux, bdyInfo, insideIntQuants, globalSpaceIdx);
|
||||||
} else {
|
} else {
|
||||||
throw std::logic_error("Unknown boundary condition type " + std::to_string(static_cast<int>(bdyInfo.type)) + " in computeBoundaryFlux()." );
|
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,
|
RateVector& bdyFlux,
|
||||||
const BoundaryConditionData& bdyInfo,
|
const BoundaryConditionData& bdyInfo,
|
||||||
const IntensiveQuantities& insideIntQuants,
|
const IntensiveQuantities& insideIntQuants,
|
||||||
unsigned globalSpaceIdx,
|
unsigned globalSpaceIdx)
|
||||||
unsigned timeIdx)
|
|
||||||
{
|
{
|
||||||
std::array<short, numPhases> upIdx;
|
std::array<short, numPhases> upIdx;
|
||||||
std::array<short, numPhases> dnIdx;
|
std::array<short, numPhases> dnIdx;
|
||||||
@ -455,7 +453,6 @@ public:
|
|||||||
globalSpaceIdx,
|
globalSpaceIdx,
|
||||||
insideIntQuants,
|
insideIntQuants,
|
||||||
bdyInfo.boundaryFaceIndex,
|
bdyInfo.boundaryFaceIndex,
|
||||||
timeIdx,
|
|
||||||
bdyInfo.faceArea,
|
bdyInfo.faceArea,
|
||||||
bdyInfo.faceZCoord,
|
bdyInfo.faceZCoord,
|
||||||
bdyInfo.exFluidState,
|
bdyInfo.exFluidState,
|
||||||
|
@ -493,7 +493,7 @@ private:
|
|||||||
if (insideIntQuants == nullptr) {
|
if (insideIntQuants == nullptr) {
|
||||||
throw std::logic_error("Missing updated intensive quantities for cell " + std::to_string(globI));
|
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;
|
adres *= bdyInfo.bcdata.faceArea;
|
||||||
setResAndJacobi(res, bMat, adres);
|
setResAndJacobi(res, bMat, adres);
|
||||||
residual_[globI] += res;
|
residual_[globI] += res;
|
||||||
|
Loading…
Reference in New Issue
Block a user