Overview
Comment:Included switch.c in dependancy list for _input.c (when -s switch set)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: da1dd1dcc3079a98f9da7e3b32c5e7d040bc6e2a4b97b1b342eedd7f825634be
User & Date: gawthrop@users.sourceforge.net on 1997-05-15 09:15:54
Other Links: branch diff | manifest | tags
Context
1997-05-15
09:43:46
New version of _input.txt for -s option check-in: 013ae23625 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:15:54
Included switch.c in dependancy list for _input.c (when -s switch set) check-in: da1dd1dcc3 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:39:56
Don't initialise states - now done in numpar file. check-in: b91f5e3f60 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [038bda2a7a] to [5fadee3559].

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.73  1997/05/09 09:18:45  peterg
## Put ./ in front of a.out (again)
##
# Revision 1.72  1997/05/06  13:54:21  peterg
# Changed gcc arguments for the ode simulation -- all files now included
# in the _odes.c file
#







>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
# Revision 1.74  1997/05/13  16:58:02  peterg
# Added -s switch to get mtt to search for (Bond Graph) switches
#
## Revision 1.73  1997/05/09 09:18:45  peterg
## Put ./ in front of a.out (again)
##
# Revision 1.72  1997/05/06  13:54:21  peterg
# Changed gcc arguments for the ode simulation -- all files now included
# in the _odes.c file
#
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
	if [ "$level" = "0" ]; then \
	  sort -u MTT_sympar.txt> $1_sympar.txt1; \
	  struc2switch_txt $1; \
	  echo "Appending switch declarations"; \
	  cat $1_sympar.txt1 $1_switch.txt> $1_sympar.txt; \
	fi

$1_switch.c: $1_sub.sh
	struc2switch_txt2c $1
endif


# ## Old version -- just looks on top level
# ## $1_sympar.r: $1_lbl.txt $1_params.r
# ## 	lbl2sympar_txt2r $1
# ## 	echo "IN \"$1_params.r\";" >> $1_sympar.r







<
<







629
630
631
632
633
634
635


636
637
638
639
640
641
642
	if [ "$level" = "0" ]; then \
	  sort -u MTT_sympar.txt> $1_sympar.txt1; \
	  struc2switch_txt $1; \
	  echo "Appending switch declarations"; \
	  cat $1_sympar.txt1 $1_switch.txt> $1_sympar.txt; \
	fi



endif


# ## Old version -- just looks on top level
# ## $1_sympar.r: $1_lbl.txt $1_params.r
# ## 	lbl2sympar_txt2r $1
# ## 	echo "IN \"$1_params.r\";" >> $1_sympar.r
687
688
689
690
691
692
693


694
695
696
697
698
699
700
701
#SUMMARY input	numerical input declaration (c) 
ifeq ($switches,0)
$1_input.c:  $1_input.txt $1_sympar.c
	input_txt2c $1
endif

ifeq ($switches,1)


$1_input.c:  $1_input.txt $1_sympar.c
	input_txt2c -s $1
endif



#SUMMARY odes ODE simulation header file (h)
 $1_odes.h: 







>
>
|







688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
#SUMMARY input	numerical input declaration (c) 
ifeq ($switches,0)
$1_input.c:  $1_input.txt $1_sympar.c
	input_txt2c $1
endif

ifeq ($switches,1)
$1_switch.c: $1_struc.txt
	struc2switch_txt2c $1
$1_input.c:  $1_input.txt $1_sympar.c $1_switch.c
	input_txt2c -s $1
endif



#SUMMARY odes ODE simulation header file (h)
 $1_odes.h: 


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