Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, shapes) |
def | fortran_string (self) |
def | shapes (self) |
def | shapes (self, values) |
Public Member Functions inherited from psyclone.domain.lfric.kernel.common_declaration_metadata.CommonDeclarationMetadata | |
def | validate_list (cls, values, expected_type) |
Public Member Functions inherited from psyclone.domain.lfric.kernel.common_metadata.CommonMetadata | |
def | create_from_fortran_string (cls, fortran_string) |
Static Public Member Functions | |
def | create_from_fparser2 (fparser2_tree) |
Static Public Member Functions inherited from psyclone.domain.lfric.kernel.common_declaration_metadata.CommonDeclarationMetadata | |
def | scalar_declaration_string (datatype, name, value) |
def | array_declaration_string (datatype, name, values) |
def | type_declaration_string (datatype, name, values) |
def | validate_node (fparser2_node, encoding) |
def | validate_name_value (fparser2_tree, name) |
def | get_intrinsic_scalar_declaration (fparser2_tree, datatype, name, valid_values) |
def | get_intrinsic_array_declaration (fparser2_tree, datatype, name, valid_values) |
def | get_derived_array_declaration (fparser2_tree, type_name, name, valid_values=None) |
Static Public Member Functions inherited from psyclone.domain.lfric.kernel.common_metadata.CommonMetadata | |
def | check_fparser2 (fparser2_tree, encoding) |
def | validate_scalar_value (value, valid_values, name) |
def | create_fparser2 (fortran_string, encoding) |
Public Attributes | |
shapes | |
Additional Inherited Members | |
Static Public Attributes inherited from psyclone.domain.lfric.kernel.common_declaration_metadata.CommonDeclarationMetadata | |
fparser2_class = Fortran2003.Data_Component_Def_Stmt | |
Static Public Attributes inherited from psyclone.domain.lfric.kernel.common_metadata.CommonMetadata | |
fparser2_class = None | |
Class to capture the values of the LFRic kernel GH_SHAPE metadata. This class supports the creation, modification and Fortran output of this metadata. If an LFRic kernel requires basis or differential-basis functions then the metadata must also specify the set of points on which these functions are required. This information is provided by the GH_SHAPE component of the metadata. :param shapes: a list of shape values :type shapes: List[str]
Definition at line 47 of file shapes_metadata.py.
|
static |
Create an instance of ShapesMetadata from an fparser2 tree. LFRic shape metadata can have a scalar and array form. Two versions of the array form are supported: :: integer :: gh_shape = gh_quadrature_face integer :: gh_shape(2) = (/ gh_quadrature_face, gh_evaluator /) integer, dimension(2) :: gh_shape = & (/ gh_quadrature_face, gh_evaluator /) :param fparser2_tree: fparser2 tree capturing the shapes metadata :type fparser2_tree: :py:class:`fparser.two.Fortran2003.\ Data_Component_Def_Stmt` :returns: an instance of ShapesMetadata. :rtype: :py:class:`psyclone.domain.lfric.kernel.ShapesMetadata`
Reimplemented from psyclone.domain.lfric.kernel.common_metadata.CommonMetadata.
Definition at line 77 of file shapes_metadata.py.
def psyclone.domain.lfric.kernel.shapes_metadata.ShapesMetadata.fortran_string | ( | self | ) |
:returns: the shapes metadata as Fortran. :rtype: str
Definition at line 65 of file shapes_metadata.py.
References psyclone.domain.lfric.kernel.lfric_kernel_metadata.LFRicKernelMetadata.shapes(), and psyclone.domain.lfric.kernel.shapes_metadata.ShapesMetadata.shapes.
def psyclone.domain.lfric.kernel.shapes_metadata.ShapesMetadata.shapes | ( | self | ) |
:returns: a list of shape values :rtype: List[str]
Definition at line 129 of file shapes_metadata.py.
References psyclone.domain.lfric.kernel.lfric_kernel_metadata.LFRicKernelMetadata._shapes, and psyclone.domain.lfric.kernel.shapes_metadata.ShapesMetadata._shapes.
def psyclone.domain.lfric.kernel.shapes_metadata.ShapesMetadata.shapes | ( | self, | |
values | |||
) |
:param values: set the shapes metdata to the supplied list of \ values. :type values: List[str]
Definition at line 139 of file shapes_metadata.py.
References psyclone.domain.lfric.kernel.lfric_kernel_metadata.LFRicKernelMetadata._shapes, and psyclone.domain.lfric.kernel.shapes_metadata.ShapesMetadata._shapes.