~mg5core1/mg5amcnlo/2.6.4

« back to all changes in this revision

Viewing changes to madgraph/loop/loop_exporters.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:
64
64
    def __init__(self, loop_dir = "", cuttools_dir = "", *args, **kwargs):
65
65
        """Initiate the LoopExporterFortran with directory information on where
66
66
        to find all the loop-related source files, like CutTools"""
 
67
 
67
68
        self.loop_dir = loop_dir
68
69
        self.cuttools_dir = cuttools_dir
69
70
        super(LoopExporterFortran,self).__init__(*args, **kwargs)
100
101
    def write_mp_files(self, writer_mprec, writer_mpc):
101
102
        """Write the cts_mprec.h and cts_mpc.h"""
102
103
 
103
 
        file = open(os.path.join(self.loop_dir, 'CutTools/src/cts/cts_mprec.h')).read()
 
104
        file = open(os.path.join(self.cuttools_dir, 'src/cts/cts_mprec.h')).read()
104
105
        writer_mprec.writelines(file)
105
106
 
106
 
        file = open(os.path.join(self.loop_dir, 'CutTools/src/cts/cts_mpc.h')).read()
 
107
        file = open(os.path.join(self.cuttools_dir, 'src/cts/cts_mpc.h')).read()
107
108
        file = file.replace('&','')
108
109
        writer_mpc.writelines(file)
109
110