Ignore:
Timestamp:
Apr 19, 2016 12:30:36 PM (8 years ago)
Author:
hellstea
Message:

New simpler synchronization for nested runs

File:
1 edited

Legend:

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

    r1854 r1878  
    1919! Current revisions:
    2020! ------------------
    21 !
     21! Synchronization for nested runs rewritten
    2222!
    2323! Former revisions:
     
    282282    USE pmc_interface,                                                         &
    283283        ONLY:  client_to_server, nested_run, nesting_mode,                     &
    284                pmci_client_synchronize, pmci_datatrans,                        &
    285                pmci_ensure_nest_mass_conservation,                             &
    286                pmci_server_synchronize, server_to_client
     284               pmci_datatrans, pmci_ensure_nest_mass_conservation,             &
     285               pmci_synchronize, server_to_client
    287286
    288287    USE production_e_mod,                                                      &
     
    325324!
    326325!-- Synchronize the timestep in case of nested run.
    327 !-- The server side must be called first
    328326    IF ( nested_run )  THEN
    329        CALL pmci_server_synchronize
    330        CALL pmci_client_synchronize
     327!
     328!--    Synchronization by unifying the time step.
     329!--    Global minimum of all time-steps is used for all.
     330       CALL pmci_synchronize
    331331    ENDIF
    332332
     
    368368       IF ( simulated_time /= 0.0_wp )  THEN
    369369          CALL timestep
    370 
     370!
     371!--       Synchronize the timestep in case of nested run.
    371372          IF ( nested_run )  THEN
    372373!
    373 !--          TO_DO: try to give more detailed and meaningful comments here
    374 !--          Server side must be called first
    375              CALL pmci_server_synchronize
    376              CALL pmci_client_synchronize
    377           ENDIF
    378        ENDIF
    379 
     374!--          Synchronize by unifying the time step.
     375!--          Global minimum of all time-steps is used for all.     
     376             CALL pmci_synchronize
     377          ENDIF
     378       ENDIF
    380379
    381380!
Note: See TracChangeset for help on using the changeset viewer.