openmdao/solvers/solver.py
def _setup_solvers(self, system, depth):
        """
        Assign system instance, set depth, and optionally perform setup.

        Parameters
        ----------
        system : <System>
            pointer to the owning system.
        depth : int
            depth of the current system (already incremented).
        """
        self._system = system
        self._depth = depth
        self._solver_info = system._solver_info
        self._recording_iter = system._recording_iter

        if isinstance(self, LinearSolver) and not system._use_derivatives:
            return

        self._rec_mgr.startup(self)
        self._rec_mgr.record_metadata(self)

        myoutputs = myresiduals = myinputs = set()
        incl = self.recording_options['includes']
        excl = self.recording_options['excludes']

        if self.recording_options['record_solver_residuals']:
            if isinstance(self, NonlinearSolver):
                residuals = system._residuals
            else:  # it's a LinearSolver
                residuals = system._vectors['residual']['linear']

            myresiduals = {n for n in residuals._names if check_path(n, incl, excl)}

        if self.recording_options['record_outputs']:
            if isinstance(self, NonlinearSolver):
                outputs = system._outputs
            else:  # it's a LinearSolver
                outputs = system._vectors['output']['linear']

            myoutputs = {n for n in outputs._names if check_path(n, incl, excl)}

        if self.recording_options['record_inputs']:
            if isinstance(self, NonlinearSolver):
                inputs = system._inputs
            else:
                inputs = system._vectors['input']['linear']

            myinputs = {n for n in inputs._names if check_path(n, incl, excl)}

        self._filtered_vars_to_record = {
            'in': myinputs,
            'out': myoutputs,
            'res': myresiduals
        }

        Assign system instance, set depth, and optionally perform setup.

        Parameters
        ----------
        system : <System>
            pointer to the owning system.
        depth : int
            depth of the current system (already incremented).
        
Assign system instance, set depth, and optionally perform setup.
Parameters

system : 
pointer to the owning system.
depth : int
depth of the current system (already incremented).
Assign system instance set depth and optionally perform setup . Parameters system : pointer to the owning system . depth : int depth of the current system ( already incremented ) .
def _setup_solvers(self, system, depth):
        self._system = system
        self._depth = depth
        self._solver_info = system._solver_info
        self._recording_iter = system._recording_iter
        if isinstance(self, LinearSolver) and not system._use_derivatives:
            return
        self._rec_mgr.startup(self)
        self._rec_mgr.record_metadata(self)
        myoutputs = myresiduals = myinputs = set()
        incl = self.recording_options['includes']
        excl = self.recording_options['excludes']
        if self.recording_options['record_solver_residuals']:
            if isinstance(self, NonlinearSolver):
                residuals = system._residuals
            else:  
                residuals = system._vectors['residual']['linear']
            myresiduals = {n for n in residuals._names if check_path(n, incl, excl)}
        if self.recording_options['record_outputs']:
            if isinstance(self, NonlinearSolver):
                outputs = system._outputs
            else:  
                outputs = system._vectors['output']['linear']
            myoutputs = {n for n in outputs._names if check_path(n, incl, excl)}
        if self.recording_options['record_inputs']:
            if isinstance(self, NonlinearSolver):
                inputs = system._inputs
            else:
                inputs = system._vectors['input']['linear']
            myinputs = {n for n in inputs._names if check_path(n, incl, excl)}
        self._filtered_vars_to_record = {
            'in': myinputs,
            'out': myoutputs,
            'res': myresiduals
        }
def _setup_solvers ( self , system , depth ) : self . _system = system self . _depth = depth self . _solver_info = system . _solver_info self . _recording_iter = system . _recording_iter if isinstance ( self , LinearSolver ) and not system . _use_derivatives : return self . _rec_mgr . startup ( self ) self . _rec_mgr . record_metadata ( self ) myoutputs = myresiduals = myinputs = set ( ) incl = self . recording_options [ 'includes' ] excl = self . recording_options [ 'excludes' ] if self . recording_options [ 'record_solver_residuals' ] : if isinstance ( self , NonlinearSolver ) : residuals = system . _residuals else : residuals = system . _vectors [ 'residual' ] [ 'linear' ] myresiduals = { n for n in residuals . _names if check_path ( n , incl , excl ) } if self . recording_options [ 'record_outputs' ] : if isinstance ( self , NonlinearSolver ) : outputs = system . _outputs else : outputs = system . _vectors [ 'output' ] [ 'linear' ] myoutputs = { n for n in outputs . _names if check_path ( n , incl , excl ) } if self . recording_options [ 'record_inputs' ] : if isinstance ( self , NonlinearSolver ) : inputs = system . _inputs else : inputs = system . _vectors [ 'input' ] [ 'linear' ] myinputs = { n for n in inputs . _names if check_path ( n , incl , excl ) } self . _filtered_vars_to_record = { 'in' : myinputs , 'out' : myoutputs , 'res' : myresiduals }
Assign system instance, set depth, and optionally perform setup.
Assign system instance set depth and optionally perform setup .
"""
        Assign system instance, set depth, and optionally perform setup.

        Parameters
        ----------
        system : <System>
            pointer to the owning system.
        depth : int
            depth of the current system (already incremented).
        """ # it's a LinearSolver # it's a LinearSolver
self
system
depth