Overview
Comment:Explicitly set U to zero
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: c982c26de662b1dbeb2c551dc102e37989cf751cb9bb2bc5e07346c7bcd0db03
User & Date: gawthrop@users.sourceforge.net on 2005-10-13 10:01:57.000
Other Links: branch diff | manifest | tags
Context
2005-11-13
18:15:27
*** empty log message *** check-in: 8d4d0bc2dc user: geraint@users.sourceforge.net tags: origin/master, trunk
2005-10-13
10:01:57
Explicitly set U to zero check-in: c982c26de6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
07:28:50
Prediction matices for open-loop control check-in: e0beb0cc3b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
20
21
22
23
24
25
26
27










28
29
30
31
32
33
34
20
21
22
23
24
25
26

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43







-
+
+
+
+
+
+
+
+
+
+








  ## Header
  header = sprintf("/*\n File %s generated by ppp_ustar2h on %s */\n", \
		   filename, ctime(time));

  def = sprintf("#define N_U %i\n#define N_T %i\n#define DT %g\n", \
		 N_U, N, DT);
  def = sprintf("%sdouble U[N_U];\n",def);
  def = sprintf("%sdouble U[N_U]={",def);
  for j=1:N_U
    if j<N_U
      comma = ",";
    else
      comma = "";
    endif
    def = sprintf("%s0.0%s ",def, comma);
  endfor
  def = sprintf("%s};\n",def)

  fprintf(fid, "%s%sdouble %s[N_T][N_U] = {\n",header,def,name);
  for i=1:N
    fprintf(fid, "{");
    for j=1:N_U
      if j<N_U
	comma = ",";

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