Overview
Comment:Tidied generated code up a little bit.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: c699cea8d8c14441450618174f23acc303dd793f6118778684660463397d2438
User & Date: geraint@users.sourceforge.net on 2002-05-20 08:51:49
Other Links: branch diff | manifest | tags
Context
2002-05-20
10:09:28
Added zip to suggested list - used by 'sfun.zip' target. check-in: 442ec01b46 user: geraint@users.sourceforge.net tags: origin/master, trunk
08:51:49
Tidied generated code up a little bit. check-in: c699cea8d8 user: geraint@users.sourceforge.net tags: origin/master, trunk
08:50:12
Cleans _sfun_ae.mexglx. check-in: 71d9f9d85b user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl from [3726daca35] to [fc7b63a944].

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
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)
{
#include "<mtt_model_name>_sympar.h"

  PRINT_ENTER("mdlInitializeConditions");

#include "<mtt_model_name>_numpar.c"
  <mtt_model_name>_numpar ();

  <mtt_model_name>_state ();

  for (i = 0; i < MTTNX; i++) {
    ssGetContStates (S)[i] = mttx[i];
  }

  PRINT_LEAVE("leaving mdlInitializeConditions");


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]