If no ACTNUM, default to all active in FieldProps.

This commit is contained in:
Atgeirr Flø Rasmussen 2022-06-20 17:56:08 +02:00
parent e568d14a87
commit 0dab2aaf2b

View File

@ -1212,7 +1212,12 @@ void FieldProps::scanGRIDSectionOnlyACTNUM(const GRIDSection& grid_section) {
this->handle_keyword(keyword, box);
}
}
m_actnum = this->int_data.at("ACTNUM").data;
const auto iter = this->int_data.find("ACTNUM");
if (iter == this->int_data.end()) {
m_actnum.assign(this->grid_ptr->getCartesianSize(), 1);
} else {
m_actnum = iter->second.data;
}
}
void FieldProps::scanEDITSection(const EDITSection& edit_section) {