Keywords: gildas-prog

Next: Linking on Linux: TO Up: The messaging facility Previous: The messaging facility Contents Index

## Writing on files: Fortran logical unit number

SIC has the following usage of Fortran logical unit numbers:

              5        Input of Commands, shareable
              6        Output of messages, shareable
              50 to 99 Used by SIC_GETLUN

Units 5 and 6 are respectively accessed via usual `READ` and `WRITE` instructions.

Units 5 and 6 are respectively accessed via usual `READ` and `WRITE` instructions. If you wish to be able to reassign the input or/and output of your program to a file, you should also make your input and output in the same way (or use the `SIC_WPR, SIC_WPRN` routine). If you mix `READ(5,format)` and `WRITE(6,format)` instructions with `PRINT, READ(*,format) or WRITE(*,format)` instructions, you might experience some problem. Mixing with `C` output (`printf` routine for example) may yield to disordered output because of buffering. Use of routine `GAGOUT` , or of the messaging facility, is recommended to printout information.

The monitor uses additional logical units for the `LOG` file, for opening temporary files and for active procedures. These units are taken in the range 50 to 99. Units 50 to 99 are assumed to be available for the routine `SIC_GETLUN` . This subroutine returns the next available logical unit in this range, and keeps track of their usage. Conflict may occur if the user directly opens a file under a unit in this range without allocating the unit through a call to `SIC_GETLUN`. Other units are never used by SIC and other GILDAS programs.

Next: Linking on Linux: TO Up: The messaging facility Previous: The messaging facility Contents Index