Overview
Comment:Strip off the additional direction info from rbonds
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 8e37d9f521ab9f9ae25491997cdc085b2ee786c130dfe0642b54f327e33cc84f
User & Date: gawthrop@users.sourceforge.net on 2000-09-14 08:41:35
Other Links: branch diff | manifest | tags
Context
2000-09-14
08:41:51
*** empty log message *** check-in: 0339d5e23e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:41:35
Strip off the additional direction info from rbonds check-in: 8e37d9f521 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:07:00
Reformated as an Octave function check-in: b661c4349b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/rbg2abg_m from [dab3bd6334] to [746d1ccf30].

1
2
3
4
5
6
7
8
9
10
11
12
13




14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24













+
+
+
+







#! /bin/sh

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

# Bourne shell script: rbg2abg_m
#
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.13  2000/03/16 12:53:26  peterg
## Added copy of the %VAR declarations
## Put in the endfunction statement
##
## Revision 1.12  1998/07/28 19:07:48  peterg
## Writes out N_ports as well as n_ports
##
## Revision 1.11  1998/07/25 16:14:44  peterg
## *** empty log message ***
##
## Revision 1.10  1998/07/08 15:34:56  peterg
123
124
125
126
127
128
129
130


131
132
133
134
135
136
137
127
128
129
130
131
132
133

134
135
136
137
138
139
140
141
142







-
+
+







 
  N_ports = 0;
  for i=1:n_ports		# Count the true number of ports.
    [subport,n_sub] = split_port(port_list(i,:), ',');
    N_ports = N_ports+n_sub;
  end;
 

 
  rbonds = rbonds(:,1:6);  # Strip  the directional information
  [bonds,components,n_vector_bonds] = rbg2abg(name,rbonds,rstrokes,rcomponents,port_coord,port_name,\
                               infofile,errorfile);

  %Write the function m-file for the causal bond graph
  write_abg(name,bonds,components,n_vector_bonds);    

#  filename = '$1_abg.m';


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