Overview
Comment: | Inclusion of sympar.h moved to top of file for consistency with other templates.
states and outputs prepended with an underscore to prevent conflicts when |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
0463689b2b11291a8ba1c6d23ad6d4bb |
User & Date: | geraint@users.sourceforge.net on 2002-05-27 14:48:34 |
Other Links: | branch diff | manifest | tags |
Context
2002-05-27
| ||
14:52:15 |
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. check-in: bdfbe12d56 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
14:48:34 |
Inclusion of sympar.h moved to top of file for consistency with other templates.
states and outputs prepended with an underscore to prevent conflicts when | |
13:19:09 | Added "#include <math.h>". check-in: cbc3f2e90e user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/rep/sfun_rep/sfun_interface.c.tmpl from [028019b642] to [eed0673833].
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include <math.h> #include <stdio.h> #include <stdlib.h> #include "simstruc.h" #include "sfun_debug.h" #include "<mtt_model_name>_def.h" static double *mttu; /* pointer to inputs */ static double *mttpar; /* pointer to parameters */ static double *mttx; /* pointer to states */ static double *mtty; /* pointer to outputs */ static double mttt; /* time */ | > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #include <math.h> #include <stdio.h> #include <stdlib.h> #include "simstruc.h" #include "sfun_debug.h" #include "<mtt_model_name>_def.h" #include "<mtt_model_name>_sympar.h" static double *mttu; /* pointer to inputs */ static double *mttpar; /* pointer to parameters */ static double *mttx; /* pointer to states */ static double *mtty; /* pointer to outputs */ static double mttt; /* time */ |
︙ | ︙ | |||
62 63 64 65 66 67 68 | ******************************************************************************/ /* system equations */ static void <mtt_model_name>_numpar (void) { | < | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | ******************************************************************************/ /* system equations */ static void <mtt_model_name>_numpar (void) { #include "<mtt_model_name>_numpar.c" PRINT_LEAVE; } /* utility procedures */ static double * |
︙ | ︙ |