Differences From Artifact [3726daca35]:
- File
mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl
— part of check-in
[062029b187]
at
2002-05-19 13:01:22
on branch origin/master
— Numerical solution of algebraic equations implemented for S-function target.
Equation solving requires the Matlab Optimization Toolbox to be installed.
Code has been changed from C++ to C to allow mex files to be built with LCC,
the compiler bundled with Matlab.Parameters are now obtained from numpar.c instead of a dialogue box.
`mtt <sys> sfun zip` creates all necessary files for building the model mex files. (user: geraint@users.sourceforge.net, size: 7310) [annotate] [blame] [check-ins using] [more...]
To Artifact [fc7b63a944]:
- File mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl — part of check-in [c699cea8d8] at 2002-05-20 08:51:49 on branch origin/master — Tidied generated code up a little bit. (user: geraint@users.sourceforge.net, size: 7386) [annotate] [blame] [check-ins using] [more...]
︙ | |||
33 34 35 36 37 38 39 40 41 42 43 44 45 46 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | + + + + + + + | /* system equations */ static void <mtt_model_name>_ae (void) { #include "<mtt_model_name>_ae.c" } static void <mtt_model_name>_numpar (void) { #include "<mtt_model_name>_sympar.h" #include "<mtt_model_name>_numpar.c" } static void <mtt_model_name>_ode (void) { #include "<mtt_model_name>_ode.c" } |
︙ | |||
231 232 233 234 235 236 237 | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | - - - + - | ssSetOffsetTime(S, 0, 0.0); PRINT_LEAVE("mdlInitializeSampleTimes"); } #define MDL_INITIALIZE_CONDITIONS static void mdlInitializeConditions(SimStruct *S) { |
︙ |