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 SubroutinesDescriptionChange the file system mode of file nam. If successful, a value of 0 is returned; otherwise, anerror code is returned.9.1.7. ctimeReturn the system time.Synopsischaracter*(*) function ctime(stime)integer*8 stimeDescriptionctime converts a system time in stime to its ASCII form and returns the converted form. Neithernewline nor NULL is included.9.1.8. dateReturn the date.Synopsischaracter*(*) function date(buf)DescriptionReturns the ASCII representation of the current date. <strong>The</strong> format returned is dd-mmm-yy.9.1.9. error functions<strong>The</strong> functions erf and derf return the error function of x. erfc and derfc return 1.0-erf(x) and 1.0-derf(x), respectively.Synopsisreal function erf(x)real xreal function erfc(x)real xdouble precision function derf(x)double precision xdouble precision function derfc(x)double precision x9.1.10. etime, dtimeGet the elapsed time.<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 192

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

Saved successfully!

Ooh no, something went wrong!