Remove future step format

This commit is contained in:
Eugen Betke 2023-10-09 10:57:33 +00:00
parent d614da57e7
commit 09c2c67049
3 changed files with 1 additions and 11 deletions

View File

@ -1067,7 +1067,6 @@ struct grib_context
grib_trie* lists;
grib_trie* expanded_descriptors;
int file_pool_max_opened_files;
int is_future_step_format;
#if GRIB_PTHREADS
pthread_mutex_t mutex;
#elif GRIB_OMP_THREADS

View File

@ -361,8 +361,7 @@ static grib_context default_grib_context = {
0, /* classes */
0, /* lists */
0, /* expanded_descriptors */
DEFAULT_FILE_POOL_MAX_OPENED_FILES, /* file_pool_max_opened_files */
0
DEFAULT_FILE_POOL_MAX_OPENED_FILES /* file_pool_max_opened_files */
#if GRIB_PTHREADS
,
PTHREAD_MUTEX_INITIALIZER /* mutex */
@ -395,7 +394,6 @@ grib_context* grib_context_get_default()
const char* grib_data_quality_checks = NULL;
const char* single_precision = NULL;
const char* file_pool_max_opened_files = NULL;
const char* is_future_step_format = NULL;
#ifdef ENABLE_FLOATING_POINT_EXCEPTIONS
feenableexcept(FE_ALL_EXCEPT & ~FE_INEXACT);
@ -418,7 +416,6 @@ grib_context* grib_context_get_default()
no_spd = codes_getenv("ECCODES_GRIB_NO_SPD");
keep_matrix = codes_getenv("ECCODES_GRIB_KEEP_MATRIX");
file_pool_max_opened_files = getenv("ECCODES_FILE_POOL_MAX_OPENED_FILES");
is_future_step_format = getenv("ECCODES_GRIB_IS_FUTURE_STEP_FORMAT");
/* On UNIX, when we read from a file we get exactly what is in the file on disk.
* But on Windows a file can be opened in binary or text mode. In binary mode the system behaves exactly as in UNIX.
@ -553,7 +550,6 @@ grib_context* grib_context_get_default()
default_grib_context.grib_data_quality_checks = grib_data_quality_checks ? atoi(grib_data_quality_checks) : 0;
default_grib_context.single_precision = single_precision ? atoi(single_precision) : 0;
default_grib_context.file_pool_max_opened_files = file_pool_max_opened_files ? atoi(file_pool_max_opened_files) : DEFAULT_FILE_POOL_MAX_OPENED_FILES;
default_grib_context.is_future_step_format = is_future_step_format ? atoi(is_future_step_format) : 0;
}
GRIB_MUTEX_UNLOCK(&mutex_c);

View File

@ -40,8 +40,3 @@ int set_step(grib_handle* h, const std::string& value_key, const std::string& un
return err;
return GRIB_SUCCESS;
}
bool is_future_output_enabled(grib_handle* h)
{
return h->context->is_future_step_format > 0;
}