#NEWLINE# def test_fd_options_step_size( self ) : #NEWLINE# #INDENT# prob = Problem ( ) #NEWLINE# prob . root = Group ( ) #NEWLINE# comp = prob . root . add ( 'comp' , Paraboloid ( ) ) #NEWLINE# prob . root . add ( 'p1' , IndepVarComp ( [ ( 'x' , 15.0 ) , ( 'y' , 15.0 ) ] ) ) #NEWLINE# prob . root . connect ( 'p1.x' , 'comp.x' ) #NEWLINE# prob . root . connect ( 'p1.y' , 'comp.y' ) #NEWLINE# comp . fd_options [ 'force_fd' ] = True #NEWLINE# prob . setup ( check = False ) #NEWLINE# prob . run ( ) #NEWLINE# J = prob . calc_gradient ( [ 'p1.x' ] , [ 'comp.f_xy' ] , return_format = 'dict' ) #NEWLINE# assert_rel_error ( self , J [ 'comp.f_xy' ] [ 'p1.x' ] [ 0 ] [ 0 ] , 39.0 , 1e-06 ) #NEWLINE# comp . fd_options [ 'step_size' ] = 100000.0 #NEWLINE# J = prob . calc_gradient ( [ 'p1.x' ] , [ 'comp.f_xy' ] , return_format = 'dict' ) #NEWLINE# self . assertGreater ( J [ 'comp.f_xy' ] [ 'p1.x' ] [ 0 ] [ 0 ] , 1000.0 )