Renamed item in COPYEREG keyword

This commit is contained in:
Joakim Hove
2019-11-11 07:35:25 +01:00
parent 1d95cd8248
commit 24469f7a5e
3 changed files with 3 additions and 3 deletions

View File

@@ -959,7 +959,7 @@ namespace Opm {
void Eclipse3DProperties::handleCOPYREGKeyword( const DeckKeyword& deckKeyword) {
for( const auto& record : deckKeyword ) {
const std::string& srcArray = record.getItem("ARRAY").get< std::string >(0);
const std::string& srcArray = record.getItem("SRC_ARRAY").get< std::string >(0);
const auto& regionProperty = getRegion( record.getItem("REGION_NAME") );
if (m_intGridProperties.hasKeyword( srcArray ))

View File

@@ -392,7 +392,7 @@ namespace Opm {
template< typename T >
void GridProperties<T>::handleCOPYREGRecord( const DeckRecord& record, const GridProperty<int>& regionProperty ) {
const std::string& srcArray = record.getItem("ARRAY").get< std::string >(0);
const std::string& srcArray = record.getItem("SRC_ARRAY").get< std::string >(0);
const std::string& targetArray = record.getItem("TARGET_ARRAY").get< std::string >(0);
if (!supportsKeyword( targetArray))

View File

@@ -1,6 +1,6 @@
{"name" : "COPYREG" , "sections" : ["GRID","EDIT","PROPS","REGIONS","SOLUTION"],
"items" :
[{"name" : "ARRAY" , "value_type" : "STRING" , "description" : "The 3D array we will update"},
[{"name" : "SRC_ARRAY" , "value_type" : "STRING" , "description" : "The 3D array we will fetch from"},
{"name" : "TARGET_ARRAY" , "value_type" : "STRING" , "description" : "The name of the array which will be set"} ,
{"name" : "REGION_NUMBER" , "value_type" : "INT" , "description" : "The region number we are interested in"} ,
{"name" : "REGION_NAME" , "value_type" : "STRING" , "description" : "The name of the region we are interested in" , "default" : "M"}]}