openmdao/core/group.py
def _get_scope(self, excl_sub=None):
        """
        Find the input and output variables that are needed for a particular matvec product.

        Parameters
        ----------
        excl_sub : <System>
            A subsystem whose variables should be excluded from the matvec product.

        Returns
        -------
        (set, set)
            Sets of output and input variables.
        """
        try:
            return self._scope_cache[excl_sub]
        except KeyError:
            pass

        if excl_sub is None:
            # All myproc outputs
            scope_out = frozenset(self._var_abs_names['output'])

            # All myproc inputs connected to an output in this system
            scope_in = frozenset(self._conn_global_abs_in2out).intersection(
                self._var_abs_names['input'])

        else:
            # All myproc outputs not in excl_sub
            scope_out = frozenset(self._var_abs_names['output']).difference(
                excl_sub._var_abs_names['output'])

            # All myproc inputs connected to an output in this system but not in excl_sub
            scope_in = set()
            for abs_in in self._var_abs_names['input']:
                if abs_in in self._conn_global_abs_in2out:
                    abs_out = self._conn_global_abs_in2out[abs_in]

                    if abs_out not in excl_sub._var_allprocs_abs2idx['linear']:
                        scope_in.add(abs_in)
            scope_in = frozenset(scope_in)

        self._scope_cache[excl_sub] = (scope_out, scope_in)
        return scope_out, scope_in

        Find the input and output variables that are needed for a particular matvec product.

        Parameters
        ----------
        excl_sub : <System>
            A subsystem whose variables should be excluded from the matvec product.

        Returns
        -------
        (set, set)
            Sets of output and input variables.
        
Find the input and output variables that are needed for a particular matvec product.
Parameters

excl_sub : 
A subsystem whose variables should be excluded from the matvec product.

Returns

(set, set)
Sets of output and input variables.
Find the input and output variables that are needed for a particular matvec product . Parameters excl_sub : A subsystem whose variables should be excluded from the matvec product . Returns ( set set ) Sets of output and input variables .
def _get_scope(self, excl_sub=None):
        try:
            return self._scope_cache[excl_sub]
        except KeyError:
            pass
        if excl_sub is None:
            scope_out = frozenset(self._var_abs_names['output'])
            scope_in = frozenset(self._conn_global_abs_in2out).intersection(
                self._var_abs_names['input'])
        else:
             not in excl_sub
            scope_out = frozenset(self._var_abs_names['output']).difference(
                excl_sub._var_abs_names['output'])
             but not in excl_sub
            scope_in = set()
            for abs_in in self._var_abs_names['input']:
                if abs_in in self._conn_global_abs_in2out:
                    abs_out = self._conn_global_abs_in2out[abs_in]
                    if abs_out not in excl_sub._var_allprocs_abs2idx['linear']:
                        scope_in.add(abs_in)
            scope_in = frozenset(scope_in)
        self._scope_cache[excl_sub] = (scope_out, scope_in)
        return scope_out, scope_in
def _get_scope ( self , excl_sub = None ) : try : return self . _scope_cache [ excl_sub ] except KeyError : pass if excl_sub is None : scope_out = frozenset ( self . _var_abs_names [ 'output' ] ) scope_in = frozenset ( self . _conn_global_abs_in2out ) . intersection ( self . _var_abs_names [ 'input' ] ) else : scope_out = frozenset ( self . _var_abs_names [ 'output' ] ) . difference ( excl_sub . _var_abs_names [ 'output' ] ) scope_in = set ( ) for abs_in in self . _var_abs_names [ 'input' ] : if abs_in in self . _conn_global_abs_in2out : abs_out = self . _conn_global_abs_in2out [ abs_in ] if abs_out not in excl_sub . _var_allprocs_abs2idx [ 'linear' ] : scope_in . add ( abs_in ) scope_in = frozenset ( scope_in ) self . _scope_cache [ excl_sub ] = ( scope_out , scope_in ) return scope_out , scope_in
Find the input and output variables that are needed for a particular matvec product.
Find the input and output variables that are needed for a particular matvec product .
"""
        Find the input and output variables that are needed for a particular matvec product.

        Parameters
        ----------
        excl_sub : <System>
            A subsystem whose variables should be excluded from the matvec product.

        Returns
        -------
        (set, set)
            Sets of output and input variables.
        """ # All myproc outputs # All myproc inputs connected to an output in this system # All myproc outputs not in excl_sub # All myproc inputs connected to an output in this system but not in excl_sub
self
excl_sub