ecl_kw.hpp
Go to the documentation of this file.
68 int ecl_kw_first_different( const ecl_kw_type * kw1 , const ecl_kw_type * kw2 , int offset, double abs_epsilon , double rel_epsilon);
92 void ecl_kw_fread_indexed_data(fortio_type * fortio, offset_type data_offset, ecl_data_type, int element_count, const int_vector_type* index_map, char* buffer);
96 ecl_kw_type * ecl_kw_alloc_sub_copy( const ecl_kw_type * src, const char * new_kw , int offset , int count);
98 ecl_kw_type * ecl_kw_alloc_slice_copy( const ecl_kw_type * src, int index1, int index2, int stride);
136 bool ecl_kw_numeric_equal(const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2 , double abs_diff , double rel_diff);
137 bool ecl_kw_block_equal( const ecl_kw_type * ecl_kw1 , const ecl_kw_type * ecl_kw2 , int cmp_elements);
155 void ecl_kw_element_sum_indexed(const ecl_kw_type * ecl_kw , const int_vector_type * index_list, void * _sum);
173#define ECL_KW_SCALAR_SET_TYPED_HEADER( ctype ) void ecl_kw_scalar_set_ ## ctype( ecl_kw_type * ecl_kw , ctype value);
179 ecl_kw_type * ecl_kw_alloc_scatter_copy( const ecl_kw_type * src_kw , int target_size , const int * mapping, void * def_value);
188 void ecl_kw_inplace_add_indexed( ecl_kw_type * target_kw , const int_vector_type * index_set , const ecl_kw_type * add_kw);
189 void ecl_kw_inplace_sub_indexed( ecl_kw_type * target_kw , const int_vector_type * index_set , const ecl_kw_type * sub_kw);
190 void ecl_kw_inplace_mul_indexed( ecl_kw_type * target_kw , const int_vector_type * index_set , const ecl_kw_type * mul_kw);
191 void ecl_kw_inplace_div_indexed( ecl_kw_type * target_kw , const int_vector_type * index_set , const ecl_kw_type * div_kw);
192 void ecl_kw_copy_indexed( ecl_kw_type * target_kw , const int_vector_type * index_set , const ecl_kw_type * src_kw);
195#define ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER( ctype ) bool ecl_kw_assert_binary_ ## ctype( const ecl_kw_type * kw1 , const ecl_kw_type * kw2)
201#define ECL_KW_SCALE_TYPED_HEADER( ctype ) void ecl_kw_scale_ ## ctype (ecl_kw_type * ecl_kw , ctype scale_factor)
209#define ECL_KW_SHIFT_TYPED_HEADER( ctype ) void ecl_kw_shift_ ## ctype (ecl_kw_type * ecl_kw , ctype shift_factor)
233#define ECL_KW_GET_TYPED_PTR_HEADER(type) type * ecl_kw_get_ ## type ## _ptr(const ecl_kw_type *)
241#define ECL_KW_SET_INDEXED_HEADER(ctype ) void ecl_kw_set_indexed_ ## ctype( ecl_kw_type * ecl_kw, const int_vector_type * index_list , ctype value)
248#define ECL_KW_SHIFT_INDEXED_HEADER(ctype) void ecl_kw_shift_indexed_ ## ctype( ecl_kw_type * ecl_kw, const int_vector_type * index_list , ctype shift)
255#define ECL_KW_SCALE_INDEXED_HEADER(ctype) void ecl_kw_scale_indexed_ ## ctype( ecl_kw_type * ecl_kw, const int_vector_type * index_list , ctype scale)
262#define ECL_KW_MAX_MIN_HEADER( ctype ) void ecl_kw_max_min_ ## ctype( const ecl_kw_type * ecl_kw , ctype * _max , ctype * _min)
268 void ecl_kw_fix_uninitialized(ecl_kw_type * ecl_kw , int nx , int ny , int nz, const int * actnum);
void ecl_kw_free_data(ecl_kw_type *) bool ecl_kw_assert_numeric(const ecl_kw_type *kw) void ecl_kw_iget(const ecl_kw_type *, int, void *) void ecl_kw_set_memcpy_data(ecl_kw_type *, const void *) bool ecl_kw_ichar_eq(const ecl_kw_type *, int, const char *) ecl_data_type ecl_kw_get_data_type(const ecl_kw_type *) #define ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER(ctype) Definition: ecl_kw.hpp:195 void ecl_kw_fwrite_param_fortio(fortio_type *, const char *, ecl_data_type, int, void *) void * ecl_kw_get_void_ptr(const ecl_kw_type *ecl_kw) const char * ecl_kw_get_header8(const ecl_kw_type *) void ecl_kw_inplace_sub_indexed(ecl_kw_type *target_kw, const int_vector_type *index_set, const ecl_kw_type *sub_kw) void ecl_kw_summarize(const ecl_kw_type *ecl_kw) void ecl_kw_fskip_header(fortio_type *fortio) void ecl_kw_inplace_sub(ecl_kw_type *target_kw, const ecl_kw_type *sub_kw) void ecl_kw_memcpy(ecl_kw_type *, const ecl_kw_type *) bool ecl_kw_icmp_string(const ecl_kw_type *ecl_kw, int index, const char *other_string) void ecl_kw_iset(ecl_kw_type *ecl_kw, int i, const void *iptr) int ecl_kw_get_size(const ecl_kw_type *) ecl_kw_type * ecl_kw_alloc_global_copy(const ecl_kw_type *src, const ecl_kw_type *actnum) void ecl_kw_inplace_div_indexed(ecl_kw_type *target_kw, const int_vector_type *index_set, const ecl_kw_type *div_kw) ecl_kw_type * ecl_kw_alloc_empty(void) void ecl_kw_iset_string8(ecl_kw_type *ecl_kw, int index, const char *s8) void ecl_kw_iset_bool(ecl_kw_type *ecl_kw, int i, bool bool_value) bool ecl_kw_fskip_data(ecl_kw_type *ecl_kw, fortio_type *fortio) void ecl_kw_scalar_set_bool(ecl_kw_type *ecl_kw, bool bool_value) bool ecl_kw_size_and_numeric_type_equal(const ecl_kw_type *kw1, const ecl_kw_type *kw2) void ecl_kw_iset_string_ptr(ecl_kw_type *, int, const char *) void ecl_kw_fwrite_data(const ecl_kw_type *_ecl_kw, fortio_type *fortio) ecl_kw_type * ecl_kw_alloc_actnum(const ecl_kw_type *porv_kw, float porv_limit) bool ecl_kw_size_and_type_equal(const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2) bool ecl_kw_block_equal(const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2, int cmp_elements) size_t ecl_kw_fortio_size(const ecl_kw_type *ecl_kw) void ecl_kw_iset_char_ptr(ecl_kw_type *ecl_kw, int index, const char *s) bool ecl_kw_assert_binary(const ecl_kw_type *kw1, const ecl_kw_type *kw2) ecl_kw_type * ecl_kw_fread_alloc(fortio_type *) void ecl_kw_set_data_ptr(ecl_kw_type *ecl_kw, void *data) bool ecl_kw_fwrite(const ecl_kw_type *, fortio_type *) float ecl_kw_iget_as_float(const ecl_kw_type *ecl_kw, int i) void ecl_kw_free__(void *) void ecl_kw_inplace_mul(ecl_kw_type *target_kw, const ecl_kw_type *mul_kw) void * ecl_kw_alloc_data_copy(const ecl_kw_type *) void ecl_kw_get_memcpy_data(const ecl_kw_type *, void *) void ecl_kw_copy_indexed(ecl_kw_type *target_kw, const int_vector_type *index_set, const ecl_kw_type *src_kw) bool ecl_kw_is_kw_file(fortio_type *fortio) void ecl_kw_inplace_mul_indexed(ecl_kw_type *target_kw, const int_vector_type *index_set, const ecl_kw_type *mul_kw) ecl_read_status_enum ecl_kw_fread_header(ecl_kw_type *, fortio_type *) bool ecl_kw_inplace_safe_div(ecl_kw_type *target_kw, const ecl_kw_type *divisor) void ecl_kw_get_data_as_double(const ecl_kw_type *, double *) void ecl_kw_max_min(const ecl_kw_type *, void *, void *) void ecl_kw_free(ecl_kw_type *) void ecl_kw_fread_indexed_data(fortio_type *fortio, offset_type data_offset, ecl_data_type, int element_count, const int_vector_type *index_map, char *buffer) bool ecl_kw_fread_data(ecl_kw_type *ecl_kw, fortio_type *fortio) void ecl_kw_inplace_add_squared(ecl_kw_type *target_kw, const ecl_kw_type *add_kw) void ecl_kw_get_data_as_float(const ecl_kw_type *ecl_kw, float *float_data) void ecl_kw_get_memcpy_float_data(const ecl_kw_type *ecl_kw, float *target) void ecl_kw_alloc_float_data(ecl_kw_type *ecl_kw, float *values) bool ecl_kw_fseek_kw(const char *, bool, bool, fortio_type *) int ecl_kw_first_different(const ecl_kw_type *kw1, const ecl_kw_type *kw2, int offset, double abs_epsilon, double rel_epsilon) void ecl_kw_inplace_abs(ecl_kw_type *kw) void ecl_kw_alloc_double_data(ecl_kw_type *ecl_kw, double *values) UTIL_IS_INSTANCE_HEADER(ecl_kw) void * ecl_kw_iget_ptr(const ecl_kw_type *, int) void ecl_kw_resize(ecl_kw_type *ecl_kw, int new_size) void ecl_kw_fprintf_data(const ecl_kw_type *ecl_kw, const char *fmt, FILE *stream) void * ecl_kw_get_ptr(const ecl_kw_type *ecl_kw) ecl_type_enum ecl_kw_get_type(const ecl_kw_type *) void ecl_kw_element_sum_indexed(const ecl_kw_type *ecl_kw, const int_vector_type *index_list, void *_sum) void ecl_kw_inplace_add(ecl_kw_type *target_kw, const ecl_kw_type *add_kw) bool ecl_kw_content_equal(const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2) void ecl_kw_fwrite_param(const char *, bool, const char *, ecl_data_type, int, void *) int ecl_kw_element_sum_int(const ecl_kw_type *ecl_kw) ecl_kw_type * ecl_kw_alloc_new(const char *, int, ecl_data_type, const void *) void ecl_kw_fix_uninitialized(ecl_kw_type *ecl_kw, int nx, int ny, int nz, const int *actnum) void ecl_kw_inplace_div(ecl_kw_type *target_kw, const ecl_kw_type *div_kw) void ecl_kw_get_memcpy_double_data(const ecl_kw_type *ecl_kw, double *target) void ecl_kw_inplace_sqrt(ecl_kw_type *kw) #define ECL_KW_SCALAR_SET_TYPED_HEADER(ctype) Definition: ecl_kw.hpp:173 bool ecl_kw_fseek_last_kw(const char *, bool, fortio_type *) void ecl_kw_fskip(fortio_type *) bool ecl_kw_numeric_equal(const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2, double abs_diff, double rel_diff) bool ecl_kw_equal(const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2) ecl_kw_type * ecl_kw_alloc_copy(const ecl_kw_type *) bool ecl_kw_fread_realloc(ecl_kw_type *, fortio_type *) bool ecl_kw_name_equal(const ecl_kw_type *ecl_kw, const char *name) const char * ecl_kw_iget_string_ptr(const ecl_kw_type *, int) void ecl_kw_inplace_update_file(const ecl_kw_type *, const char *, int) void ecl_kw_fread_double_param(const char *, bool, double *) ecl_kw_type * ecl_kw_alloc_sub_copy(const ecl_kw_type *src, const char *new_kw, int offset, int count) double ecl_kw_element_sum_float(const ecl_kw_type *ecl_kw) ecl_kw_type * ecl_kw_alloc_new_shared(const char *, int, ecl_data_type, void *) double ecl_kw_iget_as_double(const ecl_kw_type *ecl_kw, int i) void ecl_kw_inplace_add_indexed(ecl_kw_type *target_kw, const int_vector_type *index_set, const ecl_kw_type *add_kw) void ecl_kw_shift_float_or_double(ecl_kw_type *ecl_kw, double shift_value) void ecl_kw_inplace_inv(ecl_kw_type *my_kw) ecl_kw_type * ecl_kw_alloc_slice_copy(const ecl_kw_type *src, int index1, int index2, int stride) ecl_kw_type * ecl_kw_alloc(const char *header, int size, ecl_data_type) void ecl_kw_alloc_data(ecl_kw_type *) bool ecl_kw_header_eq(const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2) ecl_kw_type * ecl_kw_alloc_scatter_copy(const ecl_kw_type *src_kw, int target_size, const int *mapping, void *def_value) void ecl_kw_get_memcpy_int_data(const ecl_kw_type *ecl_kw, int *target) const char * ecl_kw_iget_char_ptr(const ecl_kw_type *ecl_kw, int i) bool ecl_kw_fread_realloc_data(ecl_kw_type *ecl_kw, fortio_type *fortio) bool ecl_kw_assert_binary_numeric(const ecl_kw_type *kw1, const ecl_kw_type *kw2) void ecl_kw_fread(ecl_kw_type *, fortio_type *) void ecl_kw_scalar_set_float_or_double(ecl_kw_type *ecl_kw, double value) ecl_kw_type * ecl_kw_buffer_alloc(buffer_type *buffer) const char * ecl_kw_get_header(const ecl_kw_type *ecl_kw) void ecl_kw_scale_float_or_double(ecl_kw_type *ecl_kw, double scale_factor) void ecl_kw_memcpy_data(ecl_kw_type *target, const ecl_kw_type *src) void ecl_kw_buffer_store(const ecl_kw_type *ecl_kw, buffer_type *buffer) void ecl_kw_set_header_name(ecl_kw_type *, const char *) const void * ecl_kw_copyc__(const void *) void ecl_kw_scalar_set__(ecl_kw_type *ecl_kw, const void *value) void ecl_kw_element_sum(const ecl_kw_type *, void *) bool ecl_kw_iget_bool(const ecl_kw_type *ecl_kw, int i) bool ecl_kw_fskip_data__(ecl_data_type, int, fortio_type *) bool ecl_kw_data_equal(const ecl_kw_type *ecl_kw, const void *data) Definition: ecl_type.hpp:72 |