Overview
| Comment: | c files now #include sys_cr.h. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
168a121b9d6cf0b2f91980ab546afd70 |
| User & Date: | geraint@users.sourceforge.net on 2002-06-17 14:28:39.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2002-06-17
| ||
| 14:30:34 | Does not now define Octave functions unless explicitly compiling for STANDALONE or OCTAVEDLD. check-in: 0c91fc17d1 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
| 14:28:39 | c files now #include sys_cr.h. check-in: 168a121b9d user: geraint@users.sourceforge.net tags: origin/master, trunk | |
| 13:14:50 | Fixed some rules to reduce number of implicit rule searches. check-in: 9eeb158052 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/rep/sfun_rep/Makefile
from [963c43672a]
to [9de61fb76d].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - + - + - + - + | #! /usr/bin/make -f all: $(SYS)_sfun.mexglx |
| ︙ |
Modified mttroot/mtt/lib/rep/sfun_rep/mex_ae.c.tmpl
from [4178a7adf7]
to [797312fca9].
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_ae.c:
* Matlab mex algebraic equations for <mtt_model_name>
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <mex.h>
#include "sfun_debug.h"
#include "useful-functions.hh"
#include "<mtt_model_name>_def.h"
#include "<mtt_model_name>_sympar.h"
#include "<mtt_model_name>_cr.h"
/* utility procedures */
double *
array_of_double (size_t n)
{
void *p = calloc (n, sizeof (double));
|
| ︙ |
Modified mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl
from [e8393fa8d4]
to [f3d464f305].
| ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + | #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" #include "<mtt_model_name>_cr.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 */ static double *mtty; /* pointer to outputs */ static double *mttyz; /* pointer to residuals */ |
| ︙ | |||
161 162 163 164 165 166 167 | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | - + |
p = mxGetPr (MTT_MATLAB_P);
for (i = 0; i < MTTNPAR; i++) {
p[i] = mttpar[i];
}
mexPutArray (MTT_MATLAB_P, "base");
/* call fsolve */
|
| ︙ |
Modified mttroot/mtt/lib/rep/sfun_rep/sfun_input.c.tmpl
from [1b479e7eb4]
to [37d9259f60].
| ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + | #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" #include "<mtt_model_name>_cr.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 */ |
| ︙ |