mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
MswRollUp: Updated Ert to experimental MSW branch. Updated ResInsight code to handle API changes
067fa99faa
This is an intermediate commit and does not compile
p4#: 22212
This commit is contained in:
@@ -23,13 +23,16 @@
|
||||
#include <ert/util/util.h>
|
||||
|
||||
#include <ert/ecl/ecl_util.h>
|
||||
#include <ert/ecl/ecl_grid.h>
|
||||
|
||||
#include <ert/ecl_well/well_info.h>
|
||||
|
||||
|
||||
int main(int argc , char ** argv) {
|
||||
const char * case_path = argv[1];
|
||||
char * grid_file = util_alloc_filename(NULL , case_path, "EGRID");
|
||||
stringlist_type * file_list = stringlist_alloc_new( );
|
||||
ecl_grid_type * grid = ecl_grid_alloc( grid_file );
|
||||
ecl_util_select_filelist( NULL , case_path , ECL_RESTART_FILE , false , file_list);
|
||||
|
||||
printf("Searching in:%s \n",case_path);
|
||||
@@ -50,7 +53,7 @@ int main(int argc , char ** argv) {
|
||||
}
|
||||
}
|
||||
{
|
||||
well_info_type * well_info = well_info_alloc( NULL );
|
||||
well_info_type * well_info = well_info_alloc( grid );
|
||||
int i;
|
||||
for (i=0; i < stringlist_get_size( file_list ); i++)
|
||||
well_info_load_rstfile( well_info , stringlist_iget(file_list , i));
|
||||
@@ -58,7 +61,7 @@ int main(int argc , char ** argv) {
|
||||
}
|
||||
|
||||
{
|
||||
well_info_type * well_info = well_info_alloc( NULL );
|
||||
well_info_type * well_info = well_info_alloc( grid );
|
||||
int i;
|
||||
stringlist_reverse( file_list );
|
||||
for (i=0; i < stringlist_get_size( file_list ); i++)
|
||||
|
||||
Reference in New Issue
Block a user