Index: mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl ================================================================== --- mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl +++ mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl @@ -35,10 +35,17 @@ static void _ae (void) { #include "_ae.c" } + +static void +_numpar (void) +{ +#include "_sympar.h" +#include "_numpar.c" +} static void _ode (void) { #include "_ode.c" @@ -233,16 +240,13 @@ } #define MDL_INITIALIZE_CONDITIONS static void mdlInitializeConditions(SimStruct *S) { -#include "_sympar.h" - PRINT_ENTER("mdlInitializeConditions"); -#include "_numpar.c" - + _numpar (); _state (); for (i = 0; i < MTTNX; i++) { ssGetContStates (S)[i] = mttx[i]; }