/* * File: _coder_eps_bar_api.c * * MATLAB Coder version : 2.8 * C/C++ source code generated on : 03-Aug-2016 03:45:00 */ /* Include Files */ #include "tmwtypes.h" #include "_coder_eps_bar_api.h" /* Variable Definitions */ emlrtCTX emlrtRootTLSGlobal = NULL; emlrtContext emlrtContextGlobal = { true, false, 131418U, NULL, "eps_bar", NULL, false, { 2045744189U, 2170104910U, 2743257031U, 4284093946U }, NULL }; /* Function Declarations */ static real_T b_emlrt_marshallIn(const emlrtStack *sp, const mxArray *u, const emlrtMsgIdentifier *parentId); static real_T c_emlrt_marshallIn(const emlrtStack *sp, const mxArray *src, const emlrtMsgIdentifier *msgId); static real_T emlrt_marshallIn(const emlrtStack *sp, const mxArray *agC, const char_T *identifier); static const mxArray *emlrt_marshallOut(const real_T u); /* Function Definitions */ /* * Arguments : const emlrtStack *sp * const mxArray *u * const emlrtMsgIdentifier *parentId * Return Type : real_T */ static real_T b_emlrt_marshallIn(const emlrtStack *sp, const mxArray *u, const emlrtMsgIdentifier *parentId) { real_T y; y = c_emlrt_marshallIn(sp, emlrtAlias(u), parentId); emlrtDestroyArray(&u); return y; } /* * Arguments : const emlrtStack *sp * const mxArray *src * const emlrtMsgIdentifier *msgId * Return Type : real_T */ static real_T c_emlrt_marshallIn(const emlrtStack *sp, const mxArray *src, const emlrtMsgIdentifier *msgId) { real_T ret; emlrtCheckBuiltInR2012b(sp, msgId, src, "double", false, 0U, 0); ret = *(real_T *)mxGetData(src); emlrtDestroyArray(&src); return ret; } /* * Arguments : const emlrtStack *sp * const mxArray *agC * const char_T *identifier * Return Type : real_T */ static real_T emlrt_marshallIn(const emlrtStack *sp, const mxArray *agC, const char_T *identifier) { real_T y; emlrtMsgIdentifier thisId; thisId.fIdentifier = identifier; thisId.fParent = NULL; y = b_emlrt_marshallIn(sp, emlrtAlias(agC), &thisId); emlrtDestroyArray(&agC); return y; } /* * Arguments : const real_T u * Return Type : const mxArray * */ static const mxArray *emlrt_marshallOut(const real_T u) { const mxArray *y; const mxArray *m0; y = NULL; m0 = emlrtCreateDoubleScalar(u); emlrtAssign(&y, m0); return y; } /* * Arguments : const mxArray * const prhs[6] * const mxArray *plhs[1] * Return Type : void */ void eps_bar_api(const mxArray * const prhs[6], const mxArray *plhs[1]) { real_T agC; real_T Rls; real_T T1; real_T M_mean; real_T R_mean; real_T ecSoilCode; emlrtStack st = { NULL, NULL, NULL }; st.tls = emlrtRootTLSGlobal; /* Marshall function inputs */ agC = emlrt_marshallIn(&st, emlrtAliasP(prhs[0]), "agC"); Rls = emlrt_marshallIn(&st, emlrtAliasP(prhs[1]), "Rls"); T1 = emlrt_marshallIn(&st, emlrtAliasP(prhs[2]), "T1"); M_mean = emlrt_marshallIn(&st, emlrtAliasP(prhs[3]), "M_mean"); R_mean = emlrt_marshallIn(&st, emlrtAliasP(prhs[4]), "R_mean"); ecSoilCode = emlrt_marshallIn(&st, emlrtAliasP(prhs[5]), "ecSoilCode"); /* Invoke the target function */ agC = eps_bar(agC, Rls, T1, M_mean, R_mean, ecSoilCode); /* Marshall function outputs */ plhs[0] = emlrt_marshallOut(agC); } /* * Arguments : void * Return Type : void */ void eps_bar_atexit(void) { emlrtStack st = { NULL, NULL, NULL }; emlrtCreateRootTLS(&emlrtRootTLSGlobal, &emlrtContextGlobal, NULL, 1); st.tls = emlrtRootTLSGlobal; emlrtEnterRtStackR2012b(&st); emlrtLeaveRtStackR2012b(&st); emlrtDestroyRootTLS(&emlrtRootTLSGlobal); eps_bar_xil_terminate(); } /* * Arguments : void * Return Type : void */ void eps_bar_initialize(void) { emlrtStack st = { NULL, NULL, NULL }; emlrtCreateRootTLS(&emlrtRootTLSGlobal, &emlrtContextGlobal, NULL, 1); st.tls = emlrtRootTLSGlobal; emlrtClearAllocCountR2012b(&st, false, 0U, 0); emlrtEnterRtStackR2012b(&st); emlrtFirstTimeR2012b(emlrtRootTLSGlobal); } /* * Arguments : void * Return Type : void */ void eps_bar_terminate(void) { emlrtStack st = { NULL, NULL, NULL }; st.tls = emlrtRootTLSGlobal; emlrtLeaveRtStackR2012b(&st); emlrtDestroyRootTLS(&emlrtRootTLSGlobal); } /* * File trailer for _coder_eps_bar_api.c * * [EOF] */