Reference Guide  2.5.0
psyclone.f2pygen.CallGen Class Reference
Inheritance diagram for psyclone.f2pygen.CallGen:
Collaboration diagram for psyclone.f2pygen.CallGen:

Public Member Functions

def __init__ (self, parent, name="", args=None)
 
- Public Member Functions inherited from psyclone.f2pygen.BaseGen
def __init__ (self, parent, root)
 
def parent (self)
 
def children (self)
 
def root (self)
 
def add (self, new_object, position=None)
 
def previous_loop (self)
 
def last_declaration (self)
 
def start_parent_loop (self, debug=False)
 

Detailed Description

 Generates a Fortran call of a subroutine 

Definition at line 747 of file f2pygen.py.

Constructor & Destructor Documentation

◆ __init__()

def psyclone.f2pygen.CallGen.__init__ (   self,
  parent,
  name = "",
  args = None 
)
:param parent: node in AST to which to add CallGen as a child
:type parent: :py:class:`psyclone.f2pygen.BaseGen`
:param str name: the name of the routine to call
:param list args: list of arguments to pass to the call

Definition at line 749 of file f2pygen.py.

749  def __init__(self, parent, name="", args=None):
750  '''
751  :param parent: node in AST to which to add CallGen as a child
752  :type parent: :py:class:`psyclone.f2pygen.BaseGen`
753  :param str name: the name of the routine to call
754  :param list args: list of arguments to pass to the call
755  '''
756  reader = FortranStringReader("call vanilla(vanilla_arg)")
757  reader.set_format(FortranFormat(True, True)) # free form, strict
758  myline = reader.next()
759 
760  from fparser.one.block_statements import Call
761  self._call = Call(parent.root, myline)
762  self._call.designator = name
763  if args is None:
764  args = []
765  self._call.items = args
766 
767  BaseGen.__init__(self, parent, self._call)
768 
769 

References psyclone.f2pygen.CallGen._call, psyclone.gocean1p0.GOKernelGridArgument._call, psyclone.psyGen.DataAccess._call, and psyclone.psyGen.Argument._call.


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