fix a few "unused variable" warnings that occur on more uncommon compilers

i.e. on ICC. the compiler is right in producing warnings here, though.
This commit is contained in:
Andreas Lauser 2018-03-03 13:06:58 +01:00
parent aaf885098d
commit 21cce7514e
2 changed files with 3 additions and 3 deletions

View File

@ -457,7 +457,7 @@ public:
try {
bubblePointPressure_[globalDofIdx] = Opm::getValue(FluidSystem::bubblePointPressure(fs, intQuants.pvtRegionIndex()));
}
catch (const Opm::NumericalIssue& e) {
catch (const Opm::NumericalIssue&) {
const auto globalIdx = elemCtx.simulator().vanguard().grid().globalCell()[globalDofIdx];
failedCellsPb_.push_back(globalIdx);
}
@ -467,7 +467,7 @@ public:
try {
dewPointPressure_[globalDofIdx] = Opm::getValue(FluidSystem::dewPointPressure(fs, intQuants.pvtRegionIndex()));
}
catch (const Opm::NumericalIssue& e) {
catch (const Opm::NumericalIssue&) {
const auto globalIdx = elemCtx.simulator().vanguard().grid().globalCell()[globalDofIdx];
failedCellsPd_.push_back(globalIdx);
}

View File

@ -763,7 +763,7 @@ protected:
try {
eclWell->setRadius(elemCtx, dofIdx, 0.5*completion->getDiameter());
}
catch (const std::logic_error& e)
catch (const std::logic_error&)
{}
// overwrite the automatically computed effective