source: palm/trunk/SOURCE/local_tremain_ini.f90 @ 1037

Last change on this file since 1037 was 1037, checked in by raasch, 9 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1 SUBROUTINE local_tremain_ini
2
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!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: local_tremain_ini.f90 1037 2012-10-22 14:10:22Z raasch $
27!
28! 1036 2012-10-22 13:43:42Z raasch
29! code put under GPL (PALM 3.9)
30!
31! 225 2009-01-26 14:44:20Z raasch
32! Type of count and count_rate changed to INTEGER(8) in order to avoid out of
33! range problems (which result in measured negative time intervals)
34!
35! 82 2007-04-16 15:40:52Z raasch
36! Cpp-directive lctit renamed lc
37!
38! RCS Log replace by Id keyword, revision history cleaned up
39!
40! Revision 1.13  2007/02/11 13:07:03  raasch
41! Allowed cpu limit is now read from file instead of reading the value from
42! environment variable (see routine parin)
43!
44! Revision 1.1  1998/03/18 20:15:05  raasch
45! Initial revision
46!
47!
48! Description:
49! ------------
50! Initialization of CPU-time measurements for different operating systems
51!------------------------------------------------------------------------------!
52
53    USE control_parameters
54    USE cpulog
55
56    IMPLICIT NONE
57
58#if defined( __ibm )
59    CHARACTER (LEN=10) ::  value_chr
60    INTEGER            ::  idum
61    INTEGER(8)         ::  IRTC
62#elif defined( __lc )
63    CHARACTER (LEN=10) ::  value_chr
64    INTEGER            ::  idum
65    INTEGER(8)         ::  count, count_rate
66#endif
67
68
69!
70!-- Get initial wall clock time
71#if defined( __ibm )
72
73    initial_wallclock_time = IRTC( ) * 1E-9
74
75#elif defined( __lc )
76
77    CALL SYSTEM_CLOCK( count, count_rate )
78    initial_wallclock_time = REAL( count ) / REAL( count_rate )
79
80#else
81!
82!-- So far, nothing is done on these machines
83#endif
84
85
86 END SUBROUTINE local_tremain_ini
Note: See TracBrowser for help on using the repository browser.