-
Notifications
You must be signed in to change notification settings - Fork 4
/
mninpu.F
47 lines (47 loc) · 1.35 KB
/
mninpu.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
43
44
45
46
47
*
* $Id: mninpu.F,v 1.1.1.1 2000/06/08 11:19:20 andras Exp $
*
* $Log: mninpu.F,v $
* Revision 1.1.1.1 2000/06/08 11:19:20 andras
* import of MINUIT from CERNlib 2000
*
* Revision 1.1.1.1 1996/03/07 14:31:30 mclareni
* Minuit
*
*
#include "minuit/pilot.h"
SUBROUTINE MNINPU(IUNIT,IERR)
#include "minuit/d506dp.inc"
CC called by the user to SET INPUT to IUNIT,
CC an alternative to MNSTIN where the user can specify just
CC a logical unit number and he is not interrogated about
CC open files and rewinding, all that is the responsibility
CC of the user and cannot be fixed interactively.
#include "minuit/d506cm.inc"
C
IERR = 0
C IUNIT = 0, revert to previous input file
IF (IUNIT .EQ. 0) THEN
IF (NSTKRD .EQ. 0) THEN
WRITE (ISYSWR, '(A)') ' CALL TO MNINPU(0) IGNORED'
WRITE (ISYSWR, '(A)') ' ALREADY READING FROM PRIMARY INPUT'
ELSE
ISYSRD = ISTKRD(NSTKRD)
NSTKRD = NSTKRD - 1
ENDIF
C
C new input file
ELSE
IF (NSTKRD .GE. MAXSTK) THEN
WRITE (ISYSWR, '(A)') ' INPUT FILE STACK SIZE EXCEEDED.'
GO TO 800
ENDIF
NSTKRD = NSTKRD + 1
ISTKRD(NSTKRD) = ISYSRD
ISYSRD = IUNIT
ENDIF
C
RETURN
800 IERR = 1
RETURN
END