ecl_rst_file.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2012 Equinor ASA, Norway.
3
4 The file 'ecl_rst_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
20#ifndef ERT_ECL_RST_FILE_H
21#define ERT_ECL_RST_FILE_H
22
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29
30typedef struct ecl_rst_file_struct ecl_rst_file_type;
31
32
33 ecl_rst_file_type * ecl_rst_file_open_read( const char * filename );
34 ecl_rst_file_type * ecl_rst_file_open_write( const char * filename );
35 ecl_rst_file_type * ecl_rst_file_open_append( const char * filename );
36 ecl_rst_file_type * ecl_rst_file_open_write_seek( const char * filename , int report_step);
38
41 void ecl_rst_file_fwrite_header( ecl_rst_file_type * rst_file , int seqnum, ecl_rsthead_type * rsthead_data );
42 void ecl_rst_file_add_kw(ecl_rst_file_type * rst_file , const ecl_kw_type * ecl_kw );
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif
struct ecl_kw_struct ecl_kw_type
Definition: ecl_kw.hpp:39
void ecl_rst_file_fwrite_header(ecl_rst_file_type *rst_file, int seqnum, ecl_rsthead_type *rsthead_data)
ecl_rst_file_type * ecl_rst_file_open_write(const char *filename)
void ecl_rst_file_close(ecl_rst_file_type *rst_file)
void ecl_rst_file_end_solution(ecl_rst_file_type *rst_file)
offset_type ecl_rst_file_ftell(const ecl_rst_file_type *rst_file)
struct ecl_rst_file_struct ecl_rst_file_type
Definition: ecl_rst_file.hpp:30
void ecl_rst_file_start_solution(ecl_rst_file_type *rst_file)
ecl_rst_file_type * ecl_rst_file_open_append(const char *filename)
void ecl_rst_file_add_kw(ecl_rst_file_type *rst_file, const ecl_kw_type *ecl_kw)
ecl_rst_file_type * ecl_rst_file_open_write_seek(const char *filename, int report_step)
ecl_rst_file_type * ecl_rst_file_open_read(const char *filename)
Definition: ecl_rsthead.hpp:33
long offset_type
Definition: util.h:76