Reference Guide  2.5.0
psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.GridArg Class Reference

Public Member Functions

def __init__ (self, meta_arg, parent)
 
def fortran_string (self)
 
def access (self)
 
def access (self, value)
 
def name (self)
 
def name (self, value)
 

Public Attributes

 access
 
 name
 

Detailed Description

Internal class to capture Kernel metadata argument information for
a grid property.

: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 two \
    arguments.

Definition at line 547 of file psyir.py.

Member Function Documentation

◆ access() [1/2]

def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.GridArg.access (   self)
:returns: the value of the access descriptor. This \
    specifies how the grid property is accessed (read, write, \
    readwrite).
:rtype: str

Definition at line 605 of file psyir.py.

605  def access(self):
606  '''
607  :returns: the value of the access descriptor. This \
608  specifies how the grid property is accessed (read, write, \
609  readwrite).
610  :rtype: str
611  '''
612  return self._access
613 

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.

Here is the caller graph for this function:

◆ access() [2/2]

def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.GridArg.access (   self,
  value 
)
:param str value: set the access descriptor for this grid \
    property to the specified value.

Definition at line 615 of file psyir.py.

615  def access(self, value):
616  '''
617  :param str value: set the access descriptor for this grid \
618  property to the specified value.
619  '''
620  self._validate_access(value)
621  self._access = value
622 

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fortran_string()

def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.GridArg.fortran_string (   self)
:returns: the metadata represented by this class as a \
    Fortran string.
:rtype: str

Definition at line 580 of file psyir.py.

580  def fortran_string(self):
581  '''
582  :returns: the metadata represented by this class as a \
583  Fortran string.
584  :rtype: str
585  '''
586  return f"go_arg({self.access}, {self.name})"
587 
Here is the caller graph for this function:

◆ name() [1/2]

◆ name() [2/2]

def psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata.GridArg.name (   self,
  value 
)

The documentation for this class was generated from the following file: