ECC-428: Disable encoding dump when multi element mode

This commit is contained in:
Shahram Najm 2019-08-15 18:33:12 +01:00
parent 0448bceb6e
commit 812b76a445
1 changed files with 5 additions and 0 deletions

View File

@ -139,6 +139,11 @@ int grib_tool_init(grib_runtime_options* options)
json=0; json=0;
} }
if (grib_options_on("E:")) { if (grib_options_on("E:")) {
grib_context *c = grib_context_get_default();
if (c->bufr_multi_element_constant_arrays) {
grib_context_log(c, GRIB_LOG_ERROR, "Code generation for encoding is not implemented when ECCODES_BUFR_MULTI_ELEMENT_CONSTANT_ARRAYS is enabled");
exit(1);
}
options->dump_mode = grib_options_get_option("E:"); options->dump_mode = grib_options_get_option("E:");
check_code_gen_dump_mode(options->dump_mode); check_code_gen_dump_mode(options->dump_mode);
json=0; json=0;