Overview
Comment:New version with direct naming.
Note ss version is broken - ss.r file in wrong format
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 796a6529d4c95b1b0c77300f3f22b64220ef4353727c477a404a74b47c0be773
User & Date: gawthrop@users.sourceforge.net on 2000-10-16 08:20:23
Other Links: branch diff | manifest | tags
Context
2000-10-16
08:28:56
Tidied up:
SS broken due to incorrect ss.r file
Switches??
check-in: 6f1452bfca user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:20:23
New version with direct naming.
Note ss version is broken - ss.r file in wrong format
check-in: 796a6529d4 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:09:25
Tidied up. check-in: d525e57106 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/struc2state_txt2txt from [0987d9a6d1] to [fd9c2c8fdf].

11
12
13
14
15
16
17



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







+
+
+









# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% Version control history
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% $Id$
# %% $Log$
# %% Revision 1.9  2000/10/10 21:03:06  peterg
# %% *** empty log message ***
# %%
# %% Revision 1.8  1998/08/10 13:57:33  peterg
# %% Removed debugging lines
# %%
# %% Revision 1.7  1998/08/10 13:55:11  peterg
# %% Added option of computing from ss values
# %%
# %% Revision 1.6  1998/07/27 20:32:11  peterg
48
49
50
51
52
53
54
55


56
57
58
59
60
61
62
51
52
53
54
55
56
57

58
59
60
61
62
63
64
65
66







-
+
+







		steadystate_computation=yes ;;
	*)
		echo "$1 is an invalid argument - ignoring" ;;
  esac
  shift
done


# Default state
default='0.0'

#Create the state file complete with headers.
echo '# -*-octave-*- Put Emacs into octave-mode' > $1_state.txt
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

74
75
76
77
78
79
80
81


82
83
84
85
86
87

88
89
90
91


92
93
94
95
78
79
80
81
82
83
84

85
86
87
88
89
90
91

92
93
94


95
96
97
98
99
100







-
+
+





-
+


-
-
+
+




    j++
    split($0,a,"=");
    x[j]=a[2];
  }
    
  if($1=="state") {
    i++; 
    print  "x(" i ") =\t", x[i], " \# " $4 " (" $3 ")"
    # print  "x(" i ") =\t", x[i], " \# " $4 " (" $3 ")"
    printf("%s =\t%s; # MTT initial value\n", $4, x[i]);
  }
}'  >> $1_state.txt
else
# Set states to zero
# Inform user
echo Creating $1_state.txt - default states to zero
echo Creating $1_state.txt - default states to $default

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



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