source: Sophya/trunk/SophyaExt/CodeMinuit/code/mnpout.F

Last change on this file was 2403, checked in by cmv, 22 years ago

Creation du module de code source de MINUIT (CERNLIB) extrait par CMV

cmv 11/06/2003

File size: 2.0 KB
Line 
1*
2* $Id: mnpout.F,v 1.1.1.1 2003-06-11 14:18:29 cmv Exp $
3*
4* $Log: not supported by cvs2svn $
5* Revision 1.1.1.1 1996/03/07 14:31:31 mclareni
6* Minuit
7*
8*
9#include "minuit/pilot.h"
10 SUBROUTINE MNPOUT(IUEXT,CHNAM,VAL,ERR,XLOLIM,XUPLIM,IUINT)
11#include "minuit/d506dp.inc"
12CC User-called
13CC Provides the user with information concerning the current status
14CC of parameter number IUEXT. Namely, it returns:
15CC CHNAM: the name of the parameter
16CC VAL: the current (external) value of the parameter
17CC ERR: the current estimate of the parameter uncertainty
18CC XLOLIM: the lower bound (or zero if no limits)
19CC XUPLIM: the upper bound (or zero if no limits)
20CC IUINT: the internal parameter number (or zero if not variable,
21CC or negative if undefined).
22CC Note also: If IUEXT is negative, then it is -internal parameter
23CC number, and IUINT is returned as the EXTERNAL number.
24CC Except for IUINT, this is exactly the inverse of MNPARM
25CC
26#include "minuit/d506cm.inc"
27 CHARACTER*(*) CHNAM
28 XLOLIM = 0.
29 XUPLIM = 0.
30 ERR = 0.
31 IF (IUEXT .EQ. 0) GO TO 100
32 IF (IUEXT .LT. 0) THEN
33C internal parameter number specified
34 IINT = -IUEXT
35 IF (IINT .GT. NPAR) GO TO 100
36 IEXT = NEXOFI(IINT)
37 IUINT = IEXT
38 ELSE
39C external parameter number specified
40 IEXT = IUEXT
41 IF (IEXT .EQ. 0) GO TO 100
42 IF (IEXT .GT. NU) GO TO 100
43 IINT = NIOFEX(IEXT)
44 IUINT = IINT
45 ENDIF
46C in both cases
47 NVL = NVARL(IEXT)
48 IF (NVL .LT. 0) GO TO 100
49 CHNAM = CPNAM(IEXT)
50 VAL = U(IEXT)
51 IF (IINT .GT. 0) ERR = WERR(IINT)
52 IF (NVL .EQ. 4) THEN
53 XLOLIM = ALIM(IEXT)
54 XUPLIM = BLIM(IEXT)
55 ENDIF
56 RETURN
57C parameter is undefined
58 100 IUINT = -1
59 CHNAM = 'undefined'
60 VAL = 0.
61 RETURN
62 END
Note: See TracBrowser for help on using the repository browser.