#NEWLINE# def apply_nonlinear( self , params , unknowns , resids ) : #NEWLINE# #INDENT# " Don't solve; just calculate the residual." #NEWLINE# y2_actual = params [ 'y2_actual' ] #NEWLINE# y2_command = unknowns [ 'y2_command' ] #NEWLINE# resids [ 'y2_command' ] = ( y2_actual - y2_command )