mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
112 lines
5.9 KiB
C
112 lines
5.9 KiB
C
/*
|
|
Copyright (C) 2011 Statoil ASA, Norway.
|
|
|
|
The file 'ecl_config.h' is part of ERT - Ensemble based Reservoir Tool.
|
|
|
|
ERT is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
ERT is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
for more details.
|
|
*/
|
|
|
|
#ifndef __ECL_CONFIG_H__
|
|
#define __ECL_CONFIG_H__
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#include <time.h>
|
|
|
|
#include <ert/util/path_fmt.h>
|
|
#include <ert/util/ui_return.h>
|
|
|
|
#include <ert/config/config.h>
|
|
|
|
#include <ert/ecl/ecl_grid.h>
|
|
#include <ert/ecl/ecl_sum.h>
|
|
#include <ert/ecl/ecl_io_config.h>
|
|
|
|
#include <ert/sched/sched_file.h>
|
|
|
|
#include <ert/enkf/ecl_refcase_list.h>
|
|
|
|
|
|
typedef struct ecl_config_struct ecl_config_type;
|
|
|
|
const char * ecl_config_get_data_file(const ecl_config_type * );
|
|
void ecl_config_set_data_file( ecl_config_type * ecl_config , const char * data_file);
|
|
ui_return_type * ecl_config_validate_data_file(const ecl_config_type * ecl_config, const char * data_file);
|
|
|
|
void ecl_config_set_schedule_file(ecl_config_type * ecl_config, const char * schedule_file);
|
|
ui_return_type * ecl_config_validate_schedule_file(const ecl_config_type * ecl_config , const char * schedule_file);
|
|
const char * ecl_config_get_schedule_file( const ecl_config_type * ecl_config );
|
|
const char * ecl_config_get_schedule_target(const ecl_config_type * );
|
|
bool ecl_config_has_schedule( const ecl_config_type * ecl_config );
|
|
|
|
void ecl_config_set_eclbase( ecl_config_type * ecl_config , const char * eclbase_fmt );
|
|
ui_return_type * ecl_config_validate_eclbase( const ecl_config_type * ecl_config , const char * eclbase_fmt );
|
|
const path_fmt_type * ecl_config_get_eclbase_fmt(const ecl_config_type * );
|
|
|
|
void ecl_config_set_init_section( ecl_config_type * ecl_config , const char * input_init_section );
|
|
ui_return_type * ecl_config_validate_init_section( const ecl_config_type * ecl_config , const char * input_init_section );
|
|
const char * ecl_config_get_init_section(const ecl_config_type * ecl_config);
|
|
const char * ecl_config_get_equil_init_file(const ecl_config_type * );
|
|
bool ecl_config_has_init_section( const ecl_config_type * ecl_config );
|
|
|
|
|
|
void ecl_config_set_grid( ecl_config_type * ecl_config , const char * grid_file );
|
|
const char * ecl_config_get_gridfile( const ecl_config_type * ecl_config );
|
|
ecl_grid_type * ecl_config_get_grid(const ecl_config_type * );
|
|
ui_return_type * ecl_config_validate_grid( const ecl_config_type * ecl_config , const char * grid_file );
|
|
|
|
bool ecl_config_load_refcase( ecl_config_type * ecl_config , const char * refcase);
|
|
ui_return_type * ecl_config_validate_refcase( const ecl_config_type * ecl_config , const char * refcase );
|
|
const ecl_sum_type * ecl_config_get_refcase(const ecl_config_type * ecl_config);
|
|
bool ecl_config_has_refcase( const ecl_config_type * ecl_config );
|
|
ecl_refcase_list_type * ecl_config_get_refcase_list( const ecl_config_type * ecl_config );
|
|
|
|
/*****************************************************************/
|
|
|
|
void ecl_config_static_kw_init( ecl_config_type * ecl_config , const config_type * config );
|
|
bool ecl_config_active( const ecl_config_type * config );
|
|
time_t ecl_config_get_end_date( const ecl_config_type * ecl_config );
|
|
time_t ecl_config_get_start_date( const ecl_config_type * ecl_config );
|
|
|
|
const char * ecl_config_get_schedule_prediction_file( const ecl_config_type * ecl_config );
|
|
void ecl_config_set_schedule_prediction_file( ecl_config_type * ecl_config , const char * schedule_prediction_file );
|
|
sched_file_type * ecl_config_get_sched_file(const ecl_config_type * );
|
|
|
|
|
|
int ecl_config_get_num_cpu( const ecl_config_type * ecl_config );
|
|
void ecl_config_init( ecl_config_type * ecl_config , const config_type * config);
|
|
void ecl_config_free( ecl_config_type *);
|
|
bool ecl_config_include_static_kw(const ecl_config_type * , const char * );
|
|
void ecl_config_add_static_kw(ecl_config_type *, const char *);
|
|
ecl_io_config_type * ecl_config_get_io_config(const ecl_config_type * );
|
|
|
|
bool ecl_config_get_formatted(const ecl_config_type * );
|
|
bool ecl_config_get_unified_restart(const ecl_config_type * );
|
|
bool ecl_config_get_unified_summary(const ecl_config_type * );
|
|
int ecl_config_get_num_restart_files(const ecl_config_type * );
|
|
int ecl_config_get_last_history_restart( const ecl_config_type * );
|
|
bool ecl_config_can_restart( const ecl_config_type * ecl_config );
|
|
void ecl_config_assert_restart( const ecl_config_type * ecl_config );
|
|
const char * ecl_config_get_eclbase( const ecl_config_type * ecl_config );
|
|
const char * ecl_config_get_refcase_name( const ecl_config_type * ecl_config);
|
|
void ecl_config_clear_static_kw( ecl_config_type * ecl_config );
|
|
stringlist_type * ecl_config_get_static_kw_list( const ecl_config_type * ecl_config );
|
|
void ecl_config_fprintf_config( const ecl_config_type * ecl_config , FILE * stream );
|
|
ecl_config_type * ecl_config_alloc( );
|
|
void ecl_config_add_config_items( config_type * config );
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|