mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: grab list of FIP regions from FieldPropsManager
not from SummaryConfig. the latter only holds regions with summary keywords
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "opm/input/eclipse/EclipseState/Grid/FieldProps.hpp"
|
||||
#include <config.h>
|
||||
#include <opm/simulators/utils/ParallelEclipseState.hpp>
|
||||
|
||||
@@ -225,6 +226,17 @@ bool ParallelFieldPropsManager::has_double(const std::string& keyword) const
|
||||
return it != m_doubleProps.end();
|
||||
}
|
||||
|
||||
std::vector<std::string> ParallelFieldPropsManager::fip_regions() const
|
||||
{
|
||||
std::vector<std::string> result;
|
||||
for (const auto& key : m_intProps) {
|
||||
if (Fieldprops::keywords::isFipxxx(key.first)) {
|
||||
result.push_back(key.first);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
ParallelEclipseState::ParallelEclipseState(Parallel::Communication comm)
|
||||
: m_fieldProps(field_props, comm)
|
||||
|
||||
@@ -91,6 +91,9 @@ public:
|
||||
//! \param keyword Name of property
|
||||
bool has_double(const std::string& keyword) const override;
|
||||
|
||||
//! \brief Returns a list of registered FIP regions.
|
||||
std::vector<std::string> fip_regions() const override;
|
||||
|
||||
//! \brief Resets the underlying cartesian mapper
|
||||
//! \detail This has to be the cartesian mapper of the distributed grid.
|
||||
//! It will be used to autocreate properties not explicitly stored.
|
||||
|
||||
Reference in New Issue
Block a user