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: |
082237248111c8a7cd7d5028700fcbf5 |
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: 4887bf8185 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
17:50:53 | More helpful error message for vector bond matching. check-in: 0822372481 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
17:26:35 | This file should not be here. check-in: dbbe696e55 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 | 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) | | | > > | | > > | 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' (%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'(%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)); |
︙ | ︙ |