~maddevelopers/mg5amcnlo/3.4.0

« back to all changes in this revision

Viewing changes to madgraph/iolibs/export_fks.py

  • Committer: olivier-mattelaer
  • Date: 2022-04-12 16:08:02 UTC
  • Revision ID: olivier-mattelaer-20220412160802-fx51bknbq2my0wye
avoid issue with coupling_order longer than three letter and if the line is slightly too long

Show diffs side-by-side

added added

removed removed

Lines of Context:
1291
1291
            pass
1292
1292
 
1293
1293
        amp_split_size=len(amp_split_orders)
1294
 
 
1295
1294
        text = '! The orders to be integrated for the Born and at NLO\n'
1296
1295
        text += 'integer nsplitorders\n'
1297
1296
        text += 'parameter (nsplitorders=%d)\n' % len(split_orders)
1298
 
        text += 'character*3 ordernames(nsplitorders)\n'
 
1297
        text += 'character*%d ordernames(nsplitorders)\n' % max([len(o) for o in split_orders])
1299
1298
        text += 'data ordernames / %s /\n' % ', '.join(['"%3s"' % o for o in split_orders])
1300
1299
        text += 'integer born_orders(nsplitorders), nlo_orders(nsplitorders)\n'
1301
1300
        text += '! the order of the coupling orders is %s\n' % ', '.join(split_orders)
1315
1314
        text += 'double precision amp_split(amp_split_size)\n'
1316
1315
        text += 'double complex amp_split_cnt(amp_split_size,2,nsplitorders)\n'
1317
1316
        text += 'common /to_amp_split/amp_split, amp_split_cnt\n'
1318
 
 
 
1317
        writer.line_length=132
1319
1318
        writer.writelines(text)
1320
1319
 
1321
1320
        return amp_split_orders, amp_split_size, amp_split_size_born