ecl_rft_file.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'ecl_rft_file.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#ifndef ERT_ECL_RFT_FILE_H
20#define ERT_ECL_RFT_FILE_H
21#ifdef __cplusplus
22extern "C" {
23#endif
24#include <stdbool.h>
25
27
29#include <ert/util/vector.hpp>
30#include <ert/util/int_vector.hpp>
31
32typedef struct ecl_rft_file_struct ecl_rft_file_type;
33
34char * ecl_rft_file_alloc_case_filename(const char * case_input );
35const char * ecl_rft_file_get_filename( const ecl_rft_file_type * rft_file );
36ecl_rft_file_type * ecl_rft_file_alloc_case(const char * case_input );
37bool ecl_rft_file_case_has_rft( const char * case_input );
40void ecl_rft_file_block(const ecl_rft_file_type * , double , const char * , int , const double * , int * , int * , int *);
41void ecl_rft_file_fprintf_rft_obs(const ecl_rft_file_type * , double , const char * , const char *, const char * , double);
43
44
45int ecl_rft_file_get_size__( const ecl_rft_file_type * rft_file, const char * well_pattern , time_t recording_time);
47ecl_rft_node_type * ecl_rft_file_get_well_time_rft( const ecl_rft_file_type * rft_file , const char * well , time_t recording_time);
49ecl_rft_node_type * ecl_rft_file_iget_well_rft( const ecl_rft_file_type * rft_file , const char * well, int index);
50bool ecl_rft_file_has_well( const ecl_rft_file_type * rft_file , const char * well);
51int ecl_rft_file_get_well_occurences( const ecl_rft_file_type * rft_file , const char * well);
54void ecl_rft_file_free__( void * arg);
55void ecl_rft_file_update(const char * rft_file_name, ecl_rft_node_type ** nodes,int num_nodes, ert_ecl_unit_enum unit_set);
56
57#ifdef __cplusplus
58}
59#endif
60#endif
int index
Definition: cJSON.h:168
stringlist_type * ecl_rft_file_alloc_well_list(const ecl_rft_file_type *rft_file)
ecl_rft_node_type * ecl_rft_file_iget_well_rft(const ecl_rft_file_type *rft_file, const char *well, int index)
ecl_rft_node_type * ecl_rft_file_iget_node(const ecl_rft_file_type *rft_file, int index)
const char * ecl_rft_file_get_filename(const ecl_rft_file_type *rft_file)
ecl_rft_node_type * ecl_rft_file_get_node(const ecl_rft_file_type *, const char *)
bool ecl_rft_file_case_has_rft(const char *case_input)
char * ecl_rft_file_alloc_case_filename(const char *case_input)
ecl_rft_file_type * ecl_rft_file_alloc_case(const char *case_input)
int ecl_rft_file_get_well_occurences(const ecl_rft_file_type *rft_file, const char *well)
void ecl_rft_file_free(ecl_rft_file_type *)
int ecl_rft_file_get_size__(const ecl_rft_file_type *rft_file, const char *well_pattern, time_t recording_time)
struct ecl_rft_file_struct ecl_rft_file_type
Definition: ecl_rft_file.hpp:32
bool ecl_rft_file_has_well(const ecl_rft_file_type *rft_file, const char *well)
void ecl_rft_file_block(const ecl_rft_file_type *, double, const char *, int, const double *, int *, int *, int *)
int ecl_rft_file_get_size(const ecl_rft_file_type *rft_file)
ecl_rft_file_type * ecl_rft_file_alloc(const char *)
void ecl_rft_file_update(const char *rft_file_name, ecl_rft_node_type **nodes, int num_nodes, ert_ecl_unit_enum unit_set)
void ecl_rft_file_free__(void *arg)
int ecl_rft_file_get_num_wells(const ecl_rft_file_type *rft_file)
void ecl_rft_file_fprintf_rft_obs(const ecl_rft_file_type *, double, const char *, const char *, const char *, double)
ecl_rft_node_type * ecl_rft_file_get_well_time_rft(const ecl_rft_file_type *rft_file, const char *well, time_t recording_time)
struct ecl_rft_node_struct ecl_rft_node_type
Definition: ecl_rft_node.hpp:34
ert_ecl_unit_enum
Definition: ecl_util.hpp:99
struct stringlist_struct stringlist_type
Definition: stringlist.hpp:34