[1] | 1 | SUBROUTINE local_tremain_ini |
---|
| 2 | |
---|
[1036] | 3 | !--------------------------------------------------------------------------------! |
---|
| 4 | ! This file is part of PALM. |
---|
| 5 | ! |
---|
| 6 | ! PALM is free software: you can redistribute it and/or modify it under the terms |
---|
| 7 | ! of the GNU General Public License as published by the Free Software Foundation, |
---|
| 8 | ! either version 3 of the License, or (at your option) any later version. |
---|
| 9 | ! |
---|
| 10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
| 11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
| 12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
| 13 | ! |
---|
| 14 | ! You should have received a copy of the GNU General Public License along with |
---|
| 15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
| 16 | ! |
---|
| 17 | ! Copyright 1997-2012 Leibniz University Hannover |
---|
| 18 | !--------------------------------------------------------------------------------! |
---|
| 19 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[1] | 21 | ! ----------------- |
---|
[1093] | 22 | ! |
---|
[1] | 23 | ! |
---|
| 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
[3] | 26 | ! $Id: local_tremain_ini.f90 1093 2013-02-02 12:58:49Z raasch $ |
---|
[83] | 27 | ! |
---|
[1093] | 28 | ! 1092 2013-02-02 11:24:22Z raasch |
---|
| 29 | ! unused variables removed |
---|
| 30 | ! |
---|
[1037] | 31 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 32 | ! code put under GPL (PALM 3.9) |
---|
| 33 | ! |
---|
[226] | 34 | ! 225 2009-01-26 14:44:20Z raasch |
---|
| 35 | ! Type of count and count_rate changed to INTEGER(8) in order to avoid out of |
---|
| 36 | ! range problems (which result in measured negative time intervals) |
---|
| 37 | ! |
---|
[83] | 38 | ! 82 2007-04-16 15:40:52Z raasch |
---|
| 39 | ! Cpp-directive lctit renamed lc |
---|
| 40 | ! |
---|
[3] | 41 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
| 42 | ! |
---|
[1] | 43 | ! Revision 1.13 2007/02/11 13:07:03 raasch |
---|
| 44 | ! Allowed cpu limit is now read from file instead of reading the value from |
---|
| 45 | ! environment variable (see routine parin) |
---|
| 46 | ! |
---|
| 47 | ! Revision 1.1 1998/03/18 20:15:05 raasch |
---|
| 48 | ! Initial revision |
---|
| 49 | ! |
---|
| 50 | ! |
---|
| 51 | ! Description: |
---|
| 52 | ! ------------ |
---|
| 53 | ! Initialization of CPU-time measurements for different operating systems |
---|
| 54 | !------------------------------------------------------------------------------! |
---|
| 55 | |
---|
| 56 | USE control_parameters |
---|
| 57 | USE cpulog |
---|
| 58 | |
---|
| 59 | IMPLICIT NONE |
---|
| 60 | |
---|
| 61 | #if defined( __ibm ) |
---|
| 62 | INTEGER(8) :: IRTC |
---|
[82] | 63 | #elif defined( __lc ) |
---|
[225] | 64 | INTEGER(8) :: count, count_rate |
---|
[1] | 65 | #endif |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | ! |
---|
| 69 | !-- Get initial wall clock time |
---|
| 70 | #if defined( __ibm ) |
---|
| 71 | |
---|
| 72 | initial_wallclock_time = IRTC( ) * 1E-9 |
---|
| 73 | |
---|
[82] | 74 | #elif defined( __lc ) |
---|
[1] | 75 | |
---|
| 76 | CALL SYSTEM_CLOCK( count, count_rate ) |
---|
| 77 | initial_wallclock_time = REAL( count ) / REAL( count_rate ) |
---|
| 78 | |
---|
| 79 | #else |
---|
| 80 | ! |
---|
| 81 | !-- So far, nothing is done on these machines |
---|
| 82 | #endif |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | END SUBROUTINE local_tremain_ini |
---|