Differences From Artifact [129e85ea3e]:
- File
mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl
— part of check-in
[bdfbe12d56]
at
2002-05-27 14:52:15
on branch origin/master
— Parameters in sfun reps are now declared using sympar.h at the top of the
sfun*.c file instead of in individual functions. This causes the optimisation
variables (mtt_tmp*) to be declared correctly without causing conflicts in the
scope of parameter declarations. (user: geraint@users.sourceforge.net, size: 6701) [annotate] [blame] [check-ins using] [more...]
To Artifact [e8393fa8d4]:
- File mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl — part of check-in [e168fd1202] at 2002-06-05 10:54:12 on branch origin/master — #include "useful-functions.hh" added to files. (user: geraint@users.sourceforge.net, size: 6732) [annotate] [blame] [check-ins using] [more...]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | + | /* -*-c-*- Put emacs into c-mode * <mtt_model_name>_sfun.c: * Matlab S-function simulation of <mtt_model_name> */ #define S_FUNCTION_NAME <mtt_model_name>_sfun #define S_FUNCTION_LEVEL 2 #include <math.h> #include <stdio.h> #include <stdlib.h> #include "simstruc.h" #include "sfun_debug.h" #include "useful-functions.hh" #include "<mtt_model_name>_def.h" #include "<mtt_model_name>_sympar.h" static double *mttdx; /* pointer to rates */ static double *mttu; /* pointer to inputs */ static double *mttpar; /* pointer to parameters */ static double *mttx; /* pointer to states */ |
︙ |