Overview
Comment:Added ps rep: "mtt sys cxxsim ps odes[o]"
"mtt sys cxxsim view" now uses ps
"mtt sys cxxsim gnuplot" now invokes gnuplot viewer
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 53685ef6551d6fc1bba2f261f7d90522e185f6090705a51cdb3e4ea67e3a72a5
User & Date: geraint@users.sourceforge.net on 2002-12-19 19:37:40.000
Other Links: branch diff | manifest | tags
Context
2002-12-20
10:44:23
Don't augment A_u with A_w - do it externally check-in: 56129bf804 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2002-12-19
19:37:40
Added ps rep: "mtt sys cxxsim ps odes[o]"
"mtt sys cxxsim view" now uses ps
"mtt sys cxxsim gnuplot" now invokes gnuplot viewer
check-in: 53685ef655 user: geraint@users.sourceforge.net tags: origin/master, trunk
17:01:41
Fixed thinko: brackets don't need need to be escaped in C strings. check-in: 50b395aeaf user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes
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
48
49
50




51
52
53
54
55
56
57
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87







+
+
+
+
+

-
+

-
+

-
+
-




+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+


















+
+
+
+








CC=g++

INCLUDE=-I. -I${MTT_LIB}/cr/hh
OPTIMISE=-O0
WARNINGS=-Wall -ansi -pedantic

ifeq ("","$(MTT_ARG)")
TARGET=$(MTT_SYS)_cxxsim.$(MTT_LANG)
else
TARGET=$(MTT_SYS)_cxxsim-$(MTT_ARG).$(MTT_LANG)
endif

all: $(MTT_SYS)_cxxsim.$(MTT_LANG)
all: $(TARGET)

# view rule copied from gnuplot_rep.make
# rule copied from gnuplot_rep.make
# need it here to prevent MTT using the default route (via dae)
$(MTT_SYS)_cxxsim.view: $(MTT_SYS)_gnuplot.wish $(MTT_SYS)_cxxsim.exe
$(MTT_SYS)_cxxsim.gnuplot: $(MTT_SYS)_gnuplot.wish $(MTT_SYS)_odes.dat2
	./$(MTT_SYS)_cxxsim.exe > $(MTT_SYS)_odes.dat2
	sh $(MTT_SYS)_gnuplot.wish		|\
		tee gnuplot_in.log		|\
		 gnuplot -geometry 400x300	\
		 > gnuplot_out.log 2> gnuplot_err.log &

$(MTT_SYS)_cxxsim.view: $(MTT_SYS)_cxxsim-odes.ps $(MTT_SYS)_cxxsim-odeso.ps
	${PSVIEW} $(MTT_SYS)_cxxsim-odes.ps
	${PSVIEW} $(MTT_SYS)_cxxsim-odeso.ps

$(MTT_SYS)_cxxsim.ps: $(MTT_SYS)_cxxsim-odeso.ps
	cp $< $@

$(MTT_SYS)_cxxsim-ode%.ps: $(MTT_SYS)_ode%.fig
	fig2dev -Leps $(MTT_SYS)_ode$*.fig $@

$(MTT_SYS)_ode%.fig: $(MTT_SYS)_ode%.gdat
	gdat2fig $(MTT_SYS)_ode$*

$(MTT_SYS)_ode%.gdat: $(MTT_SYS)_ode%.dat
	dat2gdat $(MTT_SYS) ode$*

$(MTT_SYS)_ode%.dat: $(MTT_SYS)_def.r $(MTT_SYS)_odes.dat2
	dat22dat $(MTT_SYS) ode $*

$(MTT_SYS)_odes.dat2: $(MTT_SYS)_cxxsim.exe
	./$< > $@

$(MTT_SYS)_cxxsim.exe: $(MTT_SYS)_cxxsim.cc
	echo Creating $(MTT_SYS)_cxxsim.exe
	$(CC) -o $@ $^ $(OPTIMISE) $(WARNINGS) $(INCLUDE)

$(MTT_SYS)_cxxsim.cc: $(MTT_SYS)_cr.txt $(MTT_SYS)_ese.r $(MTT_SYS)_struc.txt $(MTT_SYS)_sympar.txt cxxsim
	./cxxsim $(MTT_SYS)
	cp $@ ..

cxxsim: ${MTT_LIB}/rep/cxxsim.cc
	echo creating $@
	echo Compiling $^
	$(CC) -o $@ $^ $(OPTIMISE) $(WARNINGS) $(INCLUDE)

# list of constitutive relationships
$(MTT_SYS)_cr.txt:
	mtt -q $(MTT_OPTS) $(MTT_SYS) cr txt

# array sizes
$(MTT_SYS)_def.r:
	mtt -q $(MTT_OPTS) $(MTT_SYS) def r

# elementary system equations
$(MTT_SYS)_ese.r:
	mtt -q $(MTT_OPTS) $(MTT_SYS) ese r

# system structure
$(MTT_SYS)_struc.txt:
	mtt -q $(MTT_OPTS) $(MTT_SYS) struc txt

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