Overview
Comment:More helpful error message for vector bond matching.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 45671deeacc8c217b6e163e7c065226796d97fca04573355adaa906cf05c53b0
User & Date: geraint@users.sourceforge.net on 2005-02-18 17:50:53
Other Links: branch diff | manifest | tags
Context
2005-02-18
18:43:52
Fixed bug in port labelling for vector junctions. check-in: 0da72471c7 user: geraint@users.sourceforge.net tags: origin/master, trunk
17:50:53
More helpful error message for vector bond matching. check-in: 45671deeac user: geraint@users.sourceforge.net tags: origin/master, trunk
17:26:35
This file should not be here. check-in: 319826c819 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/ibg2abg.m from [268bf69a52] to [781ceb84d9].

335
336
337
338
339
340
341
342
343




344
345
346




347
348
349
350
351
352
353
335
336
337
338
339
340
341


342
343
344
345
346


347
348
349
350
351
352
353
354
355
356
357







-
-
+
+
+
+

-
-
+
+
+
+







    head_bond = eval(head_str);
    tail_bond = eval(tail_str);
    
    ## check compatible sizes
    head.n_subs = size(struct_elements(head_bond))(1) - 2;
    tail.n_subs = size(struct_elements(tail_bond))(1) - 2;
    if (head.n_subs != tail.n_subs)
      mtt_error(sprintf("Vector ports %s and %s are not compatible",
			head_bond.label, tail_bond.label), errorfile);
      mtt_error(sprintf("Vector ports '%s' (%s:%s) and '%s' (%s:%s) are not compatible",
			head_bond.label, head.type, head_name,
			tail_bond.label, tail.type, tail_name),
		errorfile);
    elseif (head.n_subs > 1)
      mtt_info(sprintf("Vector port %s matches %s",
		       head_bond.label, tail_bond.label), infofile);
      mtt_info(sprintf("Vector port '%s'(%s:%s) matches '%s' (%s:%s)",
		       head_bond.label, head.type, head_name,
		       tail_bond.label, tail.type, tail_type),
	       infofile);
    endif

    ## write type at other end
    eval(sprintf("%s.other_end_type = '%s';",
		 head_str, tail.type));
    eval(sprintf("%s.other_end_type = '%s';",
		 tail_str, head.type));


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