Skip to content

Commit

Permalink
[pp4t] complete the codegen fix for madgraph5#644: define "nwavefunc"…
Browse files Browse the repository at this point in the history
… when creating CPPProcess.h (only nwavefuncs was defined - with leading s and with wrong value!)
  • Loading branch information
valassi committed Apr 26, 2023
1 parent e11bb66 commit 8948d72
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,7 @@ def __init__(self, *args, **kwargs):
def get_process_class_definitions(self, write=True):
replace_dict = super().get_process_class_definitions(write=False)
replace_dict['process_lines'] = replace_dict['process_lines'].replace('\n','\n ')
replace_dict['nwavefunc'] = self.matrix_elements[0].get_number_of_wavefunctions() # this is the correct P1-specific nwf, now in CPPProcess.h (#644)
file = self.read_template_file(self.process_class_template) % replace_dict # HACK! ignore write=False case
file = '\n'.join( file.split('\n')[8:] ) # skip first 8 lines in process_class.inc (copyright)
return file
Expand Down Expand Up @@ -1335,7 +1336,7 @@ def edit_mgonGPU(self):
replace_dict['nincoming'] = nincoming
replace_dict['noutcoming'] = nexternal - nincoming
replace_dict['nbhel'] = self.matrix_elements[0].get_helicity_combinations() # number of helicity combinations
replace_dict['nwavefunc'] = self.matrix_elements[0].get_number_of_wavefunctions()
###replace_dict['nwavefunc'] = self.matrix_elements[0].get_number_of_wavefunctions() # this is the correct P1-specific nwf, now in CPPProcess.h (#644)
replace_dict['wavefuncsize'] = 6
if self.include_multi_channel:
replace_dict['mgongpu_supports_multichannel'] = '#define MGONGPU_SUPPORTS_MULTICHANNEL 1'
Expand Down

0 comments on commit 8948d72

Please sign in to comment.