Package aloha :: Module aloha_writers :: Class ALOHAWriterForFortran
[hide private]
[frames] | no frames]

Class ALOHAWriterForFortran

source code

WriteALOHA --+
             |
            ALOHAWriterForFortran
Known Subclasses:

routines for writing out Fortran

Nested Classes [hide private]
  writer
Routines for writing fortran lines.
Instance Methods [hide private]
 
get_fct_format(self, fct)
Put the function in the correct format
source code
 
get_header_txt(self, name=None, couplings=None, **opt)
Define the Header of the fortran file.
source code
 
get_declaration_txt(self)
Prototype for how to write the declaration of variable Include the symmetry line (entry FFV_2)
source code
 
get_momenta_txt(self)
Define the Header of the fortran file.
source code
 
get_one_momenta_def(self, i, strfile) source code
 
shift_indices(self, match)
shift the indices for non impulsion object
source code
 
change_var_format(self, name)
Formatting the variable name to Fortran format
source code
 
change_number_format(self, number)
Formating the number
source code
 
define_expression(self)
Define the functions in a 100% way
source code
 
define_symmetry(self, new_nb, couplings=None) source code
 
get_foot_txt(self)
Prototype for language specific footer
source code
 
write_combined(self, lor_names, mode='self', offshell=None)
Write routine for combine ALOHA call (more than one coupling)
source code

Inherited from WriteALOHA: __init__, define_argument_list, define_content, get_P_sign, get_momentum_conservation_sign, make_call_list, make_declaration_list, pass_to_HELAS, write, write_MultContainer, write_MultVariable, write_indices_part, write_obj, write_obj_Add, write_variable, write_variable_id

Class Variables [hide private]
  extension = '.f'
  type2def = {'complex': 'complex*16', 'double': 'real*8', 'int'...
  format = 'd0'

Inherited from WriteALOHA: power_symbol, type_to_size, type_to_variable

Method Details [hide private]

get_header_txt(self, name=None, couplings=None, **opt)

source code 

Define the Header of the fortran file.

Overrides: WriteALOHA.get_header_txt

get_declaration_txt(self)

source code 

Prototype for how to write the declaration of variable Include the symmetry line (entry FFV_2)

Overrides: WriteALOHA.get_declaration_txt

get_momenta_txt(self)

source code 

Define the Header of the fortran file. This include

  • momentum conservation
  • definition of the impulsion
Overrides: WriteALOHA.get_momenta_txt

change_var_format(self, name)

source code 

Formatting the variable name to Fortran format

Overrides: WriteALOHA.change_var_format

change_number_format(self, number)

source code 

Formating the number

Overrides: change_number_format

get_foot_txt(self)

source code 

Prototype for language specific footer

Overrides: WriteALOHA.get_foot_txt
(inherited documentation)

Class Variable Details [hide private]

type2def

Value:
{'complex': 'complex*16', 'double': 'real*8', 'int': 'integer*4'}