Differences From Artifact [028019b642]:
- File mttroot/mtt/lib/rep/sfun_rep/sfun_interface.c.tmpl — part of check-in [cbc3f2e90e] at 2002-05-27 13:19:09 on branch origin/master — Added "#include <math.h>". (user: geraint@users.sourceforge.net, size: 5622) [annotate] [blame] [check-ins using] [more...]
To Artifact [eed0673833]:
- File
mttroot/mtt/lib/rep/sfun_rep/sfun_interface.c.tmpl
— part of check-in
[0463689b2b]
at
2002-05-27 14:48:34
on branch origin/master
— 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
inputs and outputs have the same names. (user: geraint@users.sourceforge.net, size: 5622) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
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 * |
︙ | ︙ |