next up previous
Next: Acknowledgments Up: FORTRAN source file Previous: FORTRAN-90 version


Printing the execution times

After successful completion of execution, the code HFODD prints the table of times spent in principal subroutines, as well as the total execution time. Since implementation of the time-checking functions widely varies between compilers and platforms, in the file hfodd.f all references to these functions are commented out and inactive. However, very simple modifications of the source code can easily be performed to activate one of the following options:

  1. Replace all strings "CCPUT" by spaces in order to activate a call to the FORTRAN-90 subroutine CPU_TIME, which returns CPU execution times.

  2. Replace all strings "CETIM" by spaces in order to activate a call to function ETIME, which returns CPU execution times.

  3. Replace all strings "CUNIX" by spaces in order to activate a call to the UNIX function TIME, which returns wall clock execution times.

  4. Replace all strings "CSAL" by spaces in order to activate a call to the SALFORD$^\copyright$ FORTRAN subroutine DCLOCK@, which returns wall clock execution times.

  5. Replace all strings "CF32" by spaces in order to activate a call to the MICROSOFT$^\copyright$ F32 subroutine GETTIM, which returns wall clock execution times.

Other time-checking functions, available to the user, can be analogously called in the subroutine CPUTIM.


next up previous
Next: Acknowledgments Up: FORTRAN source file Previous: FORTRAN-90 version
Jacek Dobaczewski 2004-01-06