#NEWLINE# def write_name_file( self ) : #NEWLINE# #INDENT# '\n        Write the name file.\n\n        ' #NEWLINE# fn_path = os . path . join ( self . model_ws , self . namefile ) #NEWLINE# f_nam = open ( fn_path , 'w' ) #NEWLINE# f_nam . write ( ( '%s\n' % self . heading ) ) #NEWLINE# f_nam . write ( ( '%s %3i %s\n' % ( f . lst . name [ 0 ] , self . lst . unit_number [ 0 ] , self . lst . file_name [ 0 ] ) ) ) #NEWLINE# if ( self . ftlfilename is not None ) : #NEWLINE# #INDENT# f_nam . write ( ( '%s %3i %s\n' % ( 'FTL' , 39 , self . ftlfilename ) ) ) #NEWLINE# #UNINDENT# f_nam . write ( ( '%s' % self . get_name_file_entries ( ) ) ) #NEWLINE# for ( u , f ) in zip ( self . external_units , self . external_fnames ) : #NEWLINE# #INDENT# f_nam . write ( ( ( 'DATA  {0:3d}  ' . format ( u ) + f ) + '\n' ) ) #NEWLINE# #UNINDENT# f_nam . close ( ) #NEWLINE# return