Ignore:
Timestamp:
Mar 26, 2018 7:13:22 PM (6 years ago)
Author:
suehring
Message:

Synchronize parent and child model after initialization and spinup phase; Check for consistent setting of spinup times in parent and child model; remove obsolete masking of tendency arrays during initialization

File:
1 edited

Legend:

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

    r2932 r2934  
    2525! -----------------
    2626! $Id$
     27! Check spinup in case of nested runs, spinup time and timestep must be
     28! identical to assure synchronuous simulations.
     29!
     30! 2932 2018-03-26 09:39:22Z maronga
    2731! renamed particles_par to particle_parameters
    2832!
     
    703707    LOGICAL     ::  found                            !<
    704708
     709    REAL(wp)    ::  dt_spinup_max                    !< maximum spinup timestep in nested domains
    705710    REAL(wp)    ::  dum                              !<
    706711    REAL(wp)    ::  gradient                         !<
    707712    REAL(wp)    ::  remote = 0.0_wp                  !<
     713    REAL(wp)    ::  spinup_time_max                  !< maximum spinup time in nested domains
    708714    REAL(wp)    ::  time_to_be_simulated_from_reference_point  !<
    709715
     
    13971403#endif
    13981404    ENDIF
     1405!
     1406!-- In case of spinup and nested run, spinup end time must be identical
     1407!-- in order to have synchronously running simulations.
     1408    IF ( nested_run  .AND.  spinup )  THEN
     1409#if defined( __parallel )
     1410       CALL MPI_ALLREDUCE( spinup_time, spinup_time_max, 1, MPI_REAL,          &
     1411                           MPI_MAX, MPI_COMM_WORLD, ierr )
     1412       CALL MPI_ALLREDUCE( dt_spinup,   dt_spinup_max,   1, MPI_REAL,          &
     1413                           MPI_MAX, MPI_COMM_WORLD, ierr )
     1414
     1415       IF ( spinup_time /= spinup_time_max  .OR.  dt_spinup /= dt_spinup_max ) &
     1416       THEN
     1417          message_string = 'In case of nesting, spinup_time and ' //           &
     1418                           'dt_spinup must be identical in all parent ' //     &
     1419                           'and child domains.'
     1420          CALL message( 'check_parameters', 'PA0489', 3, 2, 0, 6, 0 )
     1421       ENDIF
     1422#endif
     1423    ENDIF
    13991424
    14001425    IF ( cloud_physics  .AND.  .NOT.  humidity )  THEN
Note: See TracChangeset for help on using the changeset viewer.