SummaryConfig: allow region numbers beyond NUMFIP

This commit is contained in:
Joakim Hove 2021-03-05 07:31:28 +01:00
parent b1877c79e0
commit 586d15653b
2 changed files with 1 additions and 3 deletions

View File

@ -797,8 +797,6 @@ inline void keywordR( SummaryConfig::keyword_list& list,
for( const int region : regions ) {
if (region >= 1 && region <= static_cast<int>(numfip))
list.push_back( param.number( region ) );
else
throw std::invalid_argument("Illegal region value: " + std::to_string( region ));
}
}

View File

@ -744,7 +744,7 @@ BOOST_AUTO_TEST_CASE( summary_require3DField ) {
{
const auto input = "RPR\n 10 /\n";
BOOST_CHECK_THROW( createSummary( input ) , std::invalid_argument );
BOOST_CHECK_NO_THROW( createSummary( input ) );
}