Add default: clause in switch

This commit is contained in:
Joakim Hove 2020-01-13 08:41:21 +01:00
parent 1985f094a3
commit 83966eb565

View File

@ -397,6 +397,8 @@ bool Well::updateStatus(Status well_state, bool update_connections) {
case Status::STOP:
connection_state = Connection::State::SHUT;
break;
default:
throw std::logic_error("Bug - should not be here");
}
auto new_connections = std::make_shared<WellConnections>(this->headI, this->headJ);