Skip to content

Commit

Permalink
Add initialization and termination
Browse files Browse the repository at this point in the history
  • Loading branch information
amrukwa committed Dec 17, 2021
1 parent 144f15b commit e5fd2d1
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
23 changes: 23 additions & 0 deletions gamred_native/gaussian_mixture_simple_initialize.c
Original file line number Diff line number Diff line change
@@ -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) */
24 changes: 24 additions & 0 deletions gamred_native/gaussian_mixture_simple_initialize.h
Original file line number Diff line number Diff line change
@@ -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 <stddef.h>
#include <stdlib.h>
#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) */
22 changes: 22 additions & 0 deletions gamred_native/gaussian_mixture_simple_terminate.c
Original file line number Diff line number Diff line change
@@ -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) */
24 changes: 24 additions & 0 deletions gamred_native/gaussian_mixture_simple_terminate.h
Original file line number Diff line number Diff line change
@@ -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 <stddef.h>
#include <stdlib.h>
#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) */

0 comments on commit e5fd2d1

Please sign in to comment.