-
Notifications
You must be signed in to change notification settings - Fork 4
/
mneval.F
42 lines (42 loc) · 1.28 KB
/
mneval.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
*
* $Id: mneval.F,v 1.1.1.1 2000/06/08 11:19:19 andras Exp $
*
* $Log: mneval.F,v $
* Revision 1.1.1.1 2000/06/08 11:19:19 andras
* import of MINUIT from CERNlib 2000
*
* Revision 1.1.1.1 1996/03/07 14:31:29 mclareni
* Minuit
*
*
#include "minuit/pilot.h"
SUBROUTINE MNEVAL(FCN,ANEXT,FNEXT,IEREV,FUTIL)
#include "minuit/d506dp.inc"
CC Evaluates the function being analyzed by MNCROS, which is
CC generally the minimum of FCN with respect to all remaining
CC variable parameters. Common block /MN7XCR/ contains the
CC data necessary to know the values of U(KE1CR) and U(KE2CR)
CC to be used, namely U(KE1CR) = XMIDCR + ANEXT*XDIRCR
CC and (if KE2CR .NE. 0) U(KE2CR) = YMIDCR + ANEXT*YDIRCR
#include "minuit/d506cm.inc"
CC
EXTERNAL FCN,FUTIL
U(KE1CR) = XMIDCR + ANEXT*XDIRCR
IF ( KE2CR .NE. 0) U(KE2CR) = YMIDCR + ANEXT*YDIRCR
CALL MNINEX(X)
NPARX = NPAR
CALL FCN(NPARX,GIN,FNEXT,U,4,FUTIL)
NFCN = NFCN + 1
IEREV = 0
IF (NPAR .GT. 0) THEN
ITAUR = 1
AMIN = FNEXT
ISW(1) = 0
CALL MNMIGR(FCN,FUTIL)
ITAUR = 0
FNEXT = AMIN
IF (ISW(1) .GE. 1) IEREV = 1
IF (ISW(4) .LT. 1) IEREV = 2
ENDIF
RETURN
END