Reference Guide  2.5.0
psyclone.gocean1p0.GOKernelType1p0 Class Reference
Inheritance diagram for psyclone.gocean1p0.GOKernelType1p0:
Collaboration diagram for psyclone.gocean1p0.GOKernelType1p0:

Public Member Functions

def __str__ (self)
 
def __init__ (self, ast, name=None)
 
def nargs (self)
 
def index_offset (self)
 
- Public Member Functions inherited from psyclone.parse.kernel.KernelType
def name (self)
 
def iterates_over (self)
 
def procedure (self)
 
def arg_descriptors (self)
 
def __repr__ (self)
 
def get_integer_variable (self, name)
 
def get_integer_array (self, name)
 

Detailed Description

 Description of a kernel including the grid index-offset it
    expects and the region of the grid that it expects to
    operate upon 

Definition at line 2041 of file gocean1p0.py.

Member Function Documentation

◆ index_offset()

def psyclone.gocean1p0.GOKernelType1p0.index_offset (   self)
 Return the grid index-offset that this kernel expects 

Definition at line 2128 of file gocean1p0.py.

2128  def index_offset(self):
2129  ''' Return the grid index-offset that this kernel expects '''
2130  return self._index_offset
2131 
2132 

References psyclone.domain.gocean.kernel.psyir.GOceanKernelMetadata._index_offset, psyclone.gocean1p0.GOKern._index_offset, and psyclone.gocean1p0.GOKernelType1p0._index_offset.

Here is the caller graph for this function:

◆ nargs()

def psyclone.gocean1p0.GOKernelType1p0.nargs (   self)
 Count and return the number of arguments that this kernel
    expects the Algorithm layer to provide 

Reimplemented from psyclone.parse.kernel.KernelType.

Definition at line 2118 of file gocean1p0.py.

2118  def nargs(self):
2119  ''' Count and return the number of arguments that this kernel
2120  expects the Algorithm layer to provide '''
2121  count = 0
2122  for arg in self.arg_descriptors:
2123  if arg.argument_type != "grid_property":
2124  count += 1
2125  return count
2126 

References psyclone.domain.lfric.lfric_builtins.LFRicBuiltIn.arg_descriptors, psyclone.parse.kernel.KernelType.arg_descriptors(), psyclone.psyGen.Kern.arg_descriptors(), and psyclone.psyGen.CodedKern.arg_descriptors.

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

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