Spacen

Synopsis

Set the spatial dimensionality of a field to 1, 2, or 3.

group Space3 { /* 3-space grid */
int nspace = 3;
};

group Space2 { /* 2-space grid */
int nspace = 2;
};

group Space1 { /* 1-space grid */
int nspace = 1;
};

Description

These field subtypes automatically set the nspace in the Grid of a field.

For example, saying:

Field_Struct+Space2

establishes that the uniform field has nspace=2.

Examples

none.

Files

v/fld.v.

See Also

none.