def run_and_check_derivs(self, prob, tol=1e-05, verbose=False):
    'Runs check_partials and compares to analytic derivatives.'
    prob.run_model()
    derivs = prob.check_partials(out_stream=None)
    for i in derivs['comp'].keys():
        if verbose:
            print('Checking derivative pair:', i)
        if (derivs['comp'][i]['J_fwd'].sum() != 0.0):
            rel_err = derivs['comp'][i]['rel error'][0]
            self.assertLessEqual(rel_err, tol)
Runs check_partials and compares to analytic derivatives.
def run_and_check_derivs(self, prob, tol=1e-05, verbose=False):
    
    prob.run_model()
    derivs = prob.check_partials(out_stream=None)
    for i in derivs['comp'].keys():
        if verbose:
            print('Checking derivative pair:', i)
        if (derivs['comp'][i]['J_fwd'].sum() != 0.0):
            rel_err = derivs['comp'][i]['rel error'][0]
            self.assertLessEqual(rel_err, tol)