mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-26 03:00:17 -06:00
Address review comments.
This commit is contained in:
parent
7981fb92e0
commit
66e5da9709
@ -428,7 +428,7 @@ public:
|
||||
} else if (bdyInfo.type == BCType::FREE) {
|
||||
computeBoundaryFluxFree(problem, bdyFlux, bdyInfo, insideIntQuants, globalSpaceIdx, timeIdx);
|
||||
} else {
|
||||
throw std::logic_error("Unknown boundary condition type in computeBoundaryFlux().");
|
||||
throw std::logic_error("Unknown boundary condition type " + std::to_string(static_cast<int>(bdyInfo.type)) + " in computeBoundaryFlux()." );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -344,13 +344,13 @@ private:
|
||||
}
|
||||
}
|
||||
neighborInfo_.appendRow(loc_nbinfo.begin(), loc_nbinfo.end());
|
||||
for (size_t bfIndex = 0; bfIndex < stencil.numBoundaryFaces(); ++bfIndex) {
|
||||
for (unsigned bfIndex = 0; bfIndex < stencil.numBoundaryFaces(); ++bfIndex) {
|
||||
const auto& bf = stencil.boundaryFace(bfIndex);
|
||||
const int dir_id = bf.dirId();
|
||||
const auto [free, massrateAD] = problem_().boundaryCondition(myIdx, dir_id);
|
||||
// Strip the unnecessary (and zero anyway) derivatives off massrate.
|
||||
VectorBlock massrate(0.0);
|
||||
for (int ii = 0; ii < massrate.size(); ++ii) {
|
||||
for (size_t ii = 0; ii < massrate.size(); ++ii) {
|
||||
massrate[ii] = massrateAD[ii].value();
|
||||
}
|
||||
const bool nonzero_massrate = massrate != VectorBlock(0.0);
|
||||
|
Loading…
Reference in New Issue
Block a user