mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
libecl: add support for network variables
This commit is contained in:
parent
6a5b9f7300
commit
e7f27abae7
2
ThirdParty/Ert/lib/ecl/ecl_smspec.cpp
vendored
2
ThirdParty/Ert/lib/ecl/ecl_smspec.cpp
vendored
@ -754,6 +754,8 @@ static void ecl_smspec_install_special_keys( ecl_smspec_type * ecl_smspec , cons
|
||||
break;
|
||||
case(ECL_SMSPEC_AQUIFER_VAR):
|
||||
break;
|
||||
case(ECL_SMSPEC_NETWORK_VAR):
|
||||
break;
|
||||
default:
|
||||
throw std::invalid_argument("Internal error - should not be here \n");
|
||||
}
|
||||
|
11
ThirdParty/Ert/lib/ecl/smspec_node.cpp
vendored
11
ThirdParty/Ert/lib/ecl/smspec_node.cpp
vendored
@ -592,6 +592,10 @@ void smspec_node::set_gen_keys( const char* key_join_string_) {
|
||||
// KEYWORD
|
||||
gen_key1 = keyword;
|
||||
break;
|
||||
case(ECL_SMSPEC_NETWORK_VAR):
|
||||
// KEYWORD
|
||||
gen_key1 = keyword;
|
||||
break;
|
||||
case(ECL_SMSPEC_GROUP_VAR):
|
||||
// KEYWORD:WGNAME
|
||||
gen_key1 = smspec_alloc_group_key( key_join_string_ , keyword , wgname);
|
||||
@ -718,6 +722,9 @@ ecl_smspec_var_type smspec_node::valid_type(const char * keyword, const char * w
|
||||
return var_type;
|
||||
}
|
||||
|
||||
if (var_type == ECL_SMSPEC_NETWORK_VAR)
|
||||
return var_type;
|
||||
|
||||
return ECL_SMSPEC_INVALID_VAR;
|
||||
}
|
||||
|
||||
@ -907,6 +914,8 @@ smspec_node::smspec_node(int param_index,
|
||||
case(ECL_SMSPEC_AQUIFER_VAR):
|
||||
set_num( grid_dims , num );
|
||||
break;
|
||||
case(ECL_SMSPEC_NETWORK_VAR):
|
||||
break;
|
||||
default:
|
||||
throw std::invalid_argument("Should not be here ... ");
|
||||
break;
|
||||
@ -941,6 +950,8 @@ smspec_node::smspec_node( int param_index_,
|
||||
switch (this->var_type) {
|
||||
case(ECL_SMSPEC_LOCAL_WELL_VAR):
|
||||
break;
|
||||
case(ECL_SMSPEC_NETWORK_VAR):
|
||||
break;
|
||||
case(ECL_SMSPEC_LOCAL_BLOCK_VAR):
|
||||
set_lgr_ijk( lgr_i, lgr_j , lgr_k );
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user