openmdao/core/total_jac.py
def _restore_linear_solution(self, vec_names, key, mode):
        """
        Restore the previous linear solution.

        Parameters
        ----------
        vec_names : list of str
            Names of output vectors to restore.
        key : hashable object
            Key to lookup linear solution.
        mode : str
            Direction of derivative solution.
        """
        lin_sol_cache = self.lin_sol_cache
        if key in lin_sol_cache:
            lin_sol = lin_sol_cache[key]
            for i, vec_name in enumerate(vec_names):
                save_vec = lin_sol[i]
                doutputs = self.output_vec[mode][vec_name]
                doutputs._data[:] = save_vec
        else:
            lin_sol_cache[key] = lin_sol = []
            for vec_name in vec_names:
                lin_sol.append(deepcopy(self.output_vec[mode][vec_name]._data))

        Restore the previous linear solution.

        Parameters
        ----------
        vec_names : list of str
            Names of output vectors to restore.
        key : hashable object
            Key to lookup linear solution.
        mode : str
            Direction of derivative solution.
        
Restore the previous linear solution.
Parameters

vec_names : list of str
Names of output vectors to restore.
key : hashable object
Key to lookup linear solution.
mode : str
Direction of derivative solution.
Restore the previous linear solution . Parameters vec_names : list of str Names of output vectors to restore . key : hashable object Key to lookup linear solution . mode : str Direction of derivative solution .
def _restore_linear_solution(self, vec_names, key, mode):
        lin_sol_cache = self.lin_sol_cache
        if key in lin_sol_cache:
            lin_sol = lin_sol_cache[key]
            for i, vec_name in enumerate(vec_names):
                save_vec = lin_sol[i]
                doutputs = self.output_vec[mode][vec_name]
                doutputs._data[:] = save_vec
        else:
            lin_sol_cache[key] = lin_sol = []
            for vec_name in vec_names:
                lin_sol.append(deepcopy(self.output_vec[mode][vec_name]._data))
def _restore_linear_solution ( self , vec_names , key , mode ) : lin_sol_cache = self . lin_sol_cache if key in lin_sol_cache : lin_sol = lin_sol_cache [ key ] for i , vec_name in enumerate ( vec_names ) : save_vec = lin_sol [ i ] doutputs = self . output_vec [ mode ] [ vec_name ] doutputs . _data [ : ] = save_vec else : lin_sol_cache [ key ] = lin_sol = [ ] for vec_name in vec_names : lin_sol . append ( deepcopy ( self . output_vec [ mode ] [ vec_name ] . _data ) )
Restore the previous linear solution.
Restore the previous linear solution .
"""
        Restore the previous linear solution.

        Parameters
        ----------
        vec_names : list of str
            Names of output vectors to restore.
        key : hashable object
            Key to lookup linear solution.
        mode : str
            Direction of derivative solution.
        """
self
vec_names
key
mode