Merge pull request #2762 from akva2/janitoring

avoid signed/unsigned comparison warnings
This commit is contained in:
Bård Skaflestad 2021-10-18 13:04:34 +02:00 committed by GitHub
commit 70bb2afe93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,12 +350,12 @@ void RstState::add_actions(const Parser& parser,
void RstState::add_wlist(const std::vector<std::string>& zwls,
const std::vector<int>& iwls)
{
for (std::size_t well_index = 0; well_index < this->header.num_wells; well_index++) {
for (auto well_index = 0*this->header.num_wells; well_index < this->header.num_wells; well_index++) {
const auto zwls_offset = this->header.max_wlist * well_index;
const auto iwls_offset = this->header.max_wlist * well_index;
const auto& well_name = this->wells[well_index].name;
for (std::size_t wlist_index = 0; wlist_index < this->header.max_wlist; wlist_index++) {
for (auto wlist_index = 0*this->header.max_wlist; wlist_index < this->header.max_wlist; wlist_index++) {
int well_order = iwls[iwls_offset + wlist_index];
if (well_order != 0) {
const auto& wlist_name = zwls[zwls_offset + wlist_index];