02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 12-3 libU77 routines (Continued)<br />

Name Description and signature<br />

NUM_<br />

THREADS<br />

BLAS and libU77 libraries<br />

libU77 routines<br />

Returns the total number of threads that the process creates at initiation,<br />

regardless of how many are idle or active.<br />

INTEGER FUNCTION NUM_THREADS()<br />

PERROR Retrieves system error messages. PERROR writes a message to <strong>HP</strong> <strong>Fortran</strong><br />

logical unit 7 for the last detected system error.<br />

SUBROUTINE PERROR (string)<br />

CHARACTER(LEN=*) :: string<br />

PUTC Writes a character to the file specified by <strong>HP</strong> <strong>Fortran</strong> logical unit number 6,<br />

bypassing normal <strong>HP</strong> <strong>Fortran</strong> I/O.<br />

INTEGER FUNCTION PUTC (char)<br />

CHARACTER char<br />

QSORT Uses the quick-sort algorithm to sort the elements in a one-dimensional<br />

array.<br />

SUBROUTINE QSORT (array, len, isize, compar)<br />

INTEGER :: len, isize<br />

EXTERNAL compar<br />

INTEGER(2) compar<br />

RENAME Renames a file to the specified new name.<br />

INTEGER FUNCTION RENAME (from, to)<br />

CHARACTER(LEN=*) :: from, to<br />

SIGNAL Allowsyoutochangetheactionforasignal.<br />

INTEGER FUNCTION SIGNAL (signum, proc, flag)<br />

INTEGER :: signum, flag<br />

EXTERNAL proc<br />

SLEEP Suspends the execution of a process for a specified interval.<br />

SUBROUTINE SLEEP (itime)<br />

INTEGER :: itime<br />

Chapter 12 617

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

Saved successfully!

Ooh no, something went wrong!