EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nextun.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file nextun.F
1 
2  Function nextun()
3 C Returns an unallocated FORTRAN i/o unit.
4  Logical ex
5 C
6  Do 10 n = 10, 300
7  INQUIRE (unit=n, opened=ex)
8  If (.NOT. ex) then
9  nextun = n
10  Return
11  Endif
12  10 Continue
13  stop ' There is no available I/O unit. '
14 C *************************
15  End