SUBROUTINE SULUN 1,1 #if defined (DOC) C C**** *SULUN * - Routine to initialize all logical units * C Author: P. Gauthier *ARMA/AES June 9, 1992 * *Revision: * . P. Koclas *CMC/CMSV January 1997 * - Call to SUFILNAM to initialize file names and open them * . J. St-James *CMC/CMSV June 1997 * - Call to SUFILNAM instead of naming and opening the * laloobs file. * . S. Pellerin *ARMA/AES March 2000 * - Add of nulstato for ouput background statistics * . S. Pellerin *ARMA/SMC May 2000 * - Logical unit cleanup * . Bin He *ARMA/MSC Apr. 2008. * - Reading multiple trial files . * . S. Pellerin, ARMA, August 2008 * - initialisation on ninmpg for dynamic assignation * of logical unit * . Y.J. Rochon *ARQX/MSC May 2005 * - Added species stats file unit identifier NULBGSTR * * --------------------------------------------------------------------- #endif IMPLICIT NONE #include "comlun.cdk"
C INTEGER IERR, FNOM, FSTOUV, JFILE EXTERNAL FNOM, FSTOUV C C 1. Initialize COMLUN. C ------------------ C 100 CONTINUE NULOUT = 6 NULNAM = 0 NULSTAT = 0 NULBGST = 0 NULBGSTR= 0 NTRIALS = 1 NINMPG = 0 NULSTD = 0 NULINCLR=0 NULINCHR=0 C CALL SUFILNAM
c WRITE(UNIT=NULOUT,FMT=9000)nulout,nulnam,ninmpg,nulstat,nulbgst & ,nulstd,nulinclr,nulinchr,nulbgstr 9000 FORMAT(//,6X,"SULUN- ASSIGNMENTS OF VARIATIONAL LOGICAL UNITS",/ S ,10X,' NULOUT = ',I3,' NULNAM = ',I3,/ S ,10X,' NINMPG = ',I3,' NULSTAT = ',I3,' NULBGST = ',I3 S ,10X,' NULSTD = ',I3,' NULINCLR = ',I3,' NULINCHR = ',I3,/ S ,10X,' NULBGSTR= ',I3) C C --------------------------------------------------------------- C RETURN END