openmdao/core/group.py
def add(self, name, subsys, promotes=None):
        """
        Add a subsystem (deprecated version of <Group.add_subsystem>).

        Parameters
        ----------
        name : str
            Name of the subsystem being added
        subsys : System
            An instantiated, but not-yet-set up system object.
        promotes : iter of str, optional
            A list of variable names specifying which subsystem variables
            to 'promote' up to this group. This is for backwards compatibility
            with older versions of OpenMDAO.

        Returns
        -------
        System
            The System that was passed in.
        """
        warn_deprecation("The 'add' method provides backwards compatibility with "
                         "OpenMDAO <= 1.x ; use 'add_subsystem' instead.")

        return self.add_subsystem(name, subsys, promotes=promotes)

        Add a subsystem (deprecated version of <Group.add_subsystem>).

        Parameters
        ----------
        name : str
            Name of the subsystem being added
        subsys : System
            An instantiated, but not-yet-set up system object.
        promotes : iter of str, optional
            A list of variable names specifying which subsystem variables
            to 'promote' up to this group. This is for backwards compatibility
            with older versions of OpenMDAO.

        Returns
        -------
        System
            The System that was passed in.
        
Add a subsystem (deprecated version of ).
Parameters

name : str
Name of the subsystem being added
subsys : System
An instantiated, but not-yet-set up system object.
promotes : iter of str, optional
A list of variable names specifying which subsystem variables
to 'promote' up to this group. This is for backwards compatibility
with older versions of OpenMDAO.

Returns

System
The System that was passed in.
Add a subsystem ( deprecated version of ) . Parameters name : str Name of the subsystem being added subsys : System An instantiated but not - yet - set up system object . promotes : iter of str optional A list of variable names specifying which subsystem variables to ' promote ' up to this group . This is for backwards compatibility with older versions of OpenMDAO . Returns System The System that was passed in .
def add(self, name, subsys, promotes=None):
        warn_deprecation("The 'add' method provides backwards compatibility with "
                         "OpenMDAO <= 1.x ; use 'add_subsystem' instead.")
        return self.add_subsystem(name, subsys, promotes=promotes)
def add ( self , name , subsys , promotes = None ) : warn_deprecation ( "The 'add' method provides backwards compatibility with " "OpenMDAO <= 1.x ; use 'add_subsystem' instead." ) return self . add_subsystem ( name , subsys , promotes = promotes )
Add a subsystem (deprecated version of <Group.add_subsystem>).
Add a subsystem ( deprecated version of <Group . add_subsystem > ) .
"""
        Add a subsystem (deprecated version of <Group.add_subsystem>).

        Parameters
        ----------
        name : str
            Name of the subsystem being added
        subsys : System
            An instantiated, but not-yet-set up system object.
        promotes : iter of str, optional
            A list of variable names specifying which subsystem variables
            to 'promote' up to this group. This is for backwards compatibility
            with older versions of OpenMDAO.

        Returns
        -------
        System
            The System that was passed in.
        """
self
name
subsys
promotes