avoid signed/unsigned comparison warnings
This commit is contained in:
parent
6da7c3c88e
commit
076f12cb34
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user