~mg5core1/mg5amcnlo/2.6.4

« back to all changes in this revision

Viewing changes to madgraph/iolibs/export_v4.py

1. Fixed many of the first series of points from Olivier's review

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
                     "No valid MG_ME path given for MG4 run directory creation."
77
77
            logger.info('initialize a new directory: %s' % \
78
78
                        os.path.basename(self.dir_path))
79
 
            shutil.copytree(os.path.join(self.mgme_dir, 'Template'),
 
79
            shutil.copytree(os.path.join(self.mgme_dir, 'Template/LO'),
80
80
                            self.dir_path, True)
81
81
            # Duplicate run_card and plot_card
82
82
            for card in ['run_card', 'plot_card']:
821
821
        self.replace_make_opt_compiler(compiler)
822
822
        # Replace also for Template but not for cluster
823
823
        if not os.environ.has_key('MADGRAPH_DATA'):
824
 
            self.replace_make_opt_compiler(compiler, os.path.join(MG5DIR, 'Template'))
 
824
            self.replace_make_opt_compiler(compiler, os.path.join(MG5DIR, 'Template/LO'))
825
825
 
826
826
    def replace_make_opt_compiler(self, compiler, root_dir = ""):
827
827
        """Set FC=compiler in Source/make_opts"""
849
849
        """Additional actions needed for setup of Template
850
850
        """
851
851
 
852
 
        
853
852
        #First copy the full template tree if dir_path doesn't exit
854
853
        if os.path.isdir(self.dir_path):
855
854
            return
856
855
        
857
856
        logger.info('initialize a new standalone directory: %s' % \
858
857
                        os.path.basename(self.dir_path))
859
 
        temp_dir = os.path.join(self.mgme_dir, 'Template')
 
858
        temp_dir = os.path.join(self.mgme_dir, 'Template/LO')
860
859
        
861
860
        
862
861
        # Create the directory structure