From 5288b32edf4ecbe7bc52fadf1894152d6ad7ee04 Mon Sep 17 00:00:00 2001 From: galperti <cristian.galperti@epfl.ch> Date: Thu, 16 Jun 2022 14:24:59 +0200 Subject: [PATCH] scdalgoinfo.h fail-safe added --- codegen/ert_unix.tmf | 2 +- codegen/scdalgoinfo.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 codegen/scdalgoinfo.h diff --git a/codegen/ert_unix.tmf b/codegen/ert_unix.tmf index 83ebe20..b6e96c8 100644 --- a/codegen/ert_unix.tmf +++ b/codegen/ert_unix.tmf @@ -35,7 +35,7 @@ USER_OPTS = -DMKL #USER_OPTS += -fPIC -Wno-extra-tokens -O3 -xCORE-AVX512 -no-prec-div -fp-model fast=2 #USER_OPTS += -fPIC -Wno-extra-tokens -O3 -no-prec-div -fp-model fast=2 USER_OPTS += -fPIC -g -USER_OPTS += -I$(RTCCODE_PATH)/build/simulink_codegen/ +USER_OPTS += -I$(RTCCODE_PATH)/core/codegen/ #------------------------ Macros read by make_rtw ------------------------------ diff --git a/codegen/scdalgoinfo.h b/codegen/scdalgoinfo.h new file mode 100644 index 0000000..b9cc641 --- /dev/null +++ b/codegen/scdalgoinfo.h @@ -0,0 +1,15 @@ +/* scdalgoinfo.h */ +/* generated on: 20-Apr-2022 11:17:36 */ + +#ifndef SCDALGOINFO +#define SCDALGOINFO +#define ALGOINFOSTR "N/A" +#define ALGOINFOLEN 4 +#define ALGOINFOMAXLEN 1024 + +struct algoinfo { + char text[ALGOINFOMAXLEN]; + unsigned int len; +} __attribute__((packed)); + +#endif -- GitLab