#NEWLINE# def solve_nonlinear( self , params , unknowns , resids ) : #NEWLINE# #INDENT# if MPI : #NEWLINE# #INDENT# self . comm . Allgatherv ( ( params [ 'invec' ] * 2.0 ) , [ unknowns [ 'outvec' ] , self . sizes , self . offsets , MPI . DOUBLE ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# unknowns [ 'outvec' ] = ( unknowns [ 'invec' ] * 2.0 )