openmdao/jacobians/assembled_jacobian.py
def _init_ranges(self, system):
        """
        Compute row/col ranges for variables of the owning system.

        Parameters
        ----------
        system : System
            Parent system to this jacobian.
        """
        iproc = system.comm.rank
        abs2idx = system._var_allprocs_abs2idx['nonlinear']
        sizes = system._var_sizes['nonlinear']['output']
        out_ranges = self._out_ranges = {}
        start = end = 0
        for name in system._var_allprocs_abs_names['output']:
            end += sizes[iproc, abs2idx[name]]
            out_ranges[name] = (start, end)
            start = end

        sizes = system._var_sizes['nonlinear']['input']
        in_ranges = self._in_ranges = {}
        start = end = 0
        for name in system._var_allprocs_abs_names['input']:
            end += sizes[iproc, abs2idx[name]]
            in_ranges[name] = (start, end)
            start = end

        Compute row/col ranges for variables of the owning system.

        Parameters
        ----------
        system : System
            Parent system to this jacobian.
        
Compute row/col ranges for variables of the owning system.
Parameters

system : System
Parent system to this jacobian.
Compute row / col ranges for variables of the owning system . Parameters system : System Parent system to this jacobian .
def _init_ranges(self, system):
        iproc = system.comm.rank
        abs2idx = system._var_allprocs_abs2idx['nonlinear']
        sizes = system._var_sizes['nonlinear']['output']
        out_ranges = self._out_ranges = {}
        start = end = 0
        for name in system._var_allprocs_abs_names['output']:
            end += sizes[iproc, abs2idx[name]]
            out_ranges[name] = (start, end)
            start = end
        sizes = system._var_sizes['nonlinear']['input']
        in_ranges = self._in_ranges = {}
        start = end = 0
        for name in system._var_allprocs_abs_names['input']:
            end += sizes[iproc, abs2idx[name]]
            in_ranges[name] = (start, end)
            start = end
def _init_ranges ( self , system ) : iproc = system . comm . rank abs2idx = system . _var_allprocs_abs2idx [ 'nonlinear' ] sizes = system . _var_sizes [ 'nonlinear' ] [ 'output' ] out_ranges = self . _out_ranges = { } start = end = 0 for name in system . _var_allprocs_abs_names [ 'output' ] : end += sizes [ iproc , abs2idx [ name ] ] out_ranges [ name ] = ( start , end ) start = end sizes = system . _var_sizes [ 'nonlinear' ] [ 'input' ] in_ranges = self . _in_ranges = { } start = end = 0 for name in system . _var_allprocs_abs_names [ 'input' ] : end += sizes [ iproc , abs2idx [ name ] ] in_ranges [ name ] = ( start , end ) start = end
Compute row/col ranges for variables of the owning system.
Compute row / col ranges for variables of the owning system .
"""
        Compute row/col ranges for variables of the owning system.

        Parameters
        ----------
        system : System
            Parent system to this jacobian.
        """
self
system