From ff513ec7d6949f8c4d55b7986cc8ea1492a234d9 Mon Sep 17 00:00:00 2001 From: Utz-Uwe Haus <uhaus@cray.com> Date: Mon, 27 Apr 2020 17:43:34 +0200 Subject: [PATCH] include ECMWF schema by default --- maestro/core.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/maestro/core.c b/maestro/core.c index d7ad811e..9dae1f66 100644 --- a/maestro/core.c +++ b/maestro/core.c @@ -78,6 +78,21 @@ mstro_core_init(const char *workflow_name, ERR("Failed to parse built-in core schema\n"); goto BAILOUT; } + /* FIXME: this should not be here */ + DEBUG("Including ECMWF schema\n"); + mstro_schema ecmwf; + status=mstro_schema_parse(MSTRO_SCHEMA_BUILTIN_YAML_ECMWF, + MSTRO_SCHEMA_BUILTIN_YAML_ECMWF_LEN, + &ecmwf); + if(status!=MSTRO_OK) { + ERR("Failed to parse built-in ecmwf schema\n"); + goto BAILOUT; + } + status=mstro_schema_merge(g_mstro_core_schema_instance, ecmwf); + if(status!=MSTRO_OK) { + ERR("Failed to merge core and ECMWF schema\n"); + goto BAILOUT; + } DEBUG("mstro_core_init: %s/%s/% "PRIi64 " in thread %" PRIxPTR" complete\n", data->workflow_name, data->component_name, data->component_index, -- GitLab