Files
ResInsight/ThirdParty/Ert/devel/libecl_well/tests/well_info.c
Magne Sjaastad 7a24b2664e Updated ERT to handle multi segment wells
Updated input code in ResInsight accordingly

ERT version on GitHub
067fa99faa
p4#: 21920
2013-06-13 22:12:02 +02:00

45 lines
1.2 KiB
C

/*
Copyright (C) 2013 Statoil ASA, Norway.
The file 'well_conn.c' is part of ERT - Ensemble based Reservoir Tool.
ERT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ERT is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
for more details.
*/
#include <stdlib.h>
#include <stdbool.h>
#include <ert/util/test_util.h>
#include <ert/util/stringlist.h>
#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 * grid_file = argv[1];
ecl_grid_type * grid = ecl_grid_alloc( grid_file );
test_assert_not_NULL( grid );
{
well_info_type * well_info = well_info_alloc( grid );
test_assert_not_NULL( well_info );
well_info_free( well_info );
}
ecl_grid_free( grid );
exit(0);
}