Ignore:
Timestamp:
Apr 16, 2009 12:07:26 PM (15 years ago)
Author:
raasch
Message:

changes for coupling with independent precursor runs; z_i calculation with Sullivan criterion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/check_parameters.f90

    r264 r291  
    44! Actual revisions:
    55! -----------------
     6! Coupling with independent precursor runs.
    67! Check particle_color, particle_dvrpsize, color_interval, dvrpsize_interval
    78! Bugfix: pressure included for profile output
     
    115116         position, prec
    116117    LOGICAL ::  found, ldum
    117     REAL    ::  gradient, maxn, maxp, remote = 0.0
     118    REAL    ::  gradient, maxn, maxp, remote = 0.0, &
     119                simulation_time_since_reference
    118120
    119121!
     
    188190       ENDIF
    189191
    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 )
    191195       CALL MPI_RECV( remote, 1, MPI_REAL, target_id, 14, comm_inter, &
    192196                      status, ierr )
    193        IF ( end_time /= remote )  THEN
     197       IF ( simulation_time_since_reference /= remote )  THEN
    194198          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
    197202          CALL message( 'check_parameters', 'PA0008', 1, 2, 0, 6, 0 )
    198203       ENDIF
     
    383388
    384389!
     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!
    385400!-- Check whether there are any illegal values
    386401!-- Pressure solver:
     
    10271042
    10281043!
     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!
    10291055!-- Set wind speed in the Galilei-transformed system
    10301056    IF ( galilei_transformation )  THEN
     
    28132839!-- internal parameter for steering restart events)
    28142840    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
    28162844    ELSE
    28172845!
Note: See TracChangeset for help on using the changeset viewer.