Changeset 1808 for palm/trunk/SOURCE
- Timestamp:
- Apr 5, 2016 7:44:00 PM (9 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 deleted
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/Makefile
r1798 r1808 20 20 # Current revisions: 21 21 # ------------------ 22 # 22 # -local_flush, -local_getenv 23 23 # 24 24 # Former revisions: … … 256 256 init_grid.f90 init_masks.f90 init_ocean.f90 \ 257 257 init_pegrid.f90 init_pt_anomaly.f90 init_rankine.f90 init_slope.f90 \ 258 interaction_droplets_ptq.f90 land_surface_model.f90 local_flush.f90\259 local_ getenv.f90 local_stop.f90 local_system.f90 local_tremain.f90 \258 interaction_droplets_ptq.f90 land_surface_model.f90 \ 259 local_stop.f90 local_system.f90 local_tremain.f90 \ 260 260 local_tremain_ini.f90 lpm.f90 lpm_advec.f90 lpm_boundary_conds.f90 \ 261 261 lpm_calc_liquid_water_content.f90 lpm_collision_kernels.f90 \ … … 409 409 interaction_droplets_ptq.o: modules.o mod_kinds.o 410 410 land_surface_model.o: modules.o mod_kinds.o radiation_model.o 411 local_flush.o: mod_kinds.o412 local_getenv.o: modules.o mod_kinds.o413 411 local_stop.o: modules.o mod_kinds.o pmc_interface.o 414 412 local_tremain.o: modules.o cpulog.o mod_kinds.o -
palm/trunk/SOURCE/cpulog.f90
r1683 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! cpu measurements are done with standard FORTRAN routine on every machine 22 22 ! 23 23 ! Former revisions: … … 182 182 TYPE(logpoint) :: log_event !< 183 183 184 #if defined( __lc ) || defined( __decalpha )185 184 INTEGER(idp) :: count !< 186 185 INTEGER(idp) :: count_rate !< 187 #elif defined( __nec )188 INTEGER(iwp) :: count !<189 INTEGER(iwp) :: count_rate !<190 #elif defined( __ibm )191 INTEGER(idp) :: IRTC !<192 #endif193 186 194 187 … … 224 217 ! 225 218 !-- Take current time 226 #if defined( __lc ) || defined( __decalpha ) || defined( __nec )227 219 CALL SYSTEM_CLOCK( count, count_rate ) 228 220 mtime = REAL( count, KIND=wp ) / REAL( count_rate, KIND=wp ) 229 #elif defined( __ibm )230 mtime = IRTC( ) * 1E-9_wp231 #else232 message_string = 'no time measurement defined on this host'233 CALL message( 'cpu_log', 'PA0175', 1, 2, 0, 6, 0 )234 #endif235 221 236 222 ! -
palm/trunk/SOURCE/data_output_3d.f90
r1784 r1808 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! test output removed 22 22 ! 23 23 ! Former revisions: … … 223 223 ENDIF 224 224 ENDIF 225 WRITE(9,*) '___hier4'226 CALL local_flush(9)227 225 228 226 ! -
palm/trunk/SOURCE/header.f90
r1798 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! routine local_flush replaced by FORTRAN statement 22 22 ! 23 23 ! Former revisions: … … 1976 1976 ! 1977 1977 !-- Write buffer contents to disc immediately 1978 CALL local_flush( io )1978 FLUSH( io ) 1979 1979 1980 1980 ! -
palm/trunk/SOURCE/init_1d_model.f90
r1710 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! routine local_flush replaced by FORTRAN statement 22 22 ! 23 23 ! Former revisions: … … 830 830 ! 831 831 !-- Write buffer contents to disc immediately 832 CALL local_flush( 15 )832 FLUSH( 15 ) 833 833 834 834 ENDIF … … 977 977 ! 978 978 !-- Write buffer contents to disc immediately 979 CALL local_flush( 17 )979 FLUSH( 17 ) 980 980 981 981 ENDIF -
palm/trunk/SOURCE/init_coupling.f90
r1683 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! routine local_getenv replaced by standard FORTRAN routine 22 22 ! 23 23 ! Former revisions: … … 71 71 !-- This method is currently not used because the mpiexec command is not 72 72 !-- available on some machines 73 ! CALL local_getenv( 'coupling_mode', 13, coupling_mode, i )73 ! CALL GET_ENVIRONMENT_VARIABLE( 'coupling_mode', coupling_mode, i ) 74 74 ! IF ( i == 0 ) coupling_mode = 'uncoupled' 75 75 ! IF ( coupling_mode == 'ocean_to_atmosphere' ) coupling_char = '_O' -
palm/trunk/SOURCE/init_dvrp.f90
r1683 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! routine local_getenv replaced by standard FORTRAN routine 22 22 ! 23 23 ! Former revisions: … … 783 783 ! 784 784 !-- Find out, if dvrp output shall be done by a dedicated PE 785 CALL local_getenv( 'use_seperate_pe_for_dvrp_output', 31, chr, idummy ) 785 CALL GET_ENVIRONMENT_VARIABLE( 'use_seperate_pe_for_dvrp_output', chr, & 786 idummy ) 786 787 IF ( chr == 'true' ) THEN 787 788 -
palm/trunk/SOURCE/local_tremain.f90
r1683 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! cpu measurements are done with standard FORTRAN routine on every machine 22 22 ! 23 23 ! Former revisions: … … 68 68 IMPLICIT NONE 69 69 70 REAL(wp) :: remaining_time !<71 #if defined( __ibm )72 INTEGER(idp) :: IRTC !<73 REAL(wp) :: actual_wallclock_time !<74 #elif defined( __lc )75 70 INTEGER(idp) :: count !< 76 71 INTEGER(idp) :: count_rate !< 72 77 73 REAL(wp) :: actual_wallclock_time !< 78 #endif 79 80 #if defined( __ibm ) 81 82 actual_wallclock_time = IRTC( ) * 1E-9_wp 83 remaining_time = maximum_cpu_time_allowed - & 84 ( actual_wallclock_time - initial_wallclock_time ) 85 86 #elif defined( __lc ) 74 REAL(wp) :: remaining_time !< 87 75 88 76 CALL SYSTEM_CLOCK( count, count_rate ) … … 91 79 ( actual_wallclock_time - initial_wallclock_time ) 92 80 93 #elif defined( __nec )94 95 CALL TREMAIN( remaining_time )96 remaining_time = remaining_time / tasks_per_node97 98 #else99 100 !101 !-- No stop due to running out of cpu-time on other machines102 remaining_time = 9999999.9_wp103 104 #endif105 106 81 END SUBROUTINE local_tremain -
palm/trunk/SOURCE/local_tremain_ini.f90
r1683 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! cpu measurements are done with standard FORTRAN routine on every machine 22 22 ! 23 23 ! Former revisions: … … 63 63 IMPLICIT NONE 64 64 65 #if defined( __ibm )66 INTEGER(idp) :: IRTC !<67 #elif defined( __lc )68 65 INTEGER(idp) :: count !< 69 66 INTEGER(idp) :: count_rate !< 70 #endif71 72 67 73 68 ! 74 69 !-- Get initial wall clock time 75 #if defined( __ibm )76 77 initial_wallclock_time = IRTC( ) * 1E-9_wp78 79 #elif defined( __lc )80 81 70 CALL SYSTEM_CLOCK( count, count_rate ) 82 71 initial_wallclock_time = REAL( count, KIND=wp ) / REAL( count_rate, KIND=wp ) 83 72 84 #else85 !86 !-- So far, nothing is done on these machines87 #endif88 89 90 73 END SUBROUTINE local_tremain_ini -
palm/trunk/SOURCE/message.f90
r1765 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! routine local_flush replaced by FORTRAN statement 22 22 ! 23 23 ! Former revisions: … … 64 64 !> output_on_pe: -1 - all, else - output on specified PE 65 65 !> file_id: 6 - stdout (*) 66 !> flush : 0 - no action, 1 - flush the respective output buffer66 !> flush_file: 0 - no action, 1 - flush the respective output buffer 67 67 !------------------------------------------------------------------------------! 68 68 SUBROUTINE message( routine_name, message_identifier, requested_action, & 69 message_level, output_on_pe, file_id, flush )69 message_level, output_on_pe, file_id, flush_file ) 70 70 71 71 USE control_parameters, & … … 89 89 90 90 INTEGER(iwp) :: file_id !< 91 INTEGER(iwp) :: flush 91 INTEGER(iwp) :: flush_file !< 92 92 INTEGER(iwp) :: i !< 93 93 INTEGER(iwp) :: message_level !< … … 203 203 ! 204 204 !-- Flush buffer, if requested 205 IF ( flush == 1 ) CALL local_flush( file_id )205 IF ( flush_file == 1 ) FLUSH( file_id ) 206 206 ENDIF 207 207 … … 261 261 TRIM( location ) 262 262 ENDIF 263 CALL local_flush( OUTPUT_UNIT )263 FLUSH( OUTPUT_UNIT ) 264 264 ENDIF 265 265 -
palm/trunk/SOURCE/modules.f90
r1805 r1808 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! MPI module used by default on all machines 22 22 ! 23 23 ! Former revisions: … … 1177 1177 1178 1178 #if defined( __parallel ) 1179 #if defined( __lc ) 1179 #if defined( __mpifh ) 1180 INCLUDE "mpif.h" 1181 #else 1180 1182 USE MPI 1181 #else1182 INCLUDE "mpif.h"1183 1183 #endif 1184 1184 #endif -
palm/trunk/SOURCE/palm.f90
r1784 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! routine local_flush replaced by FORTRAN statement 22 22 ! 23 23 ! Former revisions: … … 278 278 !-- TEST OUTPUT (TO BE REMOVED) 279 279 WRITE(9,*) '*** coupling_mode = "', TRIM( coupling_mode ), '"' 280 CALL LOCAL_FLUSH( 9 )280 FLUSH( 9 ) 281 281 IF ( TRIM( coupling_mode ) /= 'uncoupled' ) THEN 282 282 PRINT*, '*** PE', myid, ' Global target PE:', target_id, & -
palm/trunk/SOURCE/pmc_client.f90
r1798 r1808 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! MPI module used by default on all machines 23 23 ! 24 24 ! Former revisions: … … 60 60 use, intrinsic :: iso_c_binding 61 61 62 #if defined( __lc ) 62 #if defined( __mpifh ) 63 INCLUDE "mpif.h" 64 #else 63 65 USE MPI 64 #else65 INCLUDE "mpif.h"66 66 #endif 67 67 USE kinds -
palm/trunk/SOURCE/pmc_general.f90
r1787 r1808 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! MPI module used by default on all machines 23 23 ! 24 24 ! Former revisions: … … 55 55 USE kinds 56 56 57 #if defined( __lc ) 57 #if defined( __mpifh ) 58 INCLUDE "mpif.h" 59 #else 58 60 USE MPI 59 #else60 INCLUDE "mpif.h"61 61 #endif 62 62 -
palm/trunk/SOURCE/pmc_handle_communicator.f90
r1798 r1808 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! MPI module used by default on all machines 23 23 ! 24 24 ! Former revisions: … … 62 62 USE kinds 63 63 64 #if defined( __lc ) 64 #if defined( __mpifh ) 65 INCLUDE "mpif.h" 66 #else 65 67 USE MPI 66 #else67 INCLUDE "mpif.h"68 68 #endif 69 69 -
palm/trunk/SOURCE/pmc_interface.f90
r1802 r1808 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! MPI module used by default on all machines 23 23 ! 24 24 ! Former revisions: … … 110 110 111 111 #if defined( __parallel ) 112 #if defined( __lc ) 112 #if defined( __mpifh ) 113 INCLUDE "mpif.h" 114 #else 113 115 USE MPI 114 #else115 INCLUDE "mpif.h"116 116 #endif 117 117 -
palm/trunk/SOURCE/pmc_mpi_wrapper.f90
r1780 r1808 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! MPI module used by default on all machines 23 23 ! 24 24 ! Former revisions: … … 45 45 use, intrinsic :: iso_c_binding 46 46 47 #if defined( __lc ) 47 #if defined( __mpifh ) 48 INCLUDE "mpif.h" 49 #else 48 50 USE MPI 49 #else50 INCLUDE "mpif.h"51 51 #endif 52 52 USE kinds -
palm/trunk/SOURCE/pmc_server.f90
r1798 r1808 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! MPI module used by default on all machines 23 23 ! 24 24 ! Former revisions: … … 60 60 use, intrinsic :: iso_c_binding 61 61 62 #if defined( __lc ) 62 #if defined( __mpifh ) 63 INCLUDE "mpif.h" 64 #else 63 65 USE MPI 64 #else65 INCLUDE "mpif.h"66 66 #endif 67 67 USE kinds -
palm/trunk/SOURCE/progress_bar.f90
r1683 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! routine local_flush replaced by FORTRAN statement 22 22 ! 23 23 ! Former revisions: … … 148 148 WRITE ( 117, FMT='(F5.2,1X,F5.2)' ) remaining_time_in_percent, & 149 149 remaining_time_in_percent_total 150 CALL local_flush( 117 )150 FLUSH( 117 ) 151 151 152 152 ELSE … … 170 170 100.0_wp ) 171 171 #endif 172 CALL local_flush( OUTPUT_UNIT )172 FLUSH( OUTPUT_UNIT ) 173 173 174 174 ENDIF -
palm/trunk/SOURCE/read_3d_binary.f90
r1789 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! test output removed 22 22 ! 23 23 ! Former revisions: … … 288 288 289 289 IF ( j > 0 ) overlap_count(files_to_be_opened) = j 290 291 !292 !-- Test output, to be removed later293 IF ( j > 0 ) THEN294 WRITE (9,*) '*** reading from file: ', i, j, ' times'295 WRITE (9,*) ' nxl = ', nxl, ' nxr = ', nxr, ' nys = ', &296 nys, ' nyn = ', nyn297 WRITE (9,*) ' '298 DO k = 1, j299 WRITE (9,*) 'k = ', k300 WRITE (9,'(6(A,I4))') 'nxlfa = ', nxlfa(files_to_be_opened,k),&301 ' nxrfa = ', nxrfa(files_to_be_opened,k), &302 ' offset_xa = ', offset_xa(files_to_be_opened,k), &303 ' nysfa = ', nysfa(files_to_be_opened,k), &304 ' nynfa = ', nynfa(files_to_be_opened,k), &305 ' offset_ya = ', offset_ya(files_to_be_opened,k)306 ENDDO307 CALL local_flush( 9 )308 ENDIF309 310 290 311 291 ENDDO … … 314 294 !-- Save the id-string of the current process, since myid_char may now be used 315 295 !-- to open files created by PEs with other id. 316 myid_char_save = myid_char 317 318 ! 319 !-- Test output (remove later) 320 321 DO i = 1, numprocs_previous_run 322 WRITE (9,*) 'i=',i-1, ' ibs= ',hor_index_bounds_previous_run(1:4,i-1) 323 ENDDO 324 CALL local_flush( 9 ) 296 myid_char_save = myid_char 325 297 326 298 IF ( files_to_be_opened /= 1 .OR. numprocs /= numprocs_previous_run ) & … … 340 312 !-- Set the filename (underscore followed by four digit processor id) 341 313 WRITE (myid_char,'(''_'',I6.6)') j 342 WRITE (9,*) 'myid=',myid,' opening file "',myid_char,'"'343 CALL local_flush( 9 )344 314 345 315 ! … … 348 318 !-- first. 349 319 CALL check_open( 13 ) 350 WRITE (9,*) 'before skipping'351 CALL local_flush( 9 )352 320 IF ( j == 0 ) CALL skip_var_list 353 WRITE (9,*) 'skipping done'354 CALL local_flush( 9 )355 321 356 322 ! … … 468 434 nync = nynfa(i,k) + offset_ya(i,k) 469 435 470 471 WRITE (9,*) 'var = ', field_chr472 CALL local_flush( 9 )473 436 474 437 SELECT CASE ( TRIM( field_chr ) ) -
palm/trunk/SOURCE/read_var_list.f90
r1784 r1808 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! test output removed 22 22 ! 23 23 ! Former revisions: … … 739 739 ! 740 740 !-- Read next string 741 WRITE(9,*) 'var1 ', variable_chr742 CALL local_flush(9)743 741 READ ( 13 ) variable_chr 744 WRITE(9,*) 'var2 ', variable_chr745 CALL local_flush(9)746 742 747 743 ENDDO … … 800 796 CALL check_open( 13 ) 801 797 802 WRITE (9,*) 'rpovl: after check open 13'803 CALL local_flush( 9 )804 798 READ ( 13 ) version_on_file 805 799 … … 887 881 ! 888 882 !-- Now read and check some control parameters and skip the rest 889 WRITE (9,*) 'wpovl: begin reading variables'890 CALL local_flush( 9 )891 883 READ ( 13 ) variable_chr 892 884 … … 988 980 989 981 990 WRITE (9,*) 'skipvl #1'991 CALL local_flush( 9 )992 982 READ ( 13 ) version_on_file 993 983 994 WRITE (9,*) 'skipvl before variable_chr' 995 CALL local_flush( 9 ) 996 READ ( 13 ) variable_chr 997 WRITE (9,*) 'skipvl after variable_chr' 998 CALL local_flush( 9 ) 984 READ ( 13 ) variable_chr 999 985 1000 986 DO WHILE ( TRIM( variable_chr ) /= '*** end ***' ) 1001 987 1002 WRITE (9,*) 'skipvl chr = ', variable_chr1003 CALL local_flush( 9 )1004 988 READ ( 13 ) cdum 1005 989 READ ( 13 ) variable_chr 1006 990 1007 991 ENDDO 1008 WRITE (9,*) 'skipvl last'1009 CALL local_flush( 9 )1010 992 1011 993 -
palm/trunk/SOURCE/run_control.f90
r1698 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! routine local_flush replaced by FORTRAN statement 22 22 ! 23 23 ! Former revisions: … … 135 135 ! 136 136 !-- Write buffer contents to disc immediately 137 CALL local_flush( 15 )137 FLUSH( 15 ) 138 138 139 139 ENDIF -
palm/trunk/SOURCE/spectrum.f90
r1787 r1808 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! MPI module used by default on all machines 22 22 ! 23 23 ! Former revisions: … … 291 291 USE kinds 292 292 293 #if defined( __lc ) 293 #if defined( __mpifh ) 294 INCLUDE "mpif.h" 295 #else 294 296 USE MPI 295 #else296 INCLUDE "mpif.h"297 297 #endif 298 298 USE pegrid, & … … 393 393 USE kinds 394 394 395 #if defined( __lc ) 395 #if defined( __mpifh ) 396 INCLUDE "mpif.h" 397 #else 396 398 USE MPI 397 #else398 INCLUDE "mpif.h"399 399 #endif 400 400 USE pegrid, & … … 534 534 USE kinds 535 535 536 #if defined( __lc ) 536 #if defined( __mpifh ) 537 INCLUDE "mpif.h" 538 #else 537 539 USE MPI 538 #else539 INCLUDE "mpif.h"540 540 #endif 541 541 USE pegrid, & -
palm/trunk/SOURCE/time_integration.f90
r1798 r1808 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! output message in case unscheduled radiation calls removed 22 22 ! 23 23 ! Former revisions: … … 839 839 IF ( .NOT. force_radiation_call ) THEN 840 840 time_radiation = time_radiation - dt_radiation 841 ELSE842 WRITE(9,*) "Unscheduled radiation call at ", simulated_time843 CALL LOCAL_FLUSH ( 9 )844 841 ENDIF 845 842 -
palm/trunk/SOURCE/tridia_solver.f90
r1805 r1808 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! test output removed 22 22 ! 23 23 ! Former revisions: … … 509 509 !-- the exchanged loops create bank conflicts. The following directive 510 510 !-- prohibits loop exchange and the loops perform much better. 511 ! tn = omp_get_thread_num()512 ! WRITE( 120+tn, * ) '+++ id=',myid,' nx=',nx,' thread=', omp_get_thread_num()513 ! CALL local_flush( 120+tn )514 511 !CDIR NOLOOPCHG 515 512 DO k = 0, nz-1 … … 519 516 ENDDO 520 517 ENDDO 521 ! WRITE( 120+tn, * ) '+++ id=',myid,' end of first tridia loop thread=', omp_get_thread_num()522 ! CALL local_flush( 120+tn )523 518 524 519 IF ( j <= nnyh ) THEN
Note: See TracChangeset
for help on using the changeset viewer.