nnc_vector.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2013 Equinor ASA, Norway.
3
4 The file 'nnc_vector.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_VECTOR_H
21#define ERT_NNC_VECTOR_H
22
23#include <ert/util/int_vector.hpp>
25
26typedef struct nnc_vector_struct nnc_vector_type;
27
28#ifdef __cplusplus
29#include <vector>
30 const std::vector<int>& nnc_vector_get_grid_index_list(const nnc_vector_type * nnc_vector);
31 const std::vector<int>& nnc_vector_get_nnc_index_list(const nnc_vector_type * nnc_vector);
32#endif
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
39
40 int nnc_vector_iget_nnc_index( const nnc_vector_type * nnc_vector , int index );
41 int nnc_vector_iget_grid_index( const nnc_vector_type * nnc_vector , int index );
44 void nnc_vector_free( nnc_vector_type * nnc_vector );
45 void nnc_vector_add_nnc(nnc_vector_type * nnc_vector, int global_cell_number, int nnc_index);
46 int nnc_vector_get_lgr_nr(const nnc_vector_type * nnc_vector );
47 void nnc_vector_free__(void * arg);
48 int nnc_vector_get_size( const nnc_vector_type * nnc_vector );
49 bool nnc_vector_equal( const nnc_vector_type * nnc_vector1 , const nnc_vector_type * nnc_vector2);
50
51#ifdef __cplusplus
52}
53#endif
54#endif
55
int index
Definition: cJSON.h:168
bool nnc_vector_equal(const nnc_vector_type *nnc_vector1, const nnc_vector_type *nnc_vector2)
void nnc_vector_free__(void *arg)
int nnc_vector_get_lgr_nr(const nnc_vector_type *nnc_vector)
void nnc_vector_free(nnc_vector_type *nnc_vector)
UTIL_IS_INSTANCE_HEADER(nnc_vector)
nnc_vector_type * nnc_vector_alloc(int lgr_nr)
void nnc_vector_add_nnc(nnc_vector_type *nnc_vector, int global_cell_number, int nnc_index)
nnc_vector_type * nnc_vector_alloc_copy(const nnc_vector_type *src_vector)
int nnc_vector_iget_nnc_index(const nnc_vector_type *nnc_vector, int index)
int nnc_vector_get_size(const nnc_vector_type *nnc_vector)
struct nnc_vector_struct nnc_vector_type
Definition: nnc_vector.hpp:26
int nnc_vector_iget_grid_index(const nnc_vector_type *nnc_vector, int index)