Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ def define_expression(self):
else:
mydict['pre_%s' %c] = ''
mydict['post_%s'%c] = ''
# This affects '( *vertex ) = ' in HelAmps_sm.cc
out.write(' %(pre_vertex)svertex%(post_vertex)s = %(pre_coup)sCOUP%(post_coup)s * %(num)s;\n' % mydict)
# This affects '( *vertex ) = ' in HelAmps_sm.cc
out.write(' %(pre_vertex)svertex%(post_vertex)s = Ccoeff * %(pre_coup)sCOUP%(post_coup)s * %(num)s;\n' % mydict)
else:
mydict= {}
if self.type2def['pointer_vertex'] in ['*']:
Expand Down Expand Up @@ -464,6 +464,10 @@ def define_expression(self):
else:
mydict['declnamedenom'] = 'denom' # AV
self.declaration.add(('complex','denom'))

# need to add the unary operator before the coupling
if mydict['coup'] != 'one': # but in case where the coupling is not used (one)
mydict['pre_coup'] = 'Ccoeff * %s' % mydict['pre_coup']
if not aloha.complex_mass:
# This affects 'denom = COUP' in HelAmps_sm.cc
if self.routine.denominator:
Expand Down