mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix some warnings.
This commit is contained in:
@@ -1131,7 +1131,7 @@ calcEcoGradient(
|
||||
template<typename TypeTag>
|
||||
bool
|
||||
GasLiftSingleWell<TypeTag>::OptimizeState::
|
||||
checkAlqOutsideLimits(double alq, double oil_rate)
|
||||
checkAlqOutsideLimits(double alq, [[maybe_unused]] double oil_rate)
|
||||
{
|
||||
std::ostringstream ss;
|
||||
bool result = false;
|
||||
|
||||
@@ -702,8 +702,8 @@ GasLiftStage2<TypeTag>::
|
||||
saveGrad_(GradMap &map, const std::string &name, GradInfo &grad)
|
||||
{
|
||||
if (auto it = map.find(name); it == map.end()) {
|
||||
auto [map_it, success] = map.emplace(name, grad);
|
||||
assert(success);
|
||||
auto result = map.emplace(name, grad);
|
||||
assert(result.second); // the insert was successful
|
||||
}
|
||||
else {
|
||||
it->second = grad;
|
||||
|
||||
Reference in New Issue
Block a user