mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
Orion Events: Generate COMPORD for new wells
This commit is contained in:
@@ -104,6 +104,22 @@ Opm::DeckKeyword welspecsKeyword( const std::string wellGrpName, RimEclipseCase*
|
||||
return kw;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
Opm::DeckKeyword compordKeyword( const std::string& wellName )
|
||||
{
|
||||
using C = Opm::ParserKeywords::COMPORD;
|
||||
|
||||
std::vector<Opm::DeckItem> items;
|
||||
items.push_back( RifOpmDeckTools::item( C::WELL::itemName, wellName ) );
|
||||
items.push_back( RifOpmDeckTools::item( C::ORDER_TYPE::itemName, "INPUT" ) );
|
||||
|
||||
Opm::DeckKeyword kw( ( C() ) );
|
||||
kw.addRecord( Opm::DeckRecord{ std::move( items ) } );
|
||||
return kw;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user