mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5055 from bska/short-reg-names-redux
Publish Short Region Set Names Only
This commit is contained in:
commit
df0daa1a16
@ -228,10 +228,12 @@ bool ParallelFieldPropsManager::has_double(const std::string& keyword) const
|
||||
|
||||
std::vector<std::string> ParallelFieldPropsManager::fip_regions() const
|
||||
{
|
||||
constexpr auto maxchar = std::string::size_type{6};
|
||||
|
||||
std::vector<std::string> result;
|
||||
for (const auto& key : m_intProps) {
|
||||
if (Fieldprops::keywords::isFipxxx(key.first)) {
|
||||
result.push_back(key.first);
|
||||
result.push_back(key.first.substr(0, maxchar));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user