Common.h

The Common.h header contains global definitions used in many places of the code. The following compile time constants are defined:

CUBISM_DIMENSION

The dimension of the default data structures generated by the compiler. The default is CUBISM_DIMENSION=3.

For CUBISM_DIMENSION=1,2,3 the following enum classes are defined that can be used for more descriptive code:

Dir

Specifies direction. For CUBISM_DIMENSION=3 the values are Dir::X, Dir::Y and Dir::Z for example.

Vector

Is an alias for Dir, where the values are interpreted as components instead of direction.

Tensor

Combines direction and component. For CUBISM_DIMENSION=2 the values are Tensor::XX, Tensor::XY, Tensor::YX and Tensor::YY.

enum Cubism::EntityType

Cubism entity type descriptor.

Cell

Cell entity, coordinates map to cell center (default)

Node

Node entity (vertices)

Face

Face entity that is spanned by nodes and is boundary of a cell

Coordinates map the face center

Undefined

No association

Values:

enumerator Cell
enumerator Node
enumerator Face
enumerator Undefined
enum Cubism::FieldClass

Field class identifier.

Values:

enumerator Scalar
enumerator Tensor
enumerator FaceContainer
enum Cubism::MeshClass

Mesh class descriptor.

Values:

enumerator Uniform
enumerator Stretched
enum Cubism::MeshIntegrity

Mesh integrity type.

A FullMesh is one that describes the full domain local to a process. A SubMesh is one that describes a sub-region of a FullMesh.

Values:

enumerator FullMesh
enumerator SubMesh