Remove unneeded timeIdx argument.

This commit is contained in:
Atgeirr Flø Rasmussen 2022-09-29 14:13:23 +02:00
parent 66e5da9709
commit 521b057035
2 changed files with 4 additions and 7 deletions

View File

@ -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,

View File

@ -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;