ecl_nnc_export.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2013 Equinor ASA, Norway.
3
4 The file 'ecl_nnc_export.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19
20#ifndef ERT_ECL_NNC_EXPORT
21#define ERT_ECL_NNC_EXPORT
22
23
24#include <math.h>
25
26#include <ert/ecl/ecl_grid.hpp>
27#include <ert/ecl/ecl_file.hpp>
28#include <ert/ecl/ecl_kw.hpp>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#define ERT_ECL_DEFAULT_NNC_TRANS HUGE_VAL
35
36typedef struct {
41
42 int input_index; /* corresponds to the input ordering of this nnc */
43
44 double trans;
46
47
48bool ecl_nnc_intersect_format(const ecl_grid_type * grid, const ecl_file_type * init_file);
49 int ecl_nnc_export_get_size( const ecl_grid_type * grid , const ecl_file_type * init_file );
50 int ecl_nnc_export( const ecl_grid_type * grid , const ecl_file_type * init_file , ecl_nnc_type * nnc_data);
51
52 ecl_kw_type * ecl_nnc_export_get_tranx_kw( const ecl_grid_type * grid , const ecl_file_type * init_file , int lgr_nr1, int lgr_nr2 );
53 ecl_kw_type * ecl_nnc_export_get_tranll_kw( const ecl_grid_type * grid , const ecl_file_type * init_file , int lgr_nr1, int lgr_nr2 );
54 ecl_kw_type * ecl_nnc_export_get_tran_kw( const ecl_file_type * init_file , const char * kw , int lgr_nr );
55
56 bool ecl_nnc_equal( const ecl_nnc_type * nnc1 , const ecl_nnc_type * nnc2);
57 int ecl_nnc_sort_cmp( const ecl_nnc_type * nnc1 , const ecl_nnc_type * nnc2);
58 void ecl_nnc_sort( ecl_nnc_type * nnc_list , int size);
59
60#ifdef __cplusplus
61}
62#endif
63#endif
ecl_grid_struct ecl_grid_type
Definition: ECLGraph.hpp:43
struct ecl_file_struct ecl_file_type
Definition: ECLResultData.hpp:39
struct ecl_kw_struct ecl_kw_type
Definition: ecl_kw.hpp:39
int ecl_nnc_export(const ecl_grid_type *grid, const ecl_file_type *init_file, ecl_nnc_type *nnc_data)
void ecl_nnc_sort(ecl_nnc_type *nnc_list, int size)
bool ecl_nnc_intersect_format(const ecl_grid_type *grid, const ecl_file_type *init_file)
int ecl_nnc_sort_cmp(const ecl_nnc_type *nnc1, const ecl_nnc_type *nnc2)
ecl_kw_type * ecl_nnc_export_get_tranll_kw(const ecl_grid_type *grid, const ecl_file_type *init_file, int lgr_nr1, int lgr_nr2)
ecl_kw_type * ecl_nnc_export_get_tran_kw(const ecl_file_type *init_file, const char *kw, int lgr_nr)
ecl_kw_type * ecl_nnc_export_get_tranx_kw(const ecl_grid_type *grid, const ecl_file_type *init_file, int lgr_nr1, int lgr_nr2)
int ecl_nnc_export_get_size(const ecl_grid_type *grid, const ecl_file_type *init_file)
bool ecl_nnc_equal(const ecl_nnc_type *nnc1, const ecl_nnc_type *nnc2)
Definition: ecl_nnc_export.hpp:36
int global_index1
Definition: ecl_nnc_export.hpp:38
int global_index2
Definition: ecl_nnc_export.hpp:40
int grid_nr2
Definition: ecl_nnc_export.hpp:39
int grid_nr1
Definition: ecl_nnc_export.hpp:37
double trans
Definition: ecl_nnc_export.hpp:44
int input_index
Definition: ecl_nnc_export.hpp:42