ecl_sum_tstep.hpp
Go to the documentation of this file.
1 /*
2 Copyright (C) 2012 Equinor ASA, Norway.
3
4 The file 'ecl_sum_tstep.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_SUM_TSTEP_H
20#define ERT_ECL_SUM_TSTEP_H
21
22#include <ert/util/int_vector.hpp>
23
25#include <ert/ecl/ecl_kw.hpp>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31typedef struct ecl_sum_tstep_struct ecl_sum_tstep_type;
32
33 ecl_sum_tstep_type * ecl_sum_tstep_alloc_remap_copy( const ecl_sum_tstep_type * src , const ecl_smspec_type * new_smspec, float default_value , const int * params_map);
36 void ecl_sum_tstep_free__( void * __ministep);
38 int ministep_nr ,
39 const ecl_kw_type * params_kw ,
40 const char * src_file ,
41 const ecl_smspec_type * smspec);
42
43 ecl_sum_tstep_type * ecl_sum_tstep_alloc_new( int report_step , int ministep , float sim_seconds , const ecl_smspec_type * smspec );
44
45 void ecl_sum_tstep_set_from_node( ecl_sum_tstep_type * tstep , const ecl::smspec_node& smspec_node , float value);
46 double ecl_sum_tstep_get_from_node( const ecl_sum_tstep_type * tstep , const ecl::smspec_node& smspec_node);
47
48 double ecl_sum_tstep_iget(const ecl_sum_tstep_type * ministep , int index);
52
55
56 void ecl_sum_tstep_fwrite( const ecl_sum_tstep_type * ministep , const int * index_map , int index_map_size, fortio_type * fortio);
57 void ecl_sum_tstep_iset( ecl_sum_tstep_type * tstep , int index , float value);
58
60 void ecl_sum_tstep_iscale(ecl_sum_tstep_type * tstep, int index, float scalar);
61
63 void ecl_sum_tstep_ishift(ecl_sum_tstep_type * tstep, int index, float addend);
64
65
66 void ecl_sum_tstep_set_from_key( ecl_sum_tstep_type * tstep , const char * gen_key , float value);
67 double ecl_sum_tstep_get_from_key( const ecl_sum_tstep_type * tstep , const char * gen_key);
68 bool ecl_sum_tstep_has_key(const ecl_sum_tstep_type * tstep , const char * gen_key);
69
71
72 UTIL_SAFE_CAST_HEADER( ecl_sum_tstep );
74
75
76
77#ifdef __cplusplus
78}
79
80
81#endif
82#endif
int index
Definition: cJSON.h:168
Definition: smspec_node.hpp:36
struct ecl_kw_struct ecl_kw_type
Definition: ecl_kw.hpp:39
struct ecl_smspec_struct ecl_smspec_type
Definition: ecl_smspec.hpp:32
double ecl_sum_tstep_get_sim_days(const ecl_sum_tstep_type *ministep)
int ecl_sum_tstep_get_report(const ecl_sum_tstep_type *ministep)
ecl_sum_tstep_type * ecl_sum_tstep_alloc_from_file(int report_step, int ministep_nr, const ecl_kw_type *params_kw, const char *src_file, const ecl_smspec_type *smspec)
void ecl_sum_tstep_free(ecl_sum_tstep_type *ministep)
time_t ecl_sum_tstep_get_sim_time(const ecl_sum_tstep_type *ministep)
ecl_sum_tstep_type * ecl_sum_tstep_alloc_remap_copy(const ecl_sum_tstep_type *src, const ecl_smspec_type *new_smspec, float default_value, const int *params_map)
void ecl_sum_tstep_iscale(ecl_sum_tstep_type *tstep, int index, float scalar)
scales with value; equivalent to iset( iget() * scalar)
ecl_sum_tstep_type * ecl_sum_tstep_alloc_new(int report_step, int ministep, float sim_seconds, const ecl_smspec_type *smspec)
void ecl_sum_tstep_fwrite(const ecl_sum_tstep_type *ministep, const int *index_map, int index_map_size, fortio_type *fortio)
double ecl_sum_tstep_get_from_key(const ecl_sum_tstep_type *tstep, const char *gen_key)
int ecl_sum_tstep_get_ministep(const ecl_sum_tstep_type *ministep)
UTIL_SAFE_CAST_HEADER_CONST(ecl_sum_tstep)
double ecl_sum_tstep_get_sim_seconds(const ecl_sum_tstep_type *ministep)
double ecl_sum_tstep_iget(const ecl_sum_tstep_type *ministep, int index)
void ecl_sum_tstep_free__(void *__ministep)
bool ecl_sum_tstep_sim_time_equal(const ecl_sum_tstep_type *tstep1, const ecl_sum_tstep_type *tstep2)
bool ecl_sum_tstep_has_key(const ecl_sum_tstep_type *tstep, const char *gen_key)
void ecl_sum_tstep_ishift(ecl_sum_tstep_type *tstep, int index, float addend)
adds addend to tstep[index]; equivalent to iset( iget() + addend)
ecl_sum_tstep_type * ecl_sum_tstep_alloc_copy(const ecl_sum_tstep_type *src)
UTIL_SAFE_CAST_HEADER(ecl_sum_tstep)
double ecl_sum_tstep_get_from_node(const ecl_sum_tstep_type *tstep, const ecl::smspec_node &smspec_node)
void ecl_sum_tstep_set_from_node(ecl_sum_tstep_type *tstep, const ecl::smspec_node &smspec_node, float value)
void ecl_sum_tstep_iset(ecl_sum_tstep_type *tstep, int index, float value)
struct ecl_sum_tstep_struct ecl_sum_tstep_type
Definition: ecl_sum_tstep.hpp:31
void ecl_sum_tstep_set_from_key(ecl_sum_tstep_type *tstep, const char *gen_key, float value)
struct fortio_struct fortio_type
Definition: include/ert/ecl/fortio.h:42
T value(details::expression_node< T > *n)
Definition: exprtk.hpp:12955