dom

dom names the region of the open part that the equations issued after it read.

Syntax

dom imin jmin kmin imax jmax kmax

The six arguments are a region of reduced indices. A 0 in a minimum means the first reduced index of its direction and a 0 in a maximum the last, so dom 0 0 0 0 0 0 names the whole part. The concepts chapter explains regions.

What it does

Each of x=, y=, z=, t1=, t2= and t3= runs over the region of the last dom issued before it, and over the whole part when none was. A later dom changes the region for the equations after it only. A region of any class is legal: a vertex, an edge, a face or a block.

When James applies it

Step 20 of the hierarchy, with the equations it governs. dom is legal only in the Part phase.

Rules James adds

  • A region bound naming a gap is refused (E0418).
  • An insprt after a dom renumbers its region, as it renumbers every region.

Diagnostics

  • E0102: a reduced index lies outside the part.
  • E0106: a minimum is larger than its maximum.
  • E0418: a bound names a gap.
  • E0412: dom outside a part.

Example

The script tests/corpus/259-dom-x-doubled-p277/input.tg, which make test runs:

c dom's example, Vol. 1, p. 277: the x-coordinates doubled in a region
block 1 2 3;1 2 3;1 2 3;0 1 2 0 1 2 0 1 2
dom 1 1 1 2 2 2
x = 2*x
endpart

The manual’s own example: the x-coordinates are doubled over the first two partitions of each direction, and the nodes of the third partition stay where they were.

See also

  • x=: the equations and their rules.
  • Concepts: reduced indices and regions.

James 0.8.0.

This site uses Just the Docs, a documentation theme for Jekyll.