Exemple #1
0
SummaryConfig::SummaryConfig( const Deck& deck,
                              const Schedule& schedule,
                              const TableManager& tables,
                              const ParseContext& parseContext,
                              const GridDims& dims) {
    SUMMARYSection section( deck );
    for( auto& x : section )
        handleKW( this->keywords, x, schedule, tables, parseContext, dims);

    if( section.hasKeyword( "ALL" ) )
        this->merge( { ALL_keywords, schedule, tables, parseContext, dims} );

    if( section.hasKeyword( "GMWSET" ) )
        this->merge( { GMWSET_keywords, schedule, tables, parseContext, dims} );

    if( section.hasKeyword( "FMWSET" ) )
        this->merge( { FMWSET_keywords, schedule, tables, parseContext, dims} );

    if (section.hasKeyword( "PERFORMA" ) )
        this->merge( { PERFORMA_keywords, schedule, tables, parseContext, dims} );

    uniq( this->keywords );
    for (const auto& kw: this->keywords) {
        this->short_keywords.insert( kw.keyword() );
        this->summary_keywords.insert( kw.key1() );
    }

}
Exemple #2
0
SummaryConfig::SummaryConfig( const Deck& deck,
                              const Schedule& schedule,
                              const Eclipse3DProperties& props,
                              const ParseContext& parseContext,
                              std::array< int, 3 > n_xyz ) {

    SUMMARYSection section( deck );
    for( auto& x : section )
        handleKW( this->keywords, x, schedule, props, parseContext, n_xyz );

    if( section.hasKeyword( "ALL" ) )
        this->merge( { ALL_keywords, schedule, props, parseContext, n_xyz } );

    uniq( this->keywords );
    for (const auto& kw: this->keywords)
        this->short_keywords.insert( kw.keyword() );
}