10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.147 1998/04/15 18:41:47 peterg
## Fixed various probs with multiple systems in one directory
##
## Revision 1.146 1998/04/04 11:00:20 peterg
## Modified various parts to allow coercing directions at ports
##
## Revision 1.145 1998/04/03 11:17:44 peterg
|
>
>
>
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.148 1998/05/12 14:42:07 peterg
## Added ese_tidy and new method for organising ese files -
## Each subsystem has an array of variables - effort, flow and state for
## each bond
##
## Revision 1.147 1998/04/15 18:41:47 peterg
## Fixed various probs with multiple systems in one directory
##
## Revision 1.146 1998/04/04 11:00:20 peterg
## Modified various parts to allow coercing directions at ports
##
## Revision 1.145 1998/04/03 11:17:44 peterg
|
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
|
)> $1_simpar.txt
#SUMMARY simpar simulation information (m)
$1_simpar.m: $1_simpar.txt
echo Creating $1_simpar.m
sed 's/txt/m/'<$1_simpar.txt >$1_simpar.m
#SUMMARY numpar numerical parameter declaration (txt) -- default
$1_numpar.txt:
mtt $mtt_switches -q -u $1 sympar txt;
sympar2numpar_txt2txt $1
|
>
>
>
|
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
|
)> $1_simpar.txt
#SUMMARY simpar simulation information (m)
$1_simpar.m: $1_simpar.txt
echo Creating $1_simpar.m
sed 's/txt/m/'<$1_simpar.txt >$1_simpar.m
#SUMMARY simpar simulation information (h) (c) header file
$1_simpar.h: $1_simpar.txt
simpar_txt2h $1
#SUMMARY numpar numerical parameter declaration (txt) -- default
$1_numpar.txt:
mtt $mtt_switches -q -u $1 sympar txt;
sympar2numpar_txt2txt $1
|
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
|
ifeq ($computation,octave)
$1_odes.m: $1_ode.m $1_numpar.m $1_def.m $1_input.m $1_state.m $1_simpar.m
ode2odes_m $1
endif
ifeq ($computation,c)
$1_odes.m: $1_odes.c $1_ode.c $1_numpar.c $1_state.c $1_odes.h\
$1_sympar.c $1_sympar.h\
$1_numpar.c $1_input.c sign.c
echo Creating $1_odes.m
echo Creating $1_odeso.m
echo 'Compiling ...'
$CC $1_odes.c -lm
echo 'Running ...'; time ./a.out; echo 'Done.'
$1_sms.m: $1_sms.c $1_sm.c $1_numpar.c $1_sms.h\
$1_sympar.c $1_sympar.h\
$1_numpar.c $1_input.c dsvdcmp.c
echo Creating $1_sms.m
echo Creating $1_smso.m
echo 'Compiling ...'
$CC $1_sms.c -lm
echo 'Running ...'; time ./a.out; echo 'Done.'
endif
$1_odeso.m: $1_odes.m
touch $1_odeso.m
$1_smso.m: $1_sms.m
touch $1_smso.m
$1_daes.m: $1_dae.m $1_numpar.m $1_args.m $1_def.m $1_input.m
dae2daes_m $1 '$ARGS'
$1_daeso.m: $1_daes.m
touch $1_daeso.m
#Conversion of data files from dat to sdat format
$1_odeso.sdat: $1_odeso.dat $1_struc.txt
|
|
|
|
|
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
|
ifeq ($computation,octave)
$1_odes.m: $1_ode.m $1_numpar.m $1_def.m $1_input.m $1_state.m $1_simpar.m
ode2odes_m $1
endif
ifeq ($computation,c)
$1_odes.m: $1_odes.c $1_ode.c $1_numpar.c $1_state.c $1_simpar.h\
$1_sympar.c $1_sympar.h\
$1_numpar.c $1_input.c sign.c
echo Creating $1_odes.m
echo Creating $1_odeso.m
echo 'Compiling ...'
$CC $1_odes.c -lm
echo 'Running ...'; time ./a.out; echo 'Done.'
$1_sms.m: $1_sms.c $1_sm.c $1_numpar.c $1_simpar.h\
$1_sympar.c $1_sympar.h\
$1_numpar.c $1_input.c dsvdcmp.c
echo Creating $1_sms.m
echo Creating $1_smso.m
echo 'Compiling ...'
$CC $1_sms.c -lm
echo 'Running ...'; time ./a.out; echo 'Done.'
endif
$1_odeso.m: $1_odes.m
touch $1_odeso.m
$1_smso.m: $1_sms.m
touch $1_smso.m
$1_daes.m: $1_dae.m $1_numpar.m $1_def.m $1_input.m $1_simpar.m
dae2daes_m $1 '$ARGS'
$1_daeso.m: $1_daes.m
touch $1_daeso.m
#Conversion of data files from dat to sdat format
$1_odeso.sdat: $1_odeso.dat $1_struc.txt
|