openmdao/core/total_jac.py
def _initialize_approx(self):
        """
        Set up internal data structures needed for computing approx totals.
        """
        of_set = frozenset(self.of)
        wrt_set = frozenset(self.wrt)

        model = self.model

        # Initialization based on driver (or user) -requested "of" and "wrt".
        if not model._owns_approx_jac or model._owns_approx_of != of_set \
           or model._owns_approx_wrt != wrt_set:
            model._owns_approx_of = of_set
            model._owns_approx_wrt = wrt_set

            # Support for indices defined on driver vars.
            model._owns_approx_of_idx = {
                key: val['indices'] for key, val in iteritems(self.responses)
                if val['indices'] is not None
            }
            model._owns_approx_wrt_idx = {
                key: val['indices'] for key, val in iteritems(self.design_vars)
                if val['indices'] is not None
            }

        Set up internal data structures needed for computing approx totals.
        
Set up internal data structures needed for computing approx totals.
Set up internal data structures needed for computing approx totals .
def _initialize_approx(self):
        of_set = frozenset(self.of)
        wrt_set = frozenset(self.wrt)
        model = self.model
        if not model._owns_approx_jac or model._owns_approx_of != of_set \
           or model._owns_approx_wrt != wrt_set:
            model._owns_approx_of = of_set
            model._owns_approx_wrt = wrt_set
            model._owns_approx_of_idx = {
                key: val['indices'] for key, val in iteritems(self.responses)
                if val['indices'] is not None
            }
            model._owns_approx_wrt_idx = {
                key: val['indices'] for key, val in iteritems(self.design_vars)
                if val['indices'] is not None
            }
def _initialize_approx ( self ) : of_set = frozenset ( self . of ) wrt_set = frozenset ( self . wrt ) model = self . model if not model . _owns_approx_jac or model . _owns_approx_of != of_set or model . _owns_approx_wrt != wrt_set : model . _owns_approx_of = of_set model . _owns_approx_wrt = wrt_set model . _owns_approx_of_idx = { key : val [ 'indices' ] for key , val in iteritems ( self . responses ) if val [ 'indices' ] is not None } model . _owns_approx_wrt_idx = { key : val [ 'indices' ] for key , val in iteritems ( self . design_vars ) if val [ 'indices' ] is not None }
Set up internal data structures needed for computing approx totals.
Set up internal data structures needed for computing approx totals .
"""
        Set up internal data structures needed for computing approx totals.
        """ # Initialization based on driver (or user) -requested "of" and "wrt". # Support for indices defined on driver vars.
self