Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, scalar, parent=None) |
def | scalar (self) |
def | dag_name (self) |
def | args (self) |
def | node_str (self, colour=True) |
Generic Global Sum class which can be added to and manipulated in, a schedule. :param scalar: the scalar that the global sum is stored into :type scalar: :py:class:`psyclone.dynamo0p3.DynKernelArgument` :param parent: optional parent (default None) of this object :type parent: :py:class:`psyclone.psyir.nodes.Node`
def psyclone.psyGen.GlobalSum.args | ( | self | ) |
Return the list of arguments associated with this node. Override the base method and simply return our argument.
Definition at line 823 of file psyGen.py.
References psyclone.domain.lfric.arg_index_to_metadata_index.ArgIndexToMetadataIndex._scalar(), psyclone.domain.lfric.metadata_to_arguments_rules.MetadataToArgumentsRules._scalar(), and psyclone.psyGen.GlobalSum._scalar.
def psyclone.psyGen.GlobalSum.dag_name | ( | self | ) |
def psyclone.psyGen.GlobalSum.node_str | ( | self, | |
colour = True |
|||
) |
Returns a text description of this node with (optional) control codes to generate coloured output in a terminal that supports it. :param bool colour: whether or not to include colour control codes. :returns: description of this node, possibly coloured. :rtype: str
Definition at line 828 of file psyGen.py.
def psyclone.psyGen.GlobalSum.scalar | ( | self | ) |
Return the scalar field that this global sum acts on
Definition at line 810 of file psyGen.py.
References psyclone.domain.lfric.arg_index_to_metadata_index.ArgIndexToMetadataIndex._scalar(), psyclone.domain.lfric.metadata_to_arguments_rules.MetadataToArgumentsRules._scalar(), and psyclone.psyGen.GlobalSum._scalar.