mti
mti is mt with an index progression in place of the region. The i means the command takes a progression. It does not mean inverse.
Syntax
mti i_list ; j_list ; k_list ; material_number
A progression is three lists, one for i, one for j and one for k, each ending in ;, as for dei; the concepts chapter explains progressions. material_number is a positive integer.
What it does
mti is mt for every region the progression expands to, in the expansion’s order, and mt describes what each row does.
When James applies it
As mt: when it builds the part. mti is legal only in the Part phase.
Rules James adds
- A progression that expands to no region is not an error. James warns and ignores the command (E0107).
- Each expanded region follows
mt’s rules: the last covering row wins, and a region with no element warns and is kept.
Diagnostics
- E1201: a reduced index lies outside the part.
- E0101: a list holds one positive number, which selects nothing.
- E0103: an interval is written high to low.
- E0107: the progression expands to no region.
- E1200: the number is missing, is not an integer, is below 1, or is above 2147483647.
- E1202: a region holds no element.
- E0412:
mtioutside a part.
Example
The script tests/corpus/184-mti-progression/input.tg, which make test runs:
block 1 2 3 4;1 2;1 2;0 1 2 3;0 1;0 1;
mti 1 2 0 3 4;;; 7
endpart
The progression’s i list 1 2 0 3 4 is a union of two intervals, the regions between reduced indices 1 and 2 and between 3 and 4, and the empty j and k lists mean the whole extent. The command gives the first and the third element material 7 and leaves the middle one at the default. The IR dump shows the two rows, [1 1 1 2 2 2] 7 and [3 1 1 4 2 2] 7.