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: bfc0ab72674c3a99e4c9eeea54fc5a4227470d4ba0ae91c399f5dad0337b236c
User & Date: gawthrop@users.sourceforge.net on 1998-05-13 08:56:28
Other Links: branch diff | manifest | tags
Context
1998-05-13
08:57:27
Now uses simpar.h in place of odes.h check-in: e0bc2bb7bc user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:56:28
Initial revision check-in: bfc0ab7267 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-05-12
14:49:10
Don't write END; any more - ese-tidy does this now! check-in: 93115d251d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/trans/simpar_txt2h version [a1e5b7a064].































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
45
46
47
#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: simpar_txt2h

# Numerical parameters to c format
# P.J.Gawthrop May 1997
# Copyright (c) P.J.Gawthrop, 1997.

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


system=$1


# Inform user
echo "Creating $1_simpar.h"

rm -f mtt_error

#Write some file headers
echo '/*' > $1_simpar.h
echo "Simulation parameter file for system $1 ($1_simpar.h)"   >> $1_simpar.h
echo "This file provides the system simulation parameters in c form"  >> $1_simpar.h
echo "Generated by MTT at `date`"  >> $1_simpar.h
echo "from $1_simpar.txt"  >> $1_simpar.h
echo '*/' >> $1_simpar.h
echo  >> $1_simpar.h

# Now do the parameters

sed 's/ //g' $1_simpar.txt |\
 awk -F '=' '/=/ {print "#define", $1, $2}'   >> $1_simpar.h







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