~maddevelopers/mg5amcnlo/3.0.1

« back to all changes in this revision

Viewing changes to vendor/IREGI/src/oneloop/src/avh_olo.py

  • Committer: Marco Zaro
  • Date: 2014-01-27 16:54:10 UTC
  • mfrom: (78.124.55 MG5_aMC_2.1)
  • Revision ID: marco.zaro@gmail.com-20140127165410-5lma8c2hzbzm426j
merged with lp:~maddevelopers/madgraph5/MG5_aMC_2.1 r 267

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
import re,sys
 
3
import avh_pc_olo
 
4
 
 
5
sysargv = sys.argv
 
6
srcdir = re.sub(r'avh_olo\.py','',sysargv[0])
 
7
del sysargv[0]
 
8
 
 
9
kindmod = ''
 
10
dpkind = ''
 
11
qpkind = ''
 
12
ddtype = ''
 
13
qdtype = ''
 
14
mptype = ''
 
15
tlevel = ''
 
16
cppintf = ''
 
17
for option in sysargv:
 
18
    if   re.match(r'kindmod',option): kindmod = re.sub(r'kindmod=','',option)
 
19
    elif re.match(r'dpkind' ,option): dpkind  = re.sub(r'dpkind=' ,'',option) 
 
20
    elif re.match(r'qpkind' ,option): qpkind  = re.sub(r'qpkind=' ,'',option) 
 
21
    elif re.match(r'ddtype' ,option): ddtype  = re.sub(r'ddtype=' ,'',option) 
 
22
    elif re.match(r'qdtype' ,option): qdtype  = re.sub(r'qdtype=' ,'',option) 
 
23
    elif re.match(r'mptype' ,option): mptype  = re.sub(r'mptype=' ,'',option) 
 
24
    elif re.match(r'tlevel' ,option): tlevel  = re.sub(r'tlevel=' ,'',option) 
 
25
    elif re.match(r'cppintf',option): cppintf = re.sub(r'cppintf=','',option) 
 
26
    else:
 
27
        avh_pc.prnt('')
 
28
        avh_pc.prnt('usage: python avh_pc_olo.py [dpkind="kind"]')
 
29
        avh_pc.prnt('                            [qpkind="kind"]')
 
30
        avh_pc.prnt('                            [kindmod="module"]')
 
31
        avh_pc.prnt('                            [ddtype="type"]')
 
32
        avh_pc.prnt('                            [qdtype="type"]')
 
33
        avh_pc.prnt('                            [mptype="type"]')
 
34
        avh_pc.prnt('                            [tlevel="yes"]')
 
35
        avh_pc.prnt('                            [cppintf="yes"]')
 
36
        avh_pc.prnt('       If no option is provided, dpkind="kind(1d0)" is set')
 
37
        avh_pc.prnt('       by default. However, dpkind must be provided expli-')
 
38
        avh_pc.prnt('       citly if to be combined with qpkind and/or mptype.')
 
39
        avh_pc.prnt('       Setting any option to "" is equivalent to omitting.')
 
40
        avh_pc.prnt('')
 
41
        sys.exit()
 
42
 
 
43
filename = avh_pc_olo.full( srcdir ,dpkind,qpkind,kindmod
 
44
                                   ,ddtype,qdtype,mptype
 
45
                                   ,tlevel,cppintf )