OOF2: The Manual
Name
ScalarFieldIndex — Index object for a scalar Field
Synopses
Python Synopsis
from ooflib.SWIG.engine.fieldindex import ScalarFieldIndex
class ScalarFieldIndex(FieldIndex):def __init__(self)
Description
For OOF2's component addressing mechanism to be generic, all
subclasses of Field must
have an associated FieldIndex type.
ScalarFieldIndex is the FieldIndex for
ScalarField.
It is a trivial class — it stores no data and most of its
methods are no-ops — since scalar fields have only one
component. Specifically,
-
ScalarFieldIndex::integer()always returns 0. -
ScalarFieldIndex::in_plane()always returns true.



