Overview
Comment:No longer used the SS method - just sets zero states
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f6d9fdeda7a5211ebeedbe094d981c6c8e02c8a50664140fdbe3b152f5817950
User & Date: gawthrop@users.sourceforge.net on 1998-07-25 08:11:35.000
Other Links: branch diff | manifest | tags
Context
1998-07-25
09:07:40
Removed all the MTTnnn conversions check-in: 5ec5526cb9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:11:35
No longer used the SS method - just sets zero states check-in: f6d9fdeda7 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:05:41
Reverted to original default - not using SS mechanism check-in: 580b91e277 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
︙︙
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


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



# %% Revision 1.1  1998/06/27 15:06:40  peterg
# %% Initial revision
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



# Inform user
echo Creating $1_state.txt

#Create the state file complete with headers.
echo "# Initial state  file ($1_state.txt)" > $1_state.txt
echo "# Generated by MTT at `date`" >> $1_state.txt
cat $MTTPATH/trans/rcs_header.txt  >> $1_state.txt

#Write out the defaults -- states to steady-state values
echo "# Set the states"  >> $1_state.txt
cat $1_ss.r  $1_struc.txt | sed 's/\$//' |\
awk '{
  if(match($1,"MTTx")) {
    j++
    x[j]=$3 $4 $5 $6 $7 $8 $9;
  }

    
  if($1=="state") {
    i++; 
    print  "x(" i ") =\t", x[i], "; \# " $4 " (" $3 ")"


  }


}'  >> $1_state.txt








>
>
>













|



|
|
|
|
|
<
>
|
|
|
|
>
>
|
>
>
|

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
49
50
51
52
53
54


# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% 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
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



# Inform user
echo Creating $1_state.txt

#Create the state file complete with headers.
echo "# Initial state  file ($1_state.txt)" > $1_state.txt
echo "# Generated by MTT at `date`" >> $1_state.txt
cat $MTTPATH/trans/rcs_header.sh  >> $1_state.txt

#Write out the defaults -- states to steady-state values
echo "# Set the states"  >> $1_state.txt
#cat $1_ss.r  $1_struc.txt | sed 's/\$//' |\
#awk '{
#  if(match($1,"MTTx")) {
#    j++
#    x[j]=$3 $4 $5 $6 $7 $8 $9;

#  }
#    
#  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


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