#NEWLINE# def test_implicit_ext_solve( self ) : #NEWLINE# #INDENT# top = Problem ( ) #NEWLINE# root = top . root = Group ( ) #NEWLINE# root . add ( 'p1' , IndepVarComp ( 'x' , 0.5 ) ) #NEWLINE# root . add ( 'comp' , SimpleImplicitComp ( ) ) #NEWLINE# root . add ( 'comp2' , ExecComp ( 'zz = 2.0*z' ) ) #NEWLINE# root . connect ( 'p1.x' , 'comp.x' ) #NEWLINE# root . connect ( 'comp.z' , 'comp2.z' ) #NEWLINE# root . ln_solver = ScipyGMRES ( ) #NEWLINE# root . nl_solver = Newton ( ) #NEWLINE# top . setup ( check = False ) #NEWLINE# top . run ( ) #NEWLINE# assert_rel_error ( root , top [ 'comp.z' ] , 2.666667 , 1e-05 )