Overview
Comment:Now writes out an array
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 9d8008b2efaed88dfd556d2b63c8f9549682770a3ca6d26cfb1431510c29af95
User & Date: gawthrop@users.sourceforge.net on 1998-07-25 09:42:37
Other Links: branch diff | manifest | tags
Context
1998-07-25
09:44:25
Uses Pascal as step on the way to c code -- MUCH nicer!
State and input now use the simple default - no steady states
check-in: e12a4db9ff user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:42:37
Now writes out an array check-in: 9d8008b2ef user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:42:09
Just sets finrst input to 1 - rest to zero check-in: 02cf785113 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/struc2state_txt2txt from [66df7ec1ce] to [af7aa88245].

11
12
13
14
15
16
17



18
19
20
21
22
23
24


# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% Version control history
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% $Id$
# %% $Log$



# %% Revision 1.2  1998/07/21 16:54:15  peterg
# %% Changed erroneous header
# %%
# %% Revision 1.1  1998/06/27 15:06:40  peterg
# %% Initial revision
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%







>
>
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27


# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% Version control history
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% $Id$
# %% $Log$
# %% Revision 1.3  1998/07/25 08:11:35  peterg
# %% No longer used the SS method - just sets zero states
# %%
# %% Revision 1.2  1998/07/21 16:54:15  peterg
# %% Changed erroneous header
# %%
# %% Revision 1.1  1998/06/27 15:06:40  peterg
# %% Initial revision
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45
46
47
48
49
50
51
52
53
54
#  if($1=="state") {
#    i++; 
#    print  "x(" i ") =\t", x[i], "; \# " $4 " (" $3 ")"
#  }
#}'  >> $1_state.txt

awk '{
  if ($1=="state") printf("MTTx%s = 0.0; \t\# %s (%s)\n", $2,$3,$4)
}' <$1_struc.txt >> $1_state.txt








|


48
49
50
51
52
53
54
55
56
57
#  if($1=="state") {
#    i++; 
#    print  "x(" i ") =\t", x[i], "; \# " $4 " (" $3 ")"
#  }
#}'  >> $1_state.txt

awk '{
  if ($1=="state") printf("MTTx(%s) \t= 0.0; \t\# %s (%s)\n", $2,$3,$4)
}' <$1_struc.txt >> $1_state.txt


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