Changeset 1322 for palm/trunk/SOURCE/cpulog.f90
- Timestamp:
- Mar 20, 2014 4:38:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/cpulog.f90
r1321 r1322 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! REAL functions provided with KIND-attribute 23 23 ! 24 24 ! Former revisions: … … 165 165 #if defined( __lc ) || defined( __decalpha ) || defined( __nec ) 166 166 CALL SYSTEM_CLOCK( count, count_rate ) 167 mtime = REAL( count ) / REAL( count_rate)167 mtime = REAL( count, KIND=wp ) / REAL( count_rate, KIND=wp ) 168 168 #elif defined( __ibm ) 169 mtime = IRTC( ) * 1E-9 169 mtime = IRTC( ) * 1E-9_wp 170 170 #else 171 171 message_string = 'no time measurement defined on this host' … … 322 322 !-- Get total time in order to calculate CPU-time per gridpoint and timestep 323 323 IF ( nr_timesteps_this_run /= 0 ) THEN 324 average_cputime = log_point(1)%sum / REAL( (nx+1) * (ny+1) * nz ) / &325 REAL( nr_timesteps_this_run ) * 1E6! in micro-sec324 average_cputime = log_point(1)%sum / REAL( (nx+1) * (ny+1) * nz, KIND=wp ) / & 325 REAL( nr_timesteps_this_run, KIND=wp ) * 1E6_wp ! in micro-sec 326 326 ELSE 327 327 average_cputime = -1.0
Note: See TracChangeset
for help on using the changeset viewer.