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

Last change on this file since 1036 was 1036, checked in by raasch, 11 years ago

code has been put under the GNU General Public License (v3)

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