Programs of PHOENICS, namely SATELLITE, EARTH, PHOTON, AUTOPLOT and PINTO call the subroutines OPENZZ and CLOSZZ to connect and disconnect all disk files accessed during program execution.
These two subroutines are located in the site-dependent file ALSITD.F, in sub-directory d_allpro/d_filsys; and they contain all the types of FORTRAN OPEN and CLOSE statements that the codes require.
The first argument of OPENZZ and CLOSZZ sets the file reference number, which determines the file attributes supplied as data in the program-specific configuration files: SATCON, EARCON, etc. These attributes are:
the name of the file;
the logical unit (LU) number it uses;
the FORTRAN OPEN statement (IOPEN) required for it;
the FORTRAN CLOSE statement (ICLOSE) required for it; and
the record length (LREC) of the file.
The OPEN-statement options supplied in OPENZZ are tabulated below:
IOPEN Arguments of OPEN statement
The CLOSE-statement options supplied in CLOSZZ are tabulated below:
ICLOSE Arguments of ICLOSE statements
SATPRE, EARPRE, GUIPRE, PHOPRE, AUTPRE, and PINPRE are set in CONFIG to the full prefixes for the files kept in the sub-directories under d_phoe16; for example:
CONFIGs, as described in the following
File-name postscripts signify the type of file according to:
DA = direct access;
XX = scratch file.
Files with names which do not end in DA or XX are formatted sequential files.