libecl: add support for network variables

This commit is contained in:
Kristian Bendiksen 2022-05-30 09:13:50 +02:00
parent 6a5b9f7300
commit e7f27abae7
2 changed files with 13 additions and 0 deletions

View File

@ -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");
}

View File

@ -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;