openmdao/solvers/solver.py
def _iter_get_norm(self):
        """
        Return the norm of the residual.

        Note: This has the side effect of modifying the residual vector in fwd mode
        and the output vector in rev mode.

        Returns
        -------
        float
            norm.
        """
        system = self._system

        if self._mode == 'fwd':
            b_vecs = system._vectors['residual']
        else:  # rev
            b_vecs = system._vectors['output']

        norm = 0
        for vec_name in system._lin_rel_vec_name_list:
            b_vecs[vec_name]._data -= self._rhs_vecs[vec_name]
            norm += b_vecs[vec_name].get_norm()**2

        return norm ** 0.5

        Return the norm of the residual.

        Note: This has the side effect of modifying the residual vector in fwd mode
        and the output vector in rev mode.

        Returns
        -------
        float
            norm.
        
Return the norm of the residual.
Note: This has the side effect of modifying the residual vector in fwd mode
and the output vector in rev mode.

Returns

float
norm.
Return the norm of the residual . Note : This has the side effect of modifying the residual vector in fwd mode and the output vector in rev mode . Returns float norm .
def _iter_get_norm(self):
        system = self._system
        if self._mode == 'fwd':
            b_vecs = system._vectors['residual']
        else:  
            b_vecs = system._vectors['output']
        norm = 0
        for vec_name in system._lin_rel_vec_name_list:
            b_vecs[vec_name]._data -= self._rhs_vecs[vec_name]
            norm += b_vecs[vec_name].get_norm()**2
        return norm ** 0.5
def _iter_get_norm ( self ) : system = self . _system if self . _mode == 'fwd' : b_vecs = system . _vectors [ 'residual' ] else : b_vecs = system . _vectors [ 'output' ] norm = 0 for vec_name in system . _lin_rel_vec_name_list : b_vecs [ vec_name ] . _data -= self . _rhs_vecs [ vec_name ] norm += b_vecs [ vec_name ] . get_norm ( ) ** 2 return norm ** 0.5
Return the norm of the residual.
Return the norm of the residual .
"""
        Return the norm of the residual.

        Note: This has the side effect of modifying the residual vector in fwd mode
        and the output vector in rev mode.

        Returns
        -------
        float
            norm.
        """ # rev
self