11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright (C) 2000 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.280 2000/11/10 14:45:16 peterg
## Finished up changes to incorporate Geraint's cc stuff
##
## Revision 1.279 2000/11/08 09:51:52 peterg
## Started incorporating Geraints CC/oct conversions
##
## Revision 1.278 2000/11/07 16:39:21 peterg
|
>
>
>
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright (C) 2000 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.281 2000/11/16 13:51:15 peterg
## Added units stuff
##
## Revision 1.280 2000/11/10 14:45:16 peterg
## Finished up changes to incorporate Geraint's cc stuff
##
## Revision 1.279 2000/11/08 09:51:52 peterg
## Started incorporating Geraints CC/oct conversions
##
## Revision 1.278 2000/11/07 16:39:21 peterg
|
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
|
touch $1_odea.m
#$1_ode.c: $1_def.r $1_ode.r $1_sympar.r $1_sympar.c
# ode_r2c $1
$1_ode.tex: $1_ode.r $1_sympar.r $1_simp.r
ode_r2tex $1; latex_tidy $1_ode.tex
# The main simulation programme
ifeq ($integration_method,implicit)
$1_ode2odes.m : $1_def.r $1_sympars.txt \
$1_smxa.m $1_smxax.m\
$1_simpar.m $1_numpar.m $1_state.m $1_input.m \
$1_csex.m $1_cseo.m $1_logic.m
ifeq ($using_oct,yes)
|
>
>
>
>
>
>
>
|
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
|
touch $1_odea.m
#$1_ode.c: $1_def.r $1_ode.r $1_sympar.r $1_sympar.c
# ode_r2c $1
$1_ode.tex: $1_ode.r $1_sympar.r $1_simp.r
ode_r2tex $1; latex_tidy $1_ode.tex
$1_lde.r: $1_dae.r
dae2lde_r $1; tidy $1_lde.r
$1_lde.tex: $1_lde.r $1_sympar.r $1_simp.r
lde_r2tex $1; latex_tidy $1_lde.tex
# The main simulation programme
ifeq ($integration_method,implicit)
$1_ode2odes.m : $1_def.r $1_sympars.txt \
$1_smxa.m $1_smxax.m\
$1_simpar.m $1_numpar.m $1_state.m $1_input.m \
$1_csex.m $1_cseo.m $1_logic.m
ifeq ($using_oct,yes)
|
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
|
#Generic conversion of Latex to latex document
mtt.sty:
echo Copying mtt.sty to here
cp $MTTPATH/trans/mtt.sty .
$1_$2.doc: $1_$2.tex
makedoc "$mtt_switches" "$1" "$2" "$3" "$4" "$documenttype"
#Generic conversion of LaTeX doc to dvi
$1_$2.dvi: $1_$2.doc
doc2dvi $1_$2 "$documenttype"
#Create PostScript version of fig files
ifeq ($REPTYPE,bg)
$1_$2.ps : $1_$2.fig
echo Creating $1_$2.ps
multi_command2 'fig2dev -Leps' $1 $2.fig $2.ps | sh
$1_$2.pdf : $1_$2.fig
echo Creating $1_$2.pdf
multi_command2 'fig2dev -Lpdf' $1 $2.fig $2.pdf | sh
endif
ifeq ($REPTYPE,data)
#Create PostScript version of dat file
# + another version with Args added to the name if its appropriate
ifeq ($PLOTTYPE,multiple)
|
<
<
<
>
>
>
>
>
>
|
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
|
#Generic conversion of Latex to latex document
mtt.sty:
echo Copying mtt.sty to here
cp $MTTPATH/trans/mtt.sty .
$1_$2.doc: $1_$2.tex
makedoc "$mtt_switches" "$1" "$2" "$3" "$4" "$documenttype"
#Create PostScript version of fig files
ifeq ($REPTYPE,bg)
$1_$2.ps : $1_$2.fig
echo Creating $1_$2.ps
multi_command2 'fig2dev -Leps' $1 $2.fig $2.ps | sh
$1_$2.pdf : $1_$2.fig
echo Creating $1_$2.pdf
multi_command2 'fig2dev -Lpdf' $1 $2.fig $2.pdf | sh
else
#Generic conversion of LaTeX doc to dvi or pdf
$1_$2.dvi: $1_$2.doc
doc2dvi $1_$2 "$documenttype"
$1_$2.pdf: $1_$2.doc
doc2pdf $1_$2 "$documenttype"
endif
ifeq ($REPTYPE,data)
#Create PostScript version of dat file
# + another version with Args added to the name if its appropriate
ifeq ($PLOTTYPE,multiple)
|