From e5fd2d19dba7d96bd03eb21256776139f9e1562d Mon Sep 17 00:00:00 2001 From: Anna Mrukwa Date: Sat, 18 Dec 2021 00:48:39 +0100 Subject: [PATCH] Add initialization and termination --- .../gaussian_mixture_simple_initialize.c | 23 ++++++++++++++++++ .../gaussian_mixture_simple_initialize.h | 24 +++++++++++++++++++ .../gaussian_mixture_simple_terminate.c | 22 +++++++++++++++++ .../gaussian_mixture_simple_terminate.h | 24 +++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 gamred_native/gaussian_mixture_simple_initialize.c create mode 100644 gamred_native/gaussian_mixture_simple_initialize.h create mode 100644 gamred_native/gaussian_mixture_simple_terminate.c create mode 100644 gamred_native/gaussian_mixture_simple_terminate.h diff --git a/gamred_native/gaussian_mixture_simple_initialize.c b/gamred_native/gaussian_mixture_simple_initialize.c new file mode 100644 index 0000000..bb4c8a0 --- /dev/null +++ b/gamred_native/gaussian_mixture_simple_initialize.c @@ -0,0 +1,23 @@ +/* + * + * gaussian_mixture_simple_initialize.c + * + * Code generation for function 'gaussian_mixture_simple_initialize' + * + */ + +/* Include files */ +#include "gaussian_mixture_simple_initialize.h" +#include "fetch_thresholds.h" +#include "fetch_thresholds_data.h" +#include "rt_nonfinite.h" + +/* Function Definitions */ +void gaussian_mixture_simple_initialize(void) +{ + rt_InitInfAndNaN(); + omp_init_nest_lock(&emlrtNestLockGlobal); + isInitialized_gaussian_mixture_simple = true; +} + +/* End of code generation (gaussian_mixture_simple_initialize.c) */ diff --git a/gamred_native/gaussian_mixture_simple_initialize.h b/gamred_native/gaussian_mixture_simple_initialize.h new file mode 100644 index 0000000..0ea750d --- /dev/null +++ b/gamred_native/gaussian_mixture_simple_initialize.h @@ -0,0 +1,24 @@ +/* + * + * gaussian_mixture_simple_initialize.h + * + * Code generation for function 'gaussian_mixture_simple_initialize' + * + */ + +#ifndef GAUSSIAN_MIXTURE_SIMPLE_INITIALIZE_H +#define GAUSSIAN_MIXTURE_SIMPLE_INITIALIZE_H + +/* Include files */ +#include +#include +#include "rtwtypes.h" +#include "omp.h" +#include "fetch_thresholds_types.h" + +/* Function Declarations */ +extern void gaussian_mixture_simple_initialize(void); + +#endif + +/* End of code generation (gaussian_mixture_simple_initialize.h) */ diff --git a/gamred_native/gaussian_mixture_simple_terminate.c b/gamred_native/gaussian_mixture_simple_terminate.c new file mode 100644 index 0000000..936c3e5 --- /dev/null +++ b/gamred_native/gaussian_mixture_simple_terminate.c @@ -0,0 +1,22 @@ +/* + * + * fetch_thresholds_terminate.c + * + * Code generation for function 'gaussian_mixture_simple_terminate' + * + */ + +/* Include files */ +#include "gaussian_mixture_simple_terminate.h" +#include "fetch_thresholds.h" +#include "fetch_thresholds_data.h" +#include "rt_nonfinite.h" + +/* Function Definitions */ +void gaussian_mixture_simple_terminate(void) +{ + omp_destroy_nest_lock(&emlrtNestLockGlobal); + isInitialized_gaussian_mixture_simple = false; +} + +/* End of code generation (gaussian_mixture_simple_terminate.c) */ diff --git a/gamred_native/gaussian_mixture_simple_terminate.h b/gamred_native/gaussian_mixture_simple_terminate.h new file mode 100644 index 0000000..2212092 --- /dev/null +++ b/gamred_native/gaussian_mixture_simple_terminate.h @@ -0,0 +1,24 @@ +/* + * + * gaussian_mixture_simple_terminate.h + * + * Code generation for function 'gaussian_mixture_simple_terminate' + * + */ + +#ifndef GAUSSIAN_MIXTURE_SIMPLE_TERMINATE_H +#define GAUSSIAN_MIXTURE_SIMPLE_TERMINATE_H + +/* Include files */ +#include +#include +#include "rtwtypes.h" +#include "omp.h" +#include "fetch_thresholds_types.h" + +/* Function Declarations */ +extern void gaussian_mixture_simple_terminate(void); + +#endif + +/* End of code generation (gaussian_mixture_simple_terminate.h) */