849
849
base_compiler= ['FC=g77','FC=gfortran']
851
851
StdHep_path = pjoin(MG5DIR, 'vendor', 'StdHEP')
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)
864
863
logger.info('Compiling StdHEP. This has to be done only once.')
865
misc.compile(cwd = pjoin(MG5DIR, 'vendor', 'StdHEP'))
867
#then link the libraries in the exported dir
868
files.ln(pjoin(StdHep_path, 'lib', 'libstdhep.a'), \
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")
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'))
873
879
elif output_dependencies == 'internal':