Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, parent, content, mold=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) |
Generates a Fortran allocate statement
Definition at line 833 of file f2pygen.py.
def psyclone.f2pygen.AllocateGen.__init__ | ( | self, | |
parent, | |||
content, | |||
mold = None |
|||
) |
:param parent: node to which to add this ALLOCATE as a child :type parent: :py:class:`psyclone.f2pygen.BaseGen` :param content: string or list of variables to allocate :type content: list of strings or a single string :param mold: A string to be used as the 'mold' parameter of ALLOCATE. :type mold: str or None. :raises RuntimeError: if `content` is not of correct type
Definition at line 835 of file f2pygen.py.
References psyclone.f2pygen.AllocateGen._decl, psyclone.f2pygen.DeallocateGen._decl, psyclone.f2pygen.BaseDeclGen._decl, psyclone.f2pygen.DeclGen._decl, psyclone.f2pygen.CharDeclGen._decl, and psyclone.f2pygen.TypeDeclGen._decl.