Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, meta_arg, parent) |
def | fortran_string (self) |
def | access (self) |
def | access (self, value) |
def | grid_point_type (self) |
def | grid_point_type (self, value) |
def | form (self) |
def | form (self, value) |
def | stencil (self) |
def | stencil (self, value_list) |
Public Attributes | |
access | |
grid_point_type | |
form | |
Internal class to capture Kernel metadata information for a field argument. :param meta_arg: an fparser2 tree representation of the metadata. :type meta_arg: :py:class:`fparser.two.Fortran2003.Part_Ref` :param parent: a KernelMetadataSymbol instance that captures \ other parts of the metadata and references this instance. :type parent: :py:class`psyclone.psyir.common.kernel. \ KernelMetadataSymbol` :raises ParseError: if the metadata does not contain three \ arguments.
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.access | ( | self | ) |
:returns: the access descriptor for this field \ argument. :rtype: str
Definition at line 737 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.GridArg._access, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._access, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.ScalarArg._access, psyclone.domain.lfric.kernel.common_meta_arg_metadata.CommonMetaArgMetadata._access, psyclone.parse.kernel.Descriptor._access, psyclone.psyGen.Argument._access, and psyclone.psyir.symbols.interfaces.ArgumentInterface._access.
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.access | ( | self, | |
value | |||
) |
:param str value: set the access descriptor to the \ specified value.
Definition at line 746 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.GridArg._access, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._access, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.ScalarArg._access, psyclone.domain.lfric.kernel.common_meta_arg_metadata.CommonMetaArgMetadata._access, psyclone.parse.kernel.Descriptor._access, psyclone.psyGen.Argument._access, psyclone.psyir.symbols.interfaces.ArgumentInterface._access, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.GridArg._validate_access(), psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._validate_access(), and psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.ScalarArg._validate_access().
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.form | ( | self | ) |
:returns: the form of access for the field (pointwise, \ stencil, ...). :rtype: str
Definition at line 807 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._form, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.ScalarArg._form, psyclone.parse.algorithm.Arg._form, and psyclone.psyGen.Argument._form.
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.form | ( | self, | |
value | |||
) |
:param str value: set the form of access for the field to \ the specified value.
Definition at line 816 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._form, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.ScalarArg._form, psyclone.parse.algorithm.Arg._form, psyclone.psyGen.Argument._form, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._validate_form(), and psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.ScalarArg._validate_form().
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.fortran_string | ( | self | ) |
:returns: the metadata represented by this class as a \ Fortran string. :rtype: str
Definition at line 708 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.stencil(), psyclone.dynamo0p3.DynKernelArgument.stencil(), psyclone.parse.kernel.Descriptor.stencil(), psyclone.psyGen.KernelArgument.stencil(), psyclone.domain.lfric.arg_ordering.ArgOrdering.stencil(), psyclone.domain.lfric.kern_call_acc_arg_list.KernCallAccArgList.stencil(), psyclone.domain.lfric.kern_call_arg_list.KernCallArgList.stencil(), psyclone.domain.lfric.kern_call_invoke_arg_list.KernCallInvokeArgList.stencil(), psyclone.domain.lfric.kern_stub_arg_list.KernStubArgList.stencil(), psyclone.domain.lfric.kernel.field_arg_metadata.FieldArgMetadata.stencil, psyclone.domain.lfric.kernel_interface.KernelInterface.stencil(), and psyclone.domain.lfric.lfric_invoke.LFRicInvoke.stencil.
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.grid_point_type | ( | self | ) |
:returns: the value of the grid point type (go_ct, ...) \ for the field argument. :rtype: str
Definition at line 772 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._grid_point_type.
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.grid_point_type | ( | self, | |
value | |||
) |
:param str value: set the field grid point type (ct, ...) \ to the specified value.
Definition at line 781 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._grid_point_type, and psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._validate_grid_point_type().
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.stencil | ( | self | ) |
:returns: the stencil value, or None if there is no stencil. :rtype: Optional[List[str]]
Definition at line 876 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._stencil, psyclone.domain.lfric.arg_index_to_metadata_index.ArgIndexToMetadataIndex._stencil(), psyclone.domain.lfric.kernel.field_arg_metadata.FieldArgMetadata._stencil, psyclone.domain.lfric.lfric_arg_descriptor.LFRicArgDescriptor._stencil, psyclone.domain.lfric.metadata_to_arguments_rules.MetadataToArgumentsRules._stencil(), psyclone.dynamo0p3.DynKernelArgument._stencil, psyclone.gocean1p0.GOStencil._stencil, and psyclone.parse.kernel.Descriptor._stencil.
def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.stencil | ( | self, | |
value_list | |||
) |
:param value_list: set the new stencil value, encoded as \ three strings, each of three digits (0 or 1), see the \ `psyclone user guide <https://psyclone.readthedocs.io/en/\ stable/gocean1p0.html#argument-metadata-meta-args>` \ for more details. :type value_list: List[str]
Definition at line 884 of file psyir.py.
References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._form, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.ScalarArg._form, psyclone.parse.algorithm.Arg._form, psyclone.psyGen.Argument._form, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._stencil, psyclone.domain.lfric.arg_index_to_metadata_index.ArgIndexToMetadataIndex._stencil(), psyclone.domain.lfric.kernel.field_arg_metadata.FieldArgMetadata._stencil, psyclone.domain.lfric.lfric_arg_descriptor.LFRicArgDescriptor._stencil, psyclone.domain.lfric.metadata_to_arguments_rules.MetadataToArgumentsRules._stencil(), psyclone.dynamo0p3.DynKernelArgument._stencil, psyclone.gocean1p0.GOStencil._stencil, psyclone.parse.kernel.Descriptor._stencil, psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg._validate_stencil(), and psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.FieldArg.stencil().