Overview
Comment: | Initial revision |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d740da803bf3213463ed321ccab41458 |
User & Date: | gawthrop@users.sourceforge.net on 1998-06-27 15:06:40 |
Other Links: | branch diff | manifest | tags |
Context
1998-06-29
| ||
09:56:02 | Initial revision check-in: 19705ae149 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1998-06-27
| ||
15:06:40 | Initial revision check-in: d740da803b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
14:49:16 | No change check-in: f271eec1cf user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/struc2state_txt2txt version [309998a521].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 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 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: struc2state_txt2txt # Creates the default state file for the system (txt) # Copyright (c) P.J.Gawthrop 1998 # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # Inform user echo Creating $1_state.txt #Create the state file complete with headers. echo "# Numerical parameter 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 |