Fix unused variable warnings.

This commit is contained in:
Håkon Hægland 2021-03-08 16:08:00 +01:00
parent cd85943352
commit 60c5fab82d
3 changed files with 3 additions and 6 deletions

View File

@ -416,13 +416,11 @@ namespace Opm {
/// \param[in] reservoir_state reservoir state variables
/// \param[in, out] well_state well state variables
/// \param[in] initial_assembly pass true if this is the first call to assemble() in this timestep
SimulatorReportSingle assembleReservoir(const SimulatorTimerInterface &/*timer */,
SimulatorReportSingle assembleReservoir(const SimulatorTimerInterface& /* timer */,
const int iterationIdx)
{
// -------- Mass balance equations --------
//auto stepNum = timer.currentStepNum();
ebosSimulator_.model().newtonMethod().setIterationIndex(iterationIdx);
//ebosSimulator_.model().newtonMethod().setCurrentTimeStep(stepNum);
ebosSimulator_.problem().beginIteration();
ebosSimulator_.model().linearizer().linearizeDomain();
ebosSimulator_.problem().endIteration();

View File

@ -113,7 +113,6 @@ addOrRemoveALQincrement_(GradMap &grad_map, const std::string well_name, bool ad
state.update(gi.new_oil_rate, gi.oil_is_limited,
gi.new_gas_rate, gi.gas_is_limited,
gi.alq, gi.alq_is_limited, add);
//gs_well.updateStage2State(gi, add);
this->well_state_.setALQ(well_name, gi.alq);
}
@ -702,7 +701,7 @@ GasLiftStage2<TypeTag>::
saveGrad_(GradMap &map, const std::string &name, GradInfo &grad)
{
if (auto it = map.find(name); it == map.end()) {
auto result = map.emplace(name, grad);
[[maybe_unused]] auto result = map.emplace(name, grad);
assert(result.second); // the insert was successful
}
else {

View File

@ -31,7 +31,7 @@ namespace Opm
class GasLiftWellState
{
public:
GasLiftWellState() { }
//GasLiftWellState() { }
GasLiftWellState(double oil_rate, bool oil_is_limited,
double gas_rate, bool gas_is_limited,
double alq, bool alq_is_limited, std::optional<bool> increase) :