~maddevelopers/mg5amcnlo/2.7.4_array

« back to all changes in this revision

Viewing changes to madgraph/iolibs/export_fks.py

  • Committer: olivier-mattelaer
  • Date: 2019-10-16 11:38:38 UTC
  • mfrom: (282.1.28 2.6.7)
  • Revision ID: olivier-mattelaer-20191016113838-6u4j5u3hn06rq2wc
pass to 2.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
849
849
        base_compiler= ['FC=g77','FC=gfortran']
850
850
        
851
851
        StdHep_path = pjoin(MG5DIR, 'vendor', 'StdHEP')
852
 
        
853
852
        if output_dependencies == 'external':
854
853
            # check if stdhep has to be compiled (only the first time)
855
854
            if not os.path.exists(pjoin(MG5DIR, 'vendor', 'StdHEP', 'lib', 'libstdhep.a')) or \
862
861
                    open(path, 'w').writelines(text)
863
862
 
864
863
                logger.info('Compiling StdHEP. This has to be done only once.')
865
 
                misc.compile(cwd = pjoin(MG5DIR, 'vendor', 'StdHEP'))
866
 
                logger.info('Done.')
867
 
            #then link the libraries in the exported dir
868
 
            files.ln(pjoin(StdHep_path, 'lib', 'libstdhep.a'), \
 
864
                try:
 
865
                    misc.compile(cwd = pjoin(MG5DIR, 'vendor', 'StdHEP'))
 
866
                except Exception as error:
 
867
                    logger.debug(str(error))
 
868
                    logger.warning("StdHep failed to compiled. This forbids to run NLO+PS with PY6 and Herwig6")
 
869
                    logger.info("details on the compilation error are available if the code is run with --debug flag")
 
870
                else:
 
871
                    logger.info('Done.')
 
872
            if os.path.exists(pjoin(StdHep_path, 'lib', 'libstdhep.a')):
 
873
                #then link the libraries in the exported dir
 
874
                files.ln(pjoin(StdHep_path, 'lib', 'libstdhep.a'), \
869
875
                                         pjoin(self.dir_path, 'MCatNLO', 'lib'))
870
 
            files.ln(pjoin(StdHep_path, 'lib', 'libFmcfio.a'), \
 
876
                files.ln(pjoin(StdHep_path, 'lib', 'libFmcfio.a'), \
871
877
                                         pjoin(self.dir_path, 'MCatNLO', 'lib'))
872
878
 
873
879
        elif output_dependencies == 'internal':