#NEWLINE# def _calcGrid( self , center , level ) : #NEWLINE# #INDENT# ' Calculate the next grid to validate.\n\n            :arg center: The central position of the grid\n            :arg level:  The iteration number\n        ' #NEWLINE# local_range = ( self . _range / ( self . _refine_factor ** level ) ) #NEWLINE# scale = ( local_range / 2 ) #NEWLINE# translation = center #NEWLINE# grid = ( ( self . _doe_pat * scale ) + translation ) #NEWLINE# grid = self . _moveGridIntoBounds ( level ) #NEWLINE# return grid