#NEWLINE# @ collective #NEWLINE# def _set_parameters( self ) : #NEWLINE# #INDENT# opts = PETSc . Options ( self . _opt_prefix ) #NEWLINE# for ( k , v ) in self . parameters . iteritems ( ) : #NEWLINE# #INDENT# if ( type ( self ) is bool ) : #NEWLINE# #INDENT# if v : #NEWLINE# #INDENT# opts [ k ] = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# opts [ k ] = v #NEWLINE# #UNINDENT# #UNINDENT# self . setFromOptions ( )