Changeset 110 for palm/trunk/SOURCE/check_for_restart.f90
- Timestamp:
- Oct 5, 2007 5:13:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/check_for_restart.f90
r108 r110 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! modifications to terminate coupled runs7 6 ! 8 7 ! … … 10 9 ! ----------------- 11 10 ! $Id$ 11 ! 12 ! 108 2007-08-24 15:10:38Z letzel 13 ! modifications to terminate coupled runs 14 ! 12 15 ! RCS Log replace by Id keyword, revision history cleaned up 13 16 ! … … 61 64 !-- Output that job will be terminated 62 65 IF ( terminate_run .AND. myid == 0 ) THEN 63 PRINT*, '*** WARNING: run will be terminated because it is running out of job cpu', &64 ' limit'66 PRINT*, '*** WARNING: run will be terminated because it is running out', & 67 ' of job cpu limit' 65 68 PRINT*, ' remaining time: ', remaining_time, ' s' 66 PRINT*, ' termination time needed:', termination_time_needed, ' s' 69 PRINT*, ' termination time needed:', termination_time_needed,& 70 ' s' 67 71 ENDIF 68 72 … … 72 76 !-- informed of another termination reason (terminate_coupled > 0) before, 73 77 !-- or vice versa (terminate_coupled_remote > 0). 74 IF ( terminate_run .AND. TRIM( coupling_mode ) /= 'uncoupled' &75 .AND. terminate_coupled == 0 &76 .AND. terminate_coupled_remote == 0 ) THEN 78 IF ( terminate_run .AND. TRIM( coupling_mode ) /= 'uncoupled' .AND. & 79 terminate_coupled == 0 .AND. terminate_coupled_remote == 0 ) THEN 80 77 81 terminate_coupled = 3 78 CALL MPI_SENDRECV( & 79 terminate_coupled, 1, MPI_INTEGER, myid, 0, & 80 terminate_coupled_remote, 1, MPI_INTEGER, myid, 0, & 81 comm_inter, status, ierr ) 82 CALL MPI_SENDRECV( terminate_coupled, 1, MPI_INTEGER, myid, 0, & 83 terminate_coupled_remote, 1, MPI_INTEGER, myid, 0, & 84 comm_inter, status, ierr ) 82 85 ENDIF 83 86 … … 101 104 102 105 IF ( myid == 0 ) THEN 103 PRINT*, '*** INFORMATIVE: run will be terminated due to user settings of' 106 PRINT*, '*** INFORMATIVE: run will be terminated due to user ', & 107 'settings of' 104 108 PRINT*, ' restart_time / dt_restart' 105 109 PRINT*, ' new restart time is: ', time_restart, ' s' … … 110 114 !-- informed of another termination reason (terminate_coupled > 0) before, 111 115 !-- or vice versa (terminate_coupled_remote > 0). 112 IF ( coupling_mode /= 'uncoupled' .AND. terminate_coupled == 0 & 113 .AND. terminate_coupled_remote == 0) THEN 116 IF ( coupling_mode /= 'uncoupled' .AND. terminate_coupled == 0 .AND. & 117 terminate_coupled_remote == 0) THEN 118 114 119 IF ( dt_restart /= 9999999.9 ) THEN 115 120 terminate_coupled = 4 … … 117 122 terminate_coupled = 5 118 123 ENDIF 119 CALL MPI_SENDRECV( &120 terminate_coupled, 1, MPI_INTEGER, myid, 0, &121 terminate_coupled_remote, 1, MPI_INTEGER, myid, 0, &122 comm_inter, status, ierr )124 CALL MPI_SENDRECV( & 125 terminate_coupled, 1, MPI_INTEGER, myid, 0, & 126 terminate_coupled_remote, 1, MPI_INTEGER, myid, 0, & 127 comm_inter, status, ierr ) 123 128 ENDIF 124 129 ELSE
Note: See TracChangeset
for help on using the changeset viewer.