- Timestamp:
- Aug 10, 2016 2:07:17 PM (8 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/Makefile
r1976 r1986 20 20 # Current revisions: 21 21 # ------------------ 22 # 22 # POSIX-calls module added 23 23 # 24 24 # Former revisions: … … 326 326 pmc_child_mod.f90 pmc_general_mod.f90 pmc_handle_communicator_mod.f90 \ 327 327 pmc_mpi_wrapper_mod.f90 pmc_parent_mod.f90 poisfft_mod.f90 poismg_mod.f90 \ 328 poismg_noopt.f90 p res.f90 print_1d.f90 production_e.f90 \328 poismg_noopt.f90 posix_calls_from_fortran.f90 pres.f90 print_1d.f90 production_e.f90 \ 329 329 prognostic_equations.f90 progress_bar_mod.f90 radiation_model_mod.f90 \ 330 330 random_function_mod.f90 random_gauss.f90 random_generator_parallel_mod.f90 \ … … 408 408 calc_radiation.o: modules.o mod_kinds.o 409 409 check_for_restart.o: modules.o mod_kinds.o pmc_interface_mod.o 410 check_open.o: modules.o mod_kinds.o mod_particle_attributes.o netcdf_interface_mod.o 410 check_open.o: modules.o mod_kinds.o mod_particle_attributes.o \ 411 netcdf_interface_mod.o posix_calls_from_fortran.o 411 412 check_parameters.o: modules.o mod_kinds.o land_surface_model_mod.o \ 412 413 netcdf_interface_mod.o plant_canopy_model_mod.o pmc_interface_mod.o radiation_model_mod.o \ … … 529 530 poismg_mod.o: modules.o cpulog_mod.o mod_kinds.o 530 531 poismg_noopt.o: modules.o cpulog_mod.o mod_kinds.o 532 posix_calls_from_fortran.o: posix_calls_from_fortran.f90 531 533 pres.o: modules.o cpulog_mod.o mod_kinds.o poisfft_mod.o poismg_mod.o pmc_interface_mod.o 532 534 print_1d.o: modules.o cpulog_mod.o mod_kinds.o -
palm/trunk/SOURCE/check_open.f90
r1975 r1986 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! Bugfix: check if output can be opened in newly created directory. If not 22 ! wait one second and try again. 22 23 ! 23 24 ! Former revisions: … … 146 147 USE pegrid 147 148 149 USE posix_calls_from_fortran, & 150 ONLY: fortran_sleep 151 148 152 USE profil_parameter, & 149 153 ONLY: cross_ts_numbers, cross_ts_number_count … … 175 179 INTEGER(iwp) :: i !< 176 180 INTEGER(iwp) :: iaddres !< 181 INTEGER(iwp) :: ioerr !< IOSTAT flag for IO-commands ( 0 = no error ) 177 182 INTEGER(iwp) :: iusern !< 178 183 INTEGER(iwp) :: j !< … … 327 332 CALL MPI_BARRIER( comm2d, ierr ) 328 333 #endif 329 OPEN ( 14, FILE='BINOUT'//TRIM(coupling_char)//'/'//myid_char, & 330 FORM='UNFORMATTED' ) 334 ioerr = 1 335 DO WHILE ( ioerr /= 0 ) 336 OPEN ( 14, FILE='BINOUT'//TRIM(coupling_char)//'/'//myid_char, & 337 FORM='UNFORMATTED', IOSTAT=ioerr ) 338 IF ( ioerr /= 0 ) CALL fortran_sleep( 1 ) 339 ENDDO 340 331 341 ENDIF 332 342 … … 370 380 CALL MPI_BARRIER( comm2d, ierr ) 371 381 #endif 372 OPEN ( 20, FILE='DATA_LOG'//TRIM( coupling_char )//'/'// & 373 myid_char, FORM='UNFORMATTED', POSITION='APPEND' ) 382 ioerr = 1 383 DO WHILE ( ioerr /= 0 ) 384 OPEN ( 20, FILE='DATA_LOG'//TRIM( coupling_char )//'/'// & 385 myid_char, FORM='UNFORMATTED', POSITION='APPEND', & 386 IOSTAT=ioerr ) 387 IF ( ioerr /= 0 ) CALL fortran_sleep( 1 ) 388 ENDDO 389 374 390 ENDIF 375 391 … … 614 630 CALL MPI_BARRIER( comm2d, ierr ) 615 631 #endif 616 OPEN ( 85, FILE='PARTICLE_DATA'//TRIM( coupling_char )//'/'// & 617 myid_char, & 618 FORM='UNFORMATTED', POSITION='APPEND' ) 632 ioerr = 1 633 DO WHILE ( ioerr /= 0 ) 634 OPEN ( 85, FILE='PARTICLE_DATA'//TRIM( coupling_char )//'/'// & 635 myid_char, & 636 FORM='UNFORMATTED', POSITION='APPEND', IOSTAT=ioerr ) 637 IF ( ioerr /= 0 ) CALL fortran_sleep( 1 ) 638 ENDDO 639 619 640 ENDIF 620 641
Note: See TracChangeset
for help on using the changeset viewer.