nnc_info.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2013 Equinor ASA, Norway.
3
4 The file 'nnc_info.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_NNC_INFO_H
21#define ERT_NNC_INFO_H
22
23#include <ert/util/int_vector.hpp>
25
27
28typedef struct nnc_info_struct nnc_info_type;
29
30#ifdef __cplusplus
31#include <vector>
32 const std::vector<int>& nnc_info_get_grid_index_list(const nnc_info_type * nnc_info, int lgr_nr);
33 const std::vector<int>& nnc_info_iget_grid_index_list(const nnc_info_type * nnc_info, int lgr_index);
34 const std::vector<int>& nnc_info_get_self_grid_index_list(const nnc_info_type * nnc_info);
35#endif
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
42
44 void nnc_info_free( nnc_info_type * nnc_info );
45 void nnc_info_add_nnc(nnc_info_type * nnc_info, int lgr_nr, int global_cell_number, int nnc_index);
46
47 nnc_vector_type * nnc_info_iget_vector( const nnc_info_type * nnc_info , int lgr_index);
48
49 nnc_vector_type * nnc_info_get_vector( const nnc_info_type * nnc_info , int lgr_nr);
50
52
53 int nnc_info_get_lgr_nr(const nnc_info_type * nnc_info );
54 int nnc_info_get_size( const nnc_info_type * nnc_info );
55 int nnc_info_get_total_size( const nnc_info_type * nnc_info );
56 void nnc_info_fprintf(const nnc_info_type * nnc_info , FILE * stream);
57
58 bool nnc_info_equal( const nnc_info_type * nnc_info1 , const nnc_info_type * nnc_info2 );
60 bool nnc_info_has_grid_index_list( const nnc_info_type * nnc_info, int lgr_nr );
61
62#ifdef __cplusplus
63}
64#endif
65#endif
66
bool nnc_info_equal(const nnc_info_type *nnc_info1, const nnc_info_type *nnc_info2)
int nnc_info_get_lgr_nr(const nnc_info_type *nnc_info)
nnc_vector_type * nnc_info_get_vector(const nnc_info_type *nnc_info, int lgr_nr)
nnc_vector_type * nnc_info_get_self_vector(const nnc_info_type *nnc_info)
int nnc_info_get_total_size(const nnc_info_type *nnc_info)
struct nnc_info_struct nnc_info_type
Definition: nnc_info.hpp:28
int nnc_info_get_size(const nnc_info_type *nnc_info)
nnc_info_type * nnc_info_alloc(int lgr_nr)
void nnc_info_add_nnc(nnc_info_type *nnc_info, int lgr_nr, int global_cell_number, int nnc_index)
void nnc_info_free(nnc_info_type *nnc_info)
nnc_vector_type * nnc_info_iget_vector(const nnc_info_type *nnc_info, int lgr_index)
UTIL_IS_INSTANCE_HEADER(nnc_info)
bool nnc_info_has_grid_index_list(const nnc_info_type *nnc_info, int lgr_nr)
nnc_info_type * nnc_info_alloc_copy(const nnc_info_type *src_info)
void nnc_info_fprintf(const nnc_info_type *nnc_info, FILE *stream)
struct nnc_vector_struct nnc_vector_type
Definition: nnc_vector.hpp:26