From 24469f7a5e7f54de9acf01abed45173ecdcf2eee Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Mon, 11 Nov 2019 07:35:25 +0100 Subject: [PATCH] Renamed item in COPYEREG keyword --- src/opm/parser/eclipse/EclipseState/Eclipse3DProperties.cpp | 2 +- src/opm/parser/eclipse/EclipseState/Grid/GridProperties.cpp | 2 +- src/opm/parser/eclipse/share/keywords/000_Eclipse100/C/COPYREG | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opm/parser/eclipse/EclipseState/Eclipse3DProperties.cpp b/src/opm/parser/eclipse/EclipseState/Eclipse3DProperties.cpp index e96a66553..5b4d81e6f 100644 --- a/src/opm/parser/eclipse/EclipseState/Eclipse3DProperties.cpp +++ b/src/opm/parser/eclipse/EclipseState/Eclipse3DProperties.cpp @@ -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 )) diff --git a/src/opm/parser/eclipse/EclipseState/Grid/GridProperties.cpp b/src/opm/parser/eclipse/EclipseState/Grid/GridProperties.cpp index 6e7877855..3648a1c58 100644 --- a/src/opm/parser/eclipse/EclipseState/Grid/GridProperties.cpp +++ b/src/opm/parser/eclipse/EclipseState/Grid/GridProperties.cpp @@ -392,7 +392,7 @@ namespace Opm { template< typename T > void GridProperties::handleCOPYREGRecord( const DeckRecord& record, const GridProperty& 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)) diff --git a/src/opm/parser/eclipse/share/keywords/000_Eclipse100/C/COPYREG b/src/opm/parser/eclipse/share/keywords/000_Eclipse100/C/COPYREG index 07d84e054..b6bea08f1 100644 --- a/src/opm/parser/eclipse/share/keywords/000_Eclipse100/C/COPYREG +++ b/src/opm/parser/eclipse/share/keywords/000_Eclipse100/C/COPYREG @@ -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"}]}