~sebastien-wertz/mg5amcnlo/standalone_cpp_mem

« back to all changes in this revision

Viewing changes to madgraph/interface/madgraph_interface.py

  • Committer: Sébastien Wertz
  • Date: 2015-10-30 14:14:25 UTC
  • Revision ID: swertz@ingrid-ui1-20151030141425-0ymwh93fx6xhcrfs
Finished IOTest, small corrections to exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
6921
6921
 
6922
6922
        # C++ standalone, MEM dedicated
6923
6923
        if self._export_format == 'standalone_cpp_mem':
6924
 
            modified_matrix_elements = self._curr_matrix_elements.split_lepton_grouping().get_matrix_elements()
 
6924
            self._curr_matrix_elements = self._curr_matrix_elements.split_lepton_grouping()
6925
6925
            export_cpp_mem.generate_subprocess_directory_standalone_cpp(\
6926
 
                              modified_matrix_elements, self._curr_cpp_model,
 
6926
                              self._curr_matrix_elements.get_matrix_elements(), 
 
6927
                              self._curr_cpp_model,
6927
6928
                              path = path,
6928
6929
                              format=self._export_format)
6929
6930
        
 
6931
        
6930
6932
        cpu_time2 = time.time() - cpu_time1
6931
6933
 
6932
6934
        logger.info(("Generated helas calls for %d subprocesses " + \
7005
7007
            # these processes
7006
7008
            wanted_lorentz = self._curr_matrix_elements.get_used_lorentz()
7007
7009
            wanted_couplings = self._curr_matrix_elements.get_used_couplings()
7008
 
            export_cpp.convert_model_to_cpp(self._curr_model,
7009
 
                                            pjoin(self._export_dir),
7010
 
                                            wanted_lorentz,
7011
 
                                            wanted_couplings)
7012
 
            export_cpp.make_model_cpp(self._export_dir)
 
7010
 
 
7011
            if self._export_format in ['standalone_cpp', 'matchbox_cpp']:
 
7012
                export_cpp.convert_model_to_cpp(self._curr_model,
 
7013
                                                pjoin(self._export_dir),
 
7014
                                                wanted_lorentz,
 
7015
                                                wanted_couplings)
 
7016
                export_cpp.make_model_cpp(self._export_dir)
 
7017
            if self._export_format == 'standalone_cpp_mem':
 
7018
                # standalone_cpp_mem uses a different Parameters_model class
 
7019
                # avoiding static instances of the class
 
7020
                export_cpp_mem.convert_model_to_cpp(self._curr_model,
 
7021
                                                self._export_dir,
 
7022
                                                wanted_lorentz,
 
7023
                                                wanted_couplings)
 
7024
                export_cpp_mem.make_model_cpp(self._export_dir)
7013
7025
 
7014
7026
 
7015
7027
        elif self._export_format in ['NLO']: