140
140
CHARACTER(512) PATH
141
141
CHARACTER(512) DUMMY
142
CHARACTER(512) EPATH ! path of the executable
143
144
CHARACTER(512) PREFIX,FPATH
144
145
CHARACTER(17) NAMETOCHECK
145
146
PARAMETER (NAMETOCHECK='MadLoopParams.dat')
187
188
PREFIX='../MadLoop5_resources/'
188
189
CALL JOINPATH(PREFIX,NAMETOCHECK,FPATH)
189
OPEN(1, FILE=FPATH, ERR=66, STATUS='OLD',ACTION='READ')
190
OPEN(1, FILE=FPATH, ERR=3, STATUS='OLD',ACTION='READ')
196
C Try to automatically find the path from the executable
198
C particularly usefull in gridpack readonly mode
200
CALL GETARG(0,PATH) !path is the PATH to the madevent executable (either global or from launching directory)
201
POS = INDEX(PATH,'/',.TRUE.)
203
CALL JOINPATH(PREFIX,NAMETOCHECK,FPATH)
204
WRITE(*,*) 'test', FPATH
205
OPEN(1, FILE=FPATH, ERR=4, STATUS='OLD',ACTION='READ')
210
PREFIX= PREFIX // '/MadLoop5_resources/'
211
CALL JOINPATH(PREFIX,NAMETOCHECK,FPATH)
212
WRITE(*,*) 'test', FPATH
213
OPEN(1, FILE=FPATH, ERR=5, STATUS='OLD',ACTION='READ')
218
PREFIX= PATH(:POS) // '/../MadLoop5_resources/'
219
CALL JOINPATH(PREFIX,NAMETOCHECK,FPATH)
220
WRITE(*,*) 'test', FPATH
221
OPEN(1, FILE=FPATH, ERR=6, STATUS='OLD',ACTION='READ')
194
227
C We could not automatically find the auxiliary files
196
229
WRITE(*,*) 'ERROR: MadLoop5 could not automatically find the'
222
255
C Check that the FilePath set is correct
223
256
CALL JOINPATH(MLPATH,NAMETOCHECK,FPATH)
224
OPEN(1, FILE=FPATH, ERR=3, STATUS='OLD',ACTION='READ')
257
OPEN(1, FILE=FPATH, ERR=33, STATUS='OLD',ACTION='READ')
229
262
WRITE(*,*) 'ERROR: The MadLoop5 auxiliary files could not be'
615
648
INTEGER MAXNREF_EVALS
616
649
PARAMETER (MAXNREF_EVALS=100)
617
INTEGER, DIMENSION(MAXNREF_EVALS), INTENT(IN) :: X
650
DOUBLE PRECISION, DIMENSION(MAXNREF_EVALS), INTENT(IN) :: X
618
651
INTEGER, INTENT(IN) :: MSTART, MEND
619
652
INTEGER :: MINIMUM
620
653
INTEGER :: LOCATION