ecl_kw.hpp File Reference
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <ert/util/buffer.hpp>
#include <ert/util/type_macros.hpp>
#include <ert/ecl/fortio.h>
#include <ert/ecl/ecl_util.hpp>
#include <ert/ecl/ecl_type.hpp>
#include <ert/ecl/ecl_kw_grdecl.hpp>
Include dependency graph for ecl_kw.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ECL_KW_MAX_SIZE   INT_MAX
 
#define ECL_KW_HEADER_DATA_SIZE   ECL_STRING8_LENGTH + ECL_TYPE_LENGTH + 4
 
#define ECL_KW_HEADER_FORTIO_SIZE   ECL_KW_HEADER_DATA_SIZE + 8
 
#define ECL_KW_SCALAR_SET_TYPED_HEADER(ctype)   void ecl_kw_scalar_set_ ## ctype( ecl_kw_type * ecl_kw , ctype value);
 
#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)
 
#define ECL_KW_SCALE_TYPED_HEADER(ctype)   void ecl_kw_scale_ ## ctype (ecl_kw_type * ecl_kw , ctype scale_factor)
 
#define ECL_KW_SHIFT_TYPED_HEADER(ctype)   void ecl_kw_shift_ ## ctype (ecl_kw_type * ecl_kw , ctype shift_factor)
 
#define ECL_KW_IGET_TYPED_HEADER(type)   type ecl_kw_iget_ ## type(const ecl_kw_type * , int)
 
#define ECL_KW_ISET_TYPED_HEADER(type)   void ecl_kw_iset_ ## type(ecl_kw_type * , int , type )
 
#define ECL_KW_GET_TYPED_PTR_HEADER(type)   type * ecl_kw_get_ ## type ## _ptr(const ecl_kw_type *)
 
#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)
 
#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)
 
#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)
 
#define ECL_KW_MAX_MIN_HEADER(ctype)   void ecl_kw_max_min_ ## ctype( const ecl_kw_type * ecl_kw , ctype * _max , ctype * _min)
 

Typedefs

typedef struct ecl_kw_struct ecl_kw_type
 

Enumerations

enum  ecl_read_status_enum { ECL_KW_READ_OK = 0 , ECL_KW_READ_FAIL = 1 }
 

Functions

 UTIL_IS_INSTANCE_HEADER (ecl_kw)
 
int ecl_kw_first_different (const ecl_kw_type *kw1, const ecl_kw_type *kw2, int offset, double abs_epsilon, double rel_epsilon)
 
size_t ecl_kw_fortio_size (const ecl_kw_type *ecl_kw)
 
void * ecl_kw_get_ptr (const ecl_kw_type *ecl_kw)
 
void ecl_kw_set_data_ptr (ecl_kw_type *ecl_kw, void *data)
 
void ecl_kw_fwrite_data (const ecl_kw_type *_ecl_kw, fortio_type *fortio)
 
bool ecl_kw_fread_realloc_data (ecl_kw_type *ecl_kw, fortio_type *fortio)
 
ecl_data_type ecl_kw_get_data_type (const ecl_kw_type *)
 
const char * ecl_kw_get_header8 (const ecl_kw_type *)
 
const char * ecl_kw_get_header (const ecl_kw_type *ecl_kw)
 
ecl_kw_typeecl_kw_alloc_empty (void)
 
ecl_read_status_enum ecl_kw_fread_header (ecl_kw_type *, fortio_type *)
 
void ecl_kw_set_header_name (ecl_kw_type *, const char *)
 
bool ecl_kw_fseek_kw (const char *, bool, bool, fortio_type *)
 
bool ecl_kw_fseek_last_kw (const char *, bool, fortio_type *)
 
void ecl_kw_inplace_update_file (const ecl_kw_type *, const char *, int)
 
void ecl_kw_fskip (fortio_type *)
 
void ecl_kw_alloc_data (ecl_kw_type *)
 
void ecl_kw_alloc_double_data (ecl_kw_type *ecl_kw, double *values)
 
void ecl_kw_alloc_float_data (ecl_kw_type *ecl_kw, float *values)
 
bool ecl_kw_fread_realloc (ecl_kw_type *, fortio_type *)
 
void ecl_kw_fread (ecl_kw_type *, fortio_type *)
 
ecl_kw_typeecl_kw_fread_alloc (fortio_type *)
 
ecl_kw_typeecl_kw_alloc_actnum (const ecl_kw_type *porv_kw, float porv_limit)
 
void ecl_kw_free_data (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)
 
void ecl_kw_free (ecl_kw_type *)
 
void ecl_kw_free__ (void *)
 
ecl_kw_typeecl_kw_alloc_copy (const ecl_kw_type *)
 
ecl_kw_typeecl_kw_alloc_sub_copy (const ecl_kw_type *src, const char *new_kw, int offset, int count)
 
const void * ecl_kw_copyc__ (const void *)
 
ecl_kw_typeecl_kw_alloc_slice_copy (const ecl_kw_type *src, int index1, int index2, int stride)
 
void ecl_kw_resize (ecl_kw_type *ecl_kw, int new_size)
 
void * ecl_kw_alloc_data_copy (const ecl_kw_type *)
 
void ecl_kw_memcpy (ecl_kw_type *, const ecl_kw_type *)
 
void ecl_kw_get_memcpy_data (const ecl_kw_type *, void *)
 
void ecl_kw_get_memcpy_float_data (const ecl_kw_type *ecl_kw, float *target)
 
void ecl_kw_get_memcpy_double_data (const ecl_kw_type *ecl_kw, double *target)
 
void ecl_kw_get_memcpy_int_data (const ecl_kw_type *ecl_kw, int *target)
 
void ecl_kw_set_memcpy_data (ecl_kw_type *, const void *)
 
bool ecl_kw_fwrite (const ecl_kw_type *, fortio_type *)
 
void ecl_kw_iget (const ecl_kw_type *, int, void *)
 
void ecl_kw_iset (ecl_kw_type *ecl_kw, int i, const void *iptr)
 
void ecl_kw_iset_char_ptr (ecl_kw_type *ecl_kw, int index, const char *s)
 
void ecl_kw_iset_string8 (ecl_kw_type *ecl_kw, int index, const char *s8)
 
void ecl_kw_iset_string_ptr (ecl_kw_type *, int, const char *)
 
const char * ecl_kw_iget_string_ptr (const ecl_kw_type *, int)
 
const char * ecl_kw_iget_char_ptr (const ecl_kw_type *ecl_kw, int i)
 
void * ecl_kw_iget_ptr (const ecl_kw_type *, int)
 
int ecl_kw_get_size (const ecl_kw_type *)
 
bool ecl_kw_ichar_eq (const ecl_kw_type *, int, const char *)
 
ecl_kw_typeecl_kw_alloc (const char *header, int size, ecl_data_type)
 
ecl_kw_typeecl_kw_alloc_new (const char *, int, ecl_data_type, const void *)
 
ecl_kw_typeecl_kw_alloc_new_shared (const char *, int, ecl_data_type, void *)
 
ecl_kw_typeecl_kw_alloc_global_copy (const ecl_kw_type *src, const ecl_kw_type *actnum)
 
void ecl_kw_fwrite_param (const char *, bool, const char *, ecl_data_type, int, void *)
 
void ecl_kw_fwrite_param_fortio (fortio_type *, const char *, ecl_data_type, int, void *)
 
void ecl_kw_summarize (const ecl_kw_type *ecl_kw)
 
void ecl_kw_fread_double_param (const char *, bool, double *)
 
float ecl_kw_iget_as_float (const ecl_kw_type *ecl_kw, int i)
 
double ecl_kw_iget_as_double (const ecl_kw_type *ecl_kw, int i)
 
void ecl_kw_get_data_as_double (const ecl_kw_type *, double *)
 
void ecl_kw_get_data_as_float (const ecl_kw_type *ecl_kw, float *float_data)
 
bool ecl_kw_name_equal (const ecl_kw_type *ecl_kw, const char *name)
 
bool ecl_kw_header_eq (const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2)
 
bool ecl_kw_equal (const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2)
 
bool ecl_kw_size_and_type_equal (const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2)
 
bool ecl_kw_icmp_string (const ecl_kw_type *ecl_kw, int index, const char *other_string)
 
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_block_equal (const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2, int cmp_elements)
 
bool ecl_kw_data_equal (const ecl_kw_type *ecl_kw, const void *data)
 
bool ecl_kw_content_equal (const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2)
 
bool ecl_kw_fskip_data__ (ecl_data_type, int, fortio_type *)
 
bool ecl_kw_fskip_data (ecl_kw_type *ecl_kw, fortio_type *fortio)
 
bool ecl_kw_fread_data (ecl_kw_type *ecl_kw, fortio_type *fortio)
 
void ecl_kw_fskip_header (fortio_type *fortio)
 
bool ecl_kw_size_and_numeric_type_equal (const ecl_kw_type *kw1, const ecl_kw_type *kw2)
 
bool ecl_kw_inplace_safe_div (ecl_kw_type *target_kw, const ecl_kw_type *divisor)
 
void ecl_kw_inplace_sqrt (ecl_kw_type *kw)
 
bool ecl_kw_is_kw_file (fortio_type *fortio)
 
int ecl_kw_element_sum_int (const ecl_kw_type *ecl_kw)
 
double ecl_kw_element_sum_float (const ecl_kw_type *ecl_kw)
 
void ecl_kw_inplace_inv (ecl_kw_type *my_kw)
 
void ecl_kw_element_sum (const ecl_kw_type *, void *)
 
void ecl_kw_element_sum_indexed (const ecl_kw_type *ecl_kw, const int_vector_type *index_list, void *_sum)
 
void ecl_kw_max_min (const ecl_kw_type *, void *, void *)
 
void * ecl_kw_get_void_ptr (const ecl_kw_type *ecl_kw)
 
ecl_kw_typeecl_kw_buffer_alloc (buffer_type *buffer)
 
void ecl_kw_buffer_store (const ecl_kw_type *ecl_kw, buffer_type *buffer)
 
void ecl_kw_fprintf_data (const ecl_kw_type *ecl_kw, const char *fmt, FILE *stream)
 
void ecl_kw_memcpy_data (ecl_kw_type *target, const ecl_kw_type *src)
 
bool ecl_kw_assert_numeric (const ecl_kw_type *kw)
 
bool ecl_kw_assert_binary (const ecl_kw_type *kw1, const ecl_kw_type *kw2)
 
void ecl_kw_scalar_set_bool (ecl_kw_type *ecl_kw, bool bool_value)
 
void ecl_kw_scalar_set__ (ecl_kw_type *ecl_kw, const void *value)
 
void ecl_kw_scalar_set_float_or_double (ecl_kw_type *ecl_kw, double value)
 
ecl_kw_typeecl_kw_alloc_scatter_copy (const ecl_kw_type *src_kw, int target_size, const int *mapping, void *def_value)
 
void ecl_kw_inplace_add_squared (ecl_kw_type *target_kw, const ecl_kw_type *add_kw)
 
void ecl_kw_inplace_add (ecl_kw_type *target_kw, const ecl_kw_type *add_kw)
 
void ecl_kw_inplace_sub (ecl_kw_type *target_kw, const ecl_kw_type *sub_kw)
 
void ecl_kw_inplace_div (ecl_kw_type *target_kw, const ecl_kw_type *div_kw)
 
void ecl_kw_inplace_mul (ecl_kw_type *target_kw, const ecl_kw_type *mul_kw)
 
void ecl_kw_inplace_abs (ecl_kw_type *kw)
 
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_inplace_sub_indexed (ecl_kw_type *target_kw, const int_vector_type *index_set, const ecl_kw_type *sub_kw)
 
void ecl_kw_inplace_mul_indexed (ecl_kw_type *target_kw, const int_vector_type *index_set, const ecl_kw_type *mul_kw)
 
void ecl_kw_inplace_div_indexed (ecl_kw_type *target_kw, const int_vector_type *index_set, const ecl_kw_type *div_kw)
 
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_assert_binary_numeric (const ecl_kw_type *kw1, const ecl_kw_type *kw2)
 
 ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER (int)
 
 ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER (float)
 
 ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER (double)
 
 ECL_KW_SCALE_TYPED_HEADER (int)
 
 ECL_KW_SCALE_TYPED_HEADER (float)
 
 ECL_KW_SCALE_TYPED_HEADER (double)
 
void ecl_kw_scale_float_or_double (ecl_kw_type *ecl_kw, double scale_factor)
 
 ECL_KW_SHIFT_TYPED_HEADER (int)
 
 ECL_KW_SHIFT_TYPED_HEADER (float)
 
 ECL_KW_SHIFT_TYPED_HEADER (double)
 
void ecl_kw_shift_float_or_double (ecl_kw_type *ecl_kw, double shift_value)
 
 ECL_KW_IGET_TYPED_HEADER (double)
 
 ECL_KW_IGET_TYPED_HEADER (float)
 
 ECL_KW_IGET_TYPED_HEADER (int)
 
bool ecl_kw_iget_bool (const ecl_kw_type *ecl_kw, int i)
 
 ECL_KW_ISET_TYPED_HEADER (double)
 
 ECL_KW_ISET_TYPED_HEADER (float)
 
 ECL_KW_ISET_TYPED_HEADER (int)
 
void ecl_kw_iset_bool (ecl_kw_type *ecl_kw, int i, bool bool_value)
 
 ECL_KW_GET_TYPED_PTR_HEADER (double)
 
 ECL_KW_GET_TYPED_PTR_HEADER (float)
 
 ECL_KW_GET_TYPED_PTR_HEADER (int)
 
 ECL_KW_GET_TYPED_PTR_HEADER (bool)
 
 ECL_KW_SET_INDEXED_HEADER (double)
 
 ECL_KW_SET_INDEXED_HEADER (float)
 
 ECL_KW_SET_INDEXED_HEADER (int)
 
 ECL_KW_SHIFT_INDEXED_HEADER (int)
 
 ECL_KW_SHIFT_INDEXED_HEADER (float)
 
 ECL_KW_SHIFT_INDEXED_HEADER (double)
 
 ECL_KW_SCALE_INDEXED_HEADER (int)
 
 ECL_KW_SCALE_INDEXED_HEADER (float)
 
 ECL_KW_SCALE_INDEXED_HEADER (double)
 
 ECL_KW_MAX_MIN_HEADER (int)
 
 ECL_KW_MAX_MIN_HEADER (float)
 
 ECL_KW_MAX_MIN_HEADER (double)
 
void ecl_kw_fix_uninitialized (ecl_kw_type *ecl_kw, int nx, int ny, int nz, const int *actnum)
 
ecl_type_enum ecl_kw_get_type (const ecl_kw_type *)
 

Macro Definition Documentation

◆ ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER

#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)

◆ ECL_KW_GET_TYPED_PTR_HEADER

#define ECL_KW_GET_TYPED_PTR_HEADER (   type)    type * ecl_kw_get_ ## type ## _ptr(const ecl_kw_type *)

◆ ECL_KW_HEADER_DATA_SIZE

#define ECL_KW_HEADER_DATA_SIZE   ECL_STRING8_LENGTH + ECL_TYPE_LENGTH + 4

◆ ECL_KW_HEADER_FORTIO_SIZE

#define ECL_KW_HEADER_FORTIO_SIZE   ECL_KW_HEADER_DATA_SIZE + 8

◆ ECL_KW_IGET_TYPED_HEADER

#define ECL_KW_IGET_TYPED_HEADER (   type)    type ecl_kw_iget_ ## type(const ecl_kw_type * , int)

◆ ECL_KW_ISET_TYPED_HEADER

#define ECL_KW_ISET_TYPED_HEADER (   type)    void ecl_kw_iset_ ## type(ecl_kw_type * , int , type )

◆ ECL_KW_MAX_MIN_HEADER

#define ECL_KW_MAX_MIN_HEADER (   ctype)    void ecl_kw_max_min_ ## ctype( const ecl_kw_type * ecl_kw , ctype * _max , ctype * _min)

◆ ECL_KW_MAX_SIZE

#define ECL_KW_MAX_SIZE   INT_MAX

◆ ECL_KW_SCALAR_SET_TYPED_HEADER

#define ECL_KW_SCALAR_SET_TYPED_HEADER (   ctype)    void ecl_kw_scalar_set_ ## ctype( ecl_kw_type * ecl_kw , ctype value);

◆ ECL_KW_SCALE_INDEXED_HEADER

#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)

◆ ECL_KW_SCALE_TYPED_HEADER

#define ECL_KW_SCALE_TYPED_HEADER (   ctype)    void ecl_kw_scale_ ## ctype (ecl_kw_type * ecl_kw , ctype scale_factor)

◆ ECL_KW_SET_INDEXED_HEADER

#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)

◆ ECL_KW_SHIFT_INDEXED_HEADER

#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)

◆ ECL_KW_SHIFT_TYPED_HEADER

#define ECL_KW_SHIFT_TYPED_HEADER (   ctype)    void ecl_kw_shift_ ## ctype (ecl_kw_type * ecl_kw , ctype shift_factor)

Typedef Documentation

◆ ecl_kw_type

typedef struct ecl_kw_struct ecl_kw_type

Enumeration Type Documentation

◆ ecl_read_status_enum

Enumerator
ECL_KW_READ_OK 
ECL_KW_READ_FAIL 

Function Documentation

◆ ecl_kw_alloc()

ecl_kw_type * ecl_kw_alloc ( const char *  header,
int  size,
ecl_data_type   
)

Referenced by ERT::write_mess().

◆ ecl_kw_alloc_actnum()

ecl_kw_type * ecl_kw_alloc_actnum ( const ecl_kw_type porv_kw,
float  porv_limit 
)

◆ ecl_kw_alloc_copy()

ecl_kw_type * ecl_kw_alloc_copy ( const ecl_kw_type )

◆ ecl_kw_alloc_data()

void ecl_kw_alloc_data ( ecl_kw_type )

◆ ecl_kw_alloc_data_copy()

void * ecl_kw_alloc_data_copy ( const ecl_kw_type )

◆ ecl_kw_alloc_double_data()

void ecl_kw_alloc_double_data ( ecl_kw_type ecl_kw,
double *  values 
)

◆ ecl_kw_alloc_empty()

ecl_kw_type * ecl_kw_alloc_empty ( void  )

◆ ecl_kw_alloc_float_data()

void ecl_kw_alloc_float_data ( ecl_kw_type ecl_kw,
float *  values 
)

◆ ecl_kw_alloc_global_copy()

ecl_kw_type * ecl_kw_alloc_global_copy ( const ecl_kw_type src,
const ecl_kw_type actnum 
)

◆ ecl_kw_alloc_new()

ecl_kw_type * ecl_kw_alloc_new ( const char *  ,
int  ,
ecl_data_type  ,
const void *   
)

◆ ecl_kw_alloc_new_shared()

ecl_kw_type * ecl_kw_alloc_new_shared ( const char *  ,
int  ,
ecl_data_type  ,
void *   
)

◆ ecl_kw_alloc_scatter_copy()

ecl_kw_type * ecl_kw_alloc_scatter_copy ( const ecl_kw_type src_kw,
int  target_size,
const int *  mapping,
void *  def_value 
)

◆ ecl_kw_alloc_slice_copy()

ecl_kw_type * ecl_kw_alloc_slice_copy ( const ecl_kw_type src,
int  index1,
int  index2,
int  stride 
)

◆ ecl_kw_alloc_sub_copy()

ecl_kw_type * ecl_kw_alloc_sub_copy ( const ecl_kw_type src,
const char *  new_kw,
int  offset,
int  count 
)

◆ ecl_kw_assert_binary()

bool ecl_kw_assert_binary ( const ecl_kw_type kw1,
const ecl_kw_type kw2 
)

◆ ecl_kw_assert_binary_numeric()

bool ecl_kw_assert_binary_numeric ( const ecl_kw_type kw1,
const ecl_kw_type kw2 
)

◆ ecl_kw_assert_numeric()

bool ecl_kw_assert_numeric ( const ecl_kw_type kw)

◆ ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER() [1/3]

ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER ( double  )

◆ ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER() [2/3]

ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER ( float  )

◆ ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER() [3/3]

ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER ( int  )

◆ ecl_kw_block_equal()

bool ecl_kw_block_equal ( const ecl_kw_type ecl_kw1,
const ecl_kw_type ecl_kw2,
int  cmp_elements 
)

◆ ecl_kw_buffer_alloc()

ecl_kw_type * ecl_kw_buffer_alloc ( buffer_type buffer)

◆ ecl_kw_buffer_store()

void ecl_kw_buffer_store ( const ecl_kw_type ecl_kw,
buffer_type buffer 
)

◆ ecl_kw_content_equal()

bool ecl_kw_content_equal ( const ecl_kw_type ecl_kw1,
const ecl_kw_type ecl_kw2 
)

◆ ecl_kw_copy_indexed()

void ecl_kw_copy_indexed ( ecl_kw_type target_kw,
const int_vector_type *  index_set,
const ecl_kw_type src_kw 
)

◆ ecl_kw_copyc__()

const void * ecl_kw_copyc__ ( const void *  )

◆ ecl_kw_data_equal()

bool ecl_kw_data_equal ( const ecl_kw_type ecl_kw,
const void *  data 
)

◆ ecl_kw_element_sum()

void ecl_kw_element_sum ( const ecl_kw_type ,
void *   
)

◆ ecl_kw_element_sum_float()

double ecl_kw_element_sum_float ( const ecl_kw_type ecl_kw)

◆ ecl_kw_element_sum_indexed()

void ecl_kw_element_sum_indexed ( const ecl_kw_type ecl_kw,
const int_vector_type *  index_list,
void *  _sum 
)

◆ ecl_kw_element_sum_int()

int ecl_kw_element_sum_int ( const ecl_kw_type ecl_kw)

◆ ecl_kw_equal()

bool ecl_kw_equal ( const ecl_kw_type ecl_kw1,
const ecl_kw_type ecl_kw2 
)

◆ ecl_kw_first_different()

int ecl_kw_first_different ( const ecl_kw_type kw1,
const ecl_kw_type kw2,
int  offset,
double  abs_epsilon,
double  rel_epsilon 
)

◆ ecl_kw_fix_uninitialized()

void ecl_kw_fix_uninitialized ( ecl_kw_type ecl_kw,
int  nx,
int  ny,
int  nz,
const int *  actnum 
)

◆ ecl_kw_fortio_size()

size_t ecl_kw_fortio_size ( const ecl_kw_type ecl_kw)

◆ ecl_kw_fprintf_data()

void ecl_kw_fprintf_data ( const ecl_kw_type ecl_kw,
const char *  fmt,
FILE *  stream 
)

◆ ecl_kw_fread()

void ecl_kw_fread ( ecl_kw_type ,
fortio_type  
)

◆ ecl_kw_fread_alloc()

ecl_kw_type * ecl_kw_fread_alloc ( fortio_type )

Referenced by ERT::EclKW< T >::load().

◆ ecl_kw_fread_data()

bool ecl_kw_fread_data ( ecl_kw_type ecl_kw,
fortio_type fortio 
)

◆ ecl_kw_fread_double_param()

void ecl_kw_fread_double_param ( const char *  ,
bool  ,
double *   
)

◆ ecl_kw_fread_header()

ecl_read_status_enum ecl_kw_fread_header ( ecl_kw_type ,
fortio_type  
)

◆ ecl_kw_fread_indexed_data()

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 
)

◆ ecl_kw_fread_realloc()

bool ecl_kw_fread_realloc ( ecl_kw_type ,
fortio_type  
)

◆ ecl_kw_fread_realloc_data()

bool ecl_kw_fread_realloc_data ( ecl_kw_type ecl_kw,
fortio_type fortio 
)

◆ ecl_kw_free()

void ecl_kw_free ( ecl_kw_type )

Referenced by ERT::EclKW< T >::~EclKW().

◆ ecl_kw_free__()

void ecl_kw_free__ ( void *  )

◆ ecl_kw_free_data()

void ecl_kw_free_data ( ecl_kw_type )

◆ ecl_kw_fseek_kw()

bool ecl_kw_fseek_kw ( const char *  ,
bool  ,
bool  ,
fortio_type  
)

◆ ecl_kw_fseek_last_kw()

bool ecl_kw_fseek_last_kw ( const char *  ,
bool  ,
fortio_type  
)

◆ ecl_kw_fskip()

void ecl_kw_fskip ( fortio_type )

◆ ecl_kw_fskip_data()

bool ecl_kw_fskip_data ( ecl_kw_type ecl_kw,
fortio_type fortio 
)

◆ ecl_kw_fskip_data__()

bool ecl_kw_fskip_data__ ( ecl_data_type  ,
int  ,
fortio_type  
)

◆ ecl_kw_fskip_header()

void ecl_kw_fskip_header ( fortio_type fortio)

◆ ecl_kw_fwrite()

bool ecl_kw_fwrite ( const ecl_kw_type ,
fortio_type  
)

◆ ecl_kw_fwrite_data()

void ecl_kw_fwrite_data ( const ecl_kw_type _ecl_kw,
fortio_type fortio 
)

◆ ecl_kw_fwrite_param()

void ecl_kw_fwrite_param ( const char *  ,
bool  ,
const char *  ,
ecl_data_type  ,
int  ,
void *   
)

◆ ecl_kw_fwrite_param_fortio()

void ecl_kw_fwrite_param_fortio ( fortio_type ,
const char *  ,
ecl_data_type  ,
int  ,
void *   
)

◆ ecl_kw_get_data_as_double()

void ecl_kw_get_data_as_double ( const ecl_kw_type ,
double *   
)

◆ ecl_kw_get_data_as_float()

void ecl_kw_get_data_as_float ( const ecl_kw_type ecl_kw,
float *  float_data 
)

◆ ecl_kw_get_data_type()

ecl_data_type ecl_kw_get_data_type ( const ecl_kw_type )

◆ ecl_kw_get_header()

const char * ecl_kw_get_header ( const ecl_kw_type ecl_kw)

◆ ecl_kw_get_header8()

const char * ecl_kw_get_header8 ( const ecl_kw_type )

◆ ecl_kw_get_memcpy_data()

void ecl_kw_get_memcpy_data ( const ecl_kw_type ,
void *   
)

◆ ecl_kw_get_memcpy_double_data()

void ecl_kw_get_memcpy_double_data ( const ecl_kw_type ecl_kw,
double *  target 
)

◆ ecl_kw_get_memcpy_float_data()

void ecl_kw_get_memcpy_float_data ( const ecl_kw_type ecl_kw,
float *  target 
)

◆ ecl_kw_get_memcpy_int_data()

void ecl_kw_get_memcpy_int_data ( const ecl_kw_type ecl_kw,
int *  target 
)

◆ ecl_kw_get_ptr()

void * ecl_kw_get_ptr ( const ecl_kw_type ecl_kw)

◆ ecl_kw_get_size()

int ecl_kw_get_size ( const ecl_kw_type )

◆ ecl_kw_get_type()

ecl_type_enum ecl_kw_get_type ( const ecl_kw_type )

◆ ECL_KW_GET_TYPED_PTR_HEADER() [1/4]

ECL_KW_GET_TYPED_PTR_HEADER ( bool  )

◆ ECL_KW_GET_TYPED_PTR_HEADER() [2/4]

ECL_KW_GET_TYPED_PTR_HEADER ( double  )

◆ ECL_KW_GET_TYPED_PTR_HEADER() [3/4]

ECL_KW_GET_TYPED_PTR_HEADER ( float  )

◆ ECL_KW_GET_TYPED_PTR_HEADER() [4/4]

ECL_KW_GET_TYPED_PTR_HEADER ( int  )

◆ ecl_kw_get_void_ptr()

void * ecl_kw_get_void_ptr ( const ecl_kw_type ecl_kw)

◆ ecl_kw_header_eq()

bool ecl_kw_header_eq ( const ecl_kw_type ecl_kw1,
const ecl_kw_type ecl_kw2 
)

◆ ecl_kw_ichar_eq()

bool ecl_kw_ichar_eq ( const ecl_kw_type ,
int  ,
const char *   
)

◆ ecl_kw_icmp_string()

bool ecl_kw_icmp_string ( const ecl_kw_type ecl_kw,
int  index,
const char *  other_string 
)

◆ ecl_kw_iget()

void ecl_kw_iget ( const ecl_kw_type ,
int  ,
void *   
)

◆ ecl_kw_iget_as_double()

double ecl_kw_iget_as_double ( const ecl_kw_type ecl_kw,
int  i 
)

◆ ecl_kw_iget_as_float()

float ecl_kw_iget_as_float ( const ecl_kw_type ecl_kw,
int  i 
)

◆ ecl_kw_iget_bool()

bool ecl_kw_iget_bool ( const ecl_kw_type ecl_kw,
int  i 
)

Referenced by ERT::EclKW_ref< T >::at().

◆ ecl_kw_iget_char_ptr()

const char * ecl_kw_iget_char_ptr ( const ecl_kw_type ecl_kw,
int  i 
)

◆ ecl_kw_iget_ptr()

void * ecl_kw_iget_ptr ( const ecl_kw_type ,
int   
)

◆ ecl_kw_iget_string_ptr()

const char * ecl_kw_iget_string_ptr ( const ecl_kw_type ,
int   
)

◆ ECL_KW_IGET_TYPED_HEADER() [1/3]

ECL_KW_IGET_TYPED_HEADER ( double  )

◆ ECL_KW_IGET_TYPED_HEADER() [2/3]

ECL_KW_IGET_TYPED_HEADER ( float  )

◆ ECL_KW_IGET_TYPED_HEADER() [3/3]

ECL_KW_IGET_TYPED_HEADER ( int  )

◆ ecl_kw_inplace_abs()

void ecl_kw_inplace_abs ( ecl_kw_type kw)

◆ ecl_kw_inplace_add()

void ecl_kw_inplace_add ( ecl_kw_type target_kw,
const ecl_kw_type add_kw 
)

◆ ecl_kw_inplace_add_indexed()

void ecl_kw_inplace_add_indexed ( ecl_kw_type target_kw,
const int_vector_type *  index_set,
const ecl_kw_type add_kw 
)

◆ ecl_kw_inplace_add_squared()

void ecl_kw_inplace_add_squared ( ecl_kw_type target_kw,
const ecl_kw_type add_kw 
)

◆ ecl_kw_inplace_div()

void ecl_kw_inplace_div ( ecl_kw_type target_kw,
const ecl_kw_type div_kw 
)

◆ ecl_kw_inplace_div_indexed()

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_inplace_inv()

void ecl_kw_inplace_inv ( ecl_kw_type my_kw)

◆ ecl_kw_inplace_mul()

void ecl_kw_inplace_mul ( ecl_kw_type target_kw,
const ecl_kw_type mul_kw 
)

◆ ecl_kw_inplace_mul_indexed()

void ecl_kw_inplace_mul_indexed ( ecl_kw_type target_kw,
const int_vector_type *  index_set,
const ecl_kw_type mul_kw 
)

◆ ecl_kw_inplace_safe_div()

bool ecl_kw_inplace_safe_div ( ecl_kw_type target_kw,
const ecl_kw_type divisor 
)

◆ ecl_kw_inplace_sqrt()

void ecl_kw_inplace_sqrt ( ecl_kw_type kw)

◆ ecl_kw_inplace_sub()

void ecl_kw_inplace_sub ( ecl_kw_type target_kw,
const ecl_kw_type sub_kw 
)

◆ ecl_kw_inplace_sub_indexed()

void ecl_kw_inplace_sub_indexed ( ecl_kw_type target_kw,
const int_vector_type *  index_set,
const ecl_kw_type sub_kw 
)

◆ ecl_kw_inplace_update_file()

void ecl_kw_inplace_update_file ( const ecl_kw_type ,
const char *  ,
int   
)

◆ ecl_kw_is_kw_file()

bool ecl_kw_is_kw_file ( fortio_type fortio)

◆ ecl_kw_iset()

void ecl_kw_iset ( ecl_kw_type ecl_kw,
int  i,
const void *  iptr 
)

◆ ecl_kw_iset_bool()

void ecl_kw_iset_bool ( ecl_kw_type ecl_kw,
int  i,
bool  bool_value 
)

Referenced by ERT::EclKW< T >::EclKW().

◆ ecl_kw_iset_char_ptr()

void ecl_kw_iset_char_ptr ( ecl_kw_type ecl_kw,
int  index,
const char *  s 
)

◆ ecl_kw_iset_string8()

void ecl_kw_iset_string8 ( ecl_kw_type ecl_kw,
int  index,
const char *  s8 
)

Referenced by ERT::EclKW< T >::EclKW().

◆ ecl_kw_iset_string_ptr()

void ecl_kw_iset_string_ptr ( ecl_kw_type ,
int  ,
const char *   
)

◆ ECL_KW_ISET_TYPED_HEADER() [1/3]

ECL_KW_ISET_TYPED_HEADER ( double  )

◆ ECL_KW_ISET_TYPED_HEADER() [2/3]

ECL_KW_ISET_TYPED_HEADER ( float  )

◆ ECL_KW_ISET_TYPED_HEADER() [3/3]

ECL_KW_ISET_TYPED_HEADER ( int  )

◆ ecl_kw_max_min()

void ecl_kw_max_min ( const ecl_kw_type ,
void *  ,
void *   
)

◆ ECL_KW_MAX_MIN_HEADER() [1/3]

ECL_KW_MAX_MIN_HEADER ( double  )

◆ ECL_KW_MAX_MIN_HEADER() [2/3]

ECL_KW_MAX_MIN_HEADER ( float  )

◆ ECL_KW_MAX_MIN_HEADER() [3/3]

ECL_KW_MAX_MIN_HEADER ( int  )

◆ ecl_kw_memcpy()

void ecl_kw_memcpy ( ecl_kw_type ,
const ecl_kw_type  
)

◆ ecl_kw_memcpy_data()

void ecl_kw_memcpy_data ( ecl_kw_type target,
const ecl_kw_type src 
)

◆ ecl_kw_name_equal()

bool ecl_kw_name_equal ( const ecl_kw_type ecl_kw,
const char *  name 
)

◆ ecl_kw_numeric_equal()

bool ecl_kw_numeric_equal ( const ecl_kw_type ecl_kw1,
const ecl_kw_type ecl_kw2,
double  abs_diff,
double  rel_diff 
)

◆ ecl_kw_resize()

void ecl_kw_resize ( ecl_kw_type ecl_kw,
int  new_size 
)

◆ ecl_kw_scalar_set__()

void ecl_kw_scalar_set__ ( ecl_kw_type ecl_kw,
const void *  value 
)

◆ ecl_kw_scalar_set_bool()

void ecl_kw_scalar_set_bool ( ecl_kw_type ecl_kw,
bool  bool_value 
)

◆ ecl_kw_scalar_set_float_or_double()

void ecl_kw_scalar_set_float_or_double ( ecl_kw_type ecl_kw,
double  value 
)

◆ ecl_kw_scale_float_or_double()

void ecl_kw_scale_float_or_double ( ecl_kw_type ecl_kw,
double  scale_factor 
)

◆ ECL_KW_SCALE_INDEXED_HEADER() [1/3]

ECL_KW_SCALE_INDEXED_HEADER ( double  )

◆ ECL_KW_SCALE_INDEXED_HEADER() [2/3]

ECL_KW_SCALE_INDEXED_HEADER ( float  )

◆ ECL_KW_SCALE_INDEXED_HEADER() [3/3]

ECL_KW_SCALE_INDEXED_HEADER ( int  )

◆ ECL_KW_SCALE_TYPED_HEADER() [1/3]

ECL_KW_SCALE_TYPED_HEADER ( double  )

◆ ECL_KW_SCALE_TYPED_HEADER() [2/3]

ECL_KW_SCALE_TYPED_HEADER ( float  )

◆ ECL_KW_SCALE_TYPED_HEADER() [3/3]

ECL_KW_SCALE_TYPED_HEADER ( int  )

◆ ecl_kw_set_data_ptr()

void ecl_kw_set_data_ptr ( ecl_kw_type ecl_kw,
void *  data 
)

◆ ecl_kw_set_header_name()

void ecl_kw_set_header_name ( ecl_kw_type ,
const char *   
)

◆ ECL_KW_SET_INDEXED_HEADER() [1/3]

ECL_KW_SET_INDEXED_HEADER ( double  )

◆ ECL_KW_SET_INDEXED_HEADER() [2/3]

ECL_KW_SET_INDEXED_HEADER ( float  )

◆ ECL_KW_SET_INDEXED_HEADER() [3/3]

ECL_KW_SET_INDEXED_HEADER ( int  )

◆ ecl_kw_set_memcpy_data()

void ecl_kw_set_memcpy_data ( ecl_kw_type ,
const void *   
)

Referenced by ERT::EclKW< T >::EclKW().

◆ ecl_kw_shift_float_or_double()

void ecl_kw_shift_float_or_double ( ecl_kw_type ecl_kw,
double  shift_value 
)

◆ ECL_KW_SHIFT_INDEXED_HEADER() [1/3]

ECL_KW_SHIFT_INDEXED_HEADER ( double  )

◆ ECL_KW_SHIFT_INDEXED_HEADER() [2/3]

ECL_KW_SHIFT_INDEXED_HEADER ( float  )

◆ ECL_KW_SHIFT_INDEXED_HEADER() [3/3]

ECL_KW_SHIFT_INDEXED_HEADER ( int  )

◆ ECL_KW_SHIFT_TYPED_HEADER() [1/3]

ECL_KW_SHIFT_TYPED_HEADER ( double  )

◆ ECL_KW_SHIFT_TYPED_HEADER() [2/3]

ECL_KW_SHIFT_TYPED_HEADER ( float  )

◆ ECL_KW_SHIFT_TYPED_HEADER() [3/3]

ECL_KW_SHIFT_TYPED_HEADER ( int  )

◆ ecl_kw_size_and_numeric_type_equal()

bool ecl_kw_size_and_numeric_type_equal ( const ecl_kw_type kw1,
const ecl_kw_type kw2 
)

◆ ecl_kw_size_and_type_equal()

bool ecl_kw_size_and_type_equal ( const ecl_kw_type ecl_kw1,
const ecl_kw_type ecl_kw2 
)

◆ ecl_kw_summarize()

void ecl_kw_summarize ( const ecl_kw_type ecl_kw)

◆ UTIL_IS_INSTANCE_HEADER()

UTIL_IS_INSTANCE_HEADER ( ecl_kw  )