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: f7ba4f05fd1e2b352d78058f792cfc34866b72adad813f0498bd1e4168cecd44
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: c321679331 user: geraint@users.sourceforge.net tags: origin/master, trunk
08:51:49
Tidied generated code up a little bit. check-in: f7ba4f05fd user: geraint@users.sourceforge.net tags: origin/master, trunk
08:50:12
Cleans _sfun_ae.mexglx. check-in: 3060ea13a9 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
/* system equations */

static void
<mtt_model_name>_ae (void)
{
#include "<mtt_model_name>_ae.c"
}








static void
<mtt_model_name>_ode (void)
{
#include "<mtt_model_name>_ode.c"
}








>
>
>
>
>
>
>







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
  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>_state ();

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

  PRINT_LEAVE("leaving mdlInitializeConditions");







<
<


|
<







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)
{


  PRINT_ENTER("mdlInitializeConditions");

  <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 ]