Changeset 291 for palm/trunk/SOURCE/check_parameters.f90
- Timestamp:
- Apr 16, 2009 12:07:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/check_parameters.f90
r264 r291 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! Coupling with independent precursor runs. 6 7 ! Check particle_color, particle_dvrpsize, color_interval, dvrpsize_interval 7 8 ! Bugfix: pressure included for profile output … … 115 116 position, prec 116 117 LOGICAL :: found, ldum 117 REAL :: gradient, maxn, maxp, remote = 0.0 118 REAL :: gradient, maxn, maxp, remote = 0.0, & 119 simulation_time_since_reference 118 120 119 121 ! … … 188 190 ENDIF 189 191 190 CALL MPI_SEND( end_time, 1, MPI_REAL, target_id, 14, comm_inter, ierr ) 192 simulation_time_since_reference = end_time - coupling_start_time 193 CALL MPI_SEND( simulation_time_since_reference, 1, MPI_REAL, target_id, & 194 14, comm_inter, ierr ) 191 195 CALL MPI_RECV( remote, 1, MPI_REAL, target_id, 14, comm_inter, & 192 196 status, ierr ) 193 IF ( end_time /= remote ) THEN197 IF ( simulation_time_since_reference /= remote ) THEN 194 198 WRITE( message_string, * ) 'coupling mode "', TRIM( coupling_mode ), & 195 '": end_time = ', end_time, '& is not equal to ', & 196 'end_time_remote = ', remote 199 '": simulation_time_since_reference = ', & 200 simulation_time_since_reference, '& is not equal to ', & 201 'simulation_time_since_reference_remote = ', remote 197 202 CALL message( 'check_parameters', 'PA0008', 1, 2, 0, 6, 0 ) 198 203 ENDIF … … 383 388 384 389 ! 390 !-- Check whether an (uncoupled) atmospheric run has been declared as an 391 !-- ocean run (this setting is done via mrun-option -y) 392 IF ( TRIM( coupling_mode ) == 'uncoupled' .AND. & 393 TRIM( coupling_char ) == '_O' ) THEN 394 message_string = 'ocean = .F. does not allow coupling_char = "' // & 395 TRIM( coupling_char ) // '" set by mrun-option "-y"' 396 CALL message( 'check_parameters', 'PA0317', 1, 2, 0, 6, 0 ) 397 ENDIF 398 399 ! 385 400 !-- Check whether there are any illegal values 386 401 !-- Pressure solver: … … 1027 1042 1028 1043 ! 1044 !-- Store reference time for coupled runs and change the coupling flag, 1045 !-- if ... 1046 IF ( simulated_time == 0.0 ) THEN 1047 IF ( coupling_start_time == 0.0 ) THEN 1048 time_since_reference_point = 0.0 1049 ELSEIF ( time_since_reference_point < 0.0 ) THEN 1050 run_coupled = .FALSE. 1051 ENDIF 1052 ENDIF 1053 1054 ! 1029 1055 !-- Set wind speed in the Galilei-transformed system 1030 1056 IF ( galilei_transformation ) THEN … … 2813 2839 !-- internal parameter for steering restart events) 2814 2840 IF ( restart_time /= 9999999.9 ) THEN 2815 IF ( restart_time > simulated_time ) time_restart = restart_time 2841 IF ( restart_time > time_since_reference_point ) THEN 2842 time_restart = restart_time 2843 ENDIF 2816 2844 ELSE 2817 2845 !
Note: See TracChangeset
for help on using the changeset viewer.