10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3F Functions and VAX Subroutinesddis the two-digit day of the monthmmmis the three-character abbreviation of the monthyyis the last two digits of the yearEXIT<strong>The</strong> EXIT subroutine causes program termination, closes all open files, and returns control to theoperating system. It has the form:CALL EXIT[(exit_status)]Where:exit_statusis an optional integer argument used to specify the image exit value.GETARG<strong>The</strong> GETARG subroutine returns the Nth command line argument in character variable ARG. ForN equal to zero, the name of the program is returned.SUBROUTINE GETARG(N, ARG)INTEGER*4 NCHARACTER*(*) ARGIARGC<strong>The</strong> IARGC subroutine returns the number of command line arguments following the programname.INTEGER*4 FUNCTION IARGC()IDATE<strong>The</strong> IDATE subroutine returns three integer values representing the current month, day, and year.It has the form:CALL IDATE(IMONTH, IDAY, IYEAR)If the current date were October 9, 2004, the values of the integer variables upon return would be:IMONTH = 10IDAY = 9IYEAR = 04MVBITS<strong>The</strong> MVBITS subroutine transfers a bit field from one storage location (source) to a field in asecond storage location (destination). MVBITS transfers a3 bits from positions a2 through (a2 +a3 - 1) of the source, src, to positions a5 through (a5 + a3 - 1) of the destination, dest. Other bitsof the destination location remain unchanged. <strong>The</strong> values of (a2 + a3) and (a5 + a3) must be less<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!