parameters: (self, dir)
docstring: Compile Smilei
docstring_summary: Compile Smilei
docstring_tokens: Compile Smilei
function: def compile(self, dir):
          """
          Compile Smilei
          """
          with open(self.smilei_path.exec_script, 'w') as f:
              f.write( self.script.format(command=self.COMPILE_COMMAND, nodes=self.NODES, mpi=self.options.mpi, max_time=self.options.max_time, omp=self.options.omp, dir=dir) )
          
          self.launch_job(self.COMPILE_COMMAND, self.JOB, dir, self.options.max_time_seconds, self.smilei_path.output_file, repeat=2)
function_tokens: def compile ( self , dir ) : with open ( self . smilei_path . exec_script , 'w' ) as f : f . write ( self . script . format ( command = self . COMPILE_COMMAND , nodes = self . NODES , mpi = self . options . mpi , max_time = self . options . max_time , omp = self . options . omp , dir = dir ) ) self . launch_job ( self . COMPILE_COMMAND , self . JOB , dir , self . options . max_time_seconds , self . smilei_path . output_file , repeat = 2 )