openmdao/core/total_jac.py
def simul_coloring_input_setter(self, inds, itermeta, mode):
        """
        Set -1's into the input vector in the simul coloring case.

        Parameters
        ----------
        inds : list of int
            Total jacobian row or column indices.
        itermeta : dict
            Dictionary of iteration metadata.
        mode : str
            Direction of derivative solution.

        Returns
        -------
        set
            Set of relevant system names.
        tuple of str or None
            'linear' or None if linear solve caching is inactive.
        int or None
            key used for storage of cached linear solve (if active, else None).
        """
        if itermeta is None:
            return self.single_input_setter(inds[0], None, mode)

        self._zero_vecs('linear', mode)

        # We apply a -1 here because the derivative of the output is minus the derivative of
        # the residual in openmdao.
        self.input_vec[mode]['linear']._data[itermeta['local_in_idxs']] = -1.0

        if itermeta['cache_lin_solve']:
            return itermeta['relevant'], ('linear',), (inds[0], mode)
        else:
            return itermeta['relevant'], None, None

        Set -1's into the input vector in the simul coloring case.

        Parameters
        ----------
        inds : list of int
            Total jacobian row or column indices.
        itermeta : dict
            Dictionary of iteration metadata.
        mode : str
            Direction of derivative solution.

        Returns
        -------
        set
            Set of relevant system names.
        tuple of str or None
            'linear' or None if linear solve caching is inactive.
        int or None
            key used for storage of cached linear solve (if active, else None).
        
1's into the input vector in the simul coloring case.
Parameters

inds : list of int
Total jacobian row or column indices.
itermeta : dict
Dictionary of iteration metadata.
mode : str
Direction of derivative solution.

Returns

set
Set of relevant system names.
tuple of str or None
'linear' or None if linear solve caching is inactive.
int or None
key used for storage of cached linear solve (if active, else None).
1 ' s into the input vector in the simul coloring case . Parameters inds : list of int Total jacobian row or column indices . itermeta : dict Dictionary of iteration metadata . mode : str Direction of derivative solution . Returns set Set of relevant system names . tuple of str or None ' linear ' or None if linear solve caching is inactive . int or None key used for storage of cached linear solve ( if active else None ) .
def simul_coloring_input_setter(self, inds, itermeta, mode):
        if itermeta is None:
            return self.single_input_setter(inds[0], None, mode)
        self._zero_vecs('linear', mode)
        self.input_vec[mode]['linear']._data[itermeta['local_in_idxs']] = -1.0
        if itermeta['cache_lin_solve']:
            return itermeta['relevant'], ('linear',), (inds[0], mode)
        else:
            return itermeta['relevant'], None, None
def simul_coloring_input_setter ( self , inds , itermeta , mode ) : if itermeta is None : return self . single_input_setter ( inds [ 0 ] , None , mode ) self . _zero_vecs ( 'linear' , mode ) self . input_vec [ mode ] [ 'linear' ] . _data [ itermeta [ 'local_in_idxs' ] ] = - 1.0 if itermeta [ 'cache_lin_solve' ] : return itermeta [ 'relevant' ] , ( 'linear' , ) , ( inds [ 0 ] , mode ) else : return itermeta [ 'relevant' ] , None , None
Set -1's into the input vector in the simul coloring case.
Set - 1 ' s into the input vector in the simul coloring case .
"""
        Set -1's into the input vector in the simul coloring case.

        Parameters
        ----------
        inds : list of int
            Total jacobian row or column indices.
        itermeta : dict
            Dictionary of iteration metadata.
        mode : str
            Direction of derivative solution.

        Returns
        -------
        set
            Set of relevant system names.
        tuple of str or None
            'linear' or None if linear solve caching is inactive.
        int or None
            key used for storage of cached linear solve (if active, else None).
        """ # We apply a -1 here because the derivative of the output is minus the derivative of # the residual in openmdao.
self
inds
itermeta
mode