openmdao/components/ks_comp.py
def compute_partials(self, inputs, partials):
        """
        Compute sub-jacobian parts. The model is assumed to be in an unscaled state.

        Parameters
        ----------
        inputs : Vector
            unscaled, dimensional input variables read via inputs[key]
        partials : Jacobian
            sub-jac components written to partials[output_name, input_name]
        """
        derivs = self.derivs

        if self.options['lower_flag']:
            derivs = -derivs

        partials['KS', 'g'] = derivs.flatten()

        Compute sub-jacobian parts. The model is assumed to be in an unscaled state.

        Parameters
        ----------
        inputs : Vector
            unscaled, dimensional input variables read via inputs[key]
        partials : Jacobian
            sub-jac components written to partials[output_name, input_name]
        
Compute sub-jacobian parts. The model is assumed to be in an unscaled state.
Parameters

inputs : Vector
unscaled, dimensional input variables read via inputs[key]
partials : Jacobian
sub-jac components written to partials[output_name, input_name]
Compute sub - jacobian parts . The model is assumed to be in an unscaled state . Parameters inputs : Vector unscaled dimensional input variables read via inputs [ key ] partials : Jacobian sub - jac components written to partials [ output_name input_name ]
def compute_partials(self, inputs, partials):
        derivs = self.derivs
        if self.options['lower_flag']:
            derivs = -derivs
        partials['KS', 'g'] = derivs.flatten()
def compute_partials ( self , inputs , partials ) : derivs = self . derivs if self . options [ 'lower_flag' ] : derivs = - derivs partials [ 'KS' , 'g' ] = derivs . flatten ( )
Compute sub-jacobian parts.
Compute sub - jacobian parts .
"""
        Compute sub-jacobian parts. The model is assumed to be in an unscaled state.

        Parameters
        ----------
        inputs : Vector
            unscaled, dimensional input variables read via inputs[key]
        partials : Jacobian
            sub-jac components written to partials[output_name, input_name]
        """
self
inputs
partials