From 0dab2aaf2b43073afe215f766c892a723a66e5af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 20 Jun 2022 17:56:08 +0200 Subject: [PATCH] If no ACTNUM, default to all active in FieldProps. --- src/opm/input/eclipse/EclipseState/Grid/FieldProps.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/opm/input/eclipse/EclipseState/Grid/FieldProps.cpp b/src/opm/input/eclipse/EclipseState/Grid/FieldProps.cpp index a6ecee19c..449634824 100644 --- a/src/opm/input/eclipse/EclipseState/Grid/FieldProps.cpp +++ b/src/opm/input/eclipse/EclipseState/Grid/FieldProps.cpp @@ -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) {