142
142
character(512) path
143
143
character(512) dummy
144
character(512) epath ! path of the executable
145
146
character(512) prefix,fpath
146
147
character(17) nameToCheck
147
148
parameter (nameToCheck='MadLoopParams.dat')
186
187
prefix='../MadLoop5_resources/'
187
188
call joinPath(prefix,nameToCheck,fpath)
188
OPEN(1, FILE=fpath, ERR=66, STATUS='OLD',ACTION='READ')
189
OPEN(1, FILE=fpath, ERR=3, STATUS='OLD',ACTION='READ')
195
c Try to automatically find the path from the executable location
196
c particularly usefull in gridpack readonly mode
198
call getarg(0,path) !path is the PATH to the madevent executable (either global or from launching directory)
199
pos = index(path,'/',.true.)
201
call joinPath(prefix,nameToCheck,fpath)
202
write(*,*) 'test', fpath
203
OPEN(1, FILE=fpath, ERR=4, STATUS='OLD',ACTION='READ')
208
prefix= prefix // '/MadLoop5_resources/'
209
call joinPath(prefix,nameToCheck,fpath)
210
write(*,*) 'test', fpath
211
OPEN(1, FILE=fpath, ERR=5, STATUS='OLD',ACTION='READ')
216
prefix= path(:pos) // '/../MadLoop5_resources/'
217
call joinPath(prefix,nameToCheck,fpath)
218
write(*,*) 'test', fpath
219
OPEN(1, FILE=fpath, ERR=6, STATUS='OLD',ACTION='READ')
193
225
c We could not automatically find the auxiliary files
195
227
write(*,*) 'ERROR: MadLoop5 could not automatically find the file MadLoopParams.dat.'
216
248
C Check that the FilePath set is correct
217
249
call joinPath(MLPath,nameToCheck,fpath)
218
OPEN(1, FILE=fpath, ERR=3, STATUS='OLD',ACTION='READ')
250
OPEN(1, FILE=fpath, ERR=33, STATUS='OLD',ACTION='READ')
223
255
write(*,*) 'ERROR: The MadLoop5 auxiliary files could not be found in ',MLPath
607
639
INTEGER MAXNREF_EVALS
608
640
PARAMETER (MAXNREF_EVALS=100)
609
INTEGER, DIMENSION(MAXNREF_EVALS), INTENT(IN) :: x
641
Double Precision, DIMENSION(MAXNREF_EVALS), INTENT(IN) :: x
610
642
INTEGER, INTENT(IN) :: mStart, mEnd
611
643
INTEGER :: Minimum
612
644
INTEGER :: Location