Ignore:
Timestamp:
Sep 9, 2020 1:43:47 PM (4 years ago)
Author:
pavelkrc
Message:

Fix multiple issues with radiation call times

File:
1 edited

Legend:

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

    r4668 r4669  
    2727! -----------------
    2828! $Id$
     29! Fix calculation of force_radiation_call
     30!
     31! 4668 2020-09-09 13:00:16Z pavelkrc
    2932! Limit vertical r_a similarly to horizontal
    3033!
     
    84278430      IF ( intermediate_timestep_count == intermediate_timestep_count_max-1 )  THEN
    84288431#if defined( __parallel )
    8429         IF ( collective_wait )  CALL MPI_BARRIER( comm2d, ierr )
    8430         CALL MPI_ALLREDUCE( force_radiation_call_l, force_radiation_call,                          &
    8431                             1, MPI_LOGICAL, MPI_LOR, comm2d, ierr )
     8432        IF ( .NOT. force_radiation_call ) THEN
     8433           IF ( collective_wait )  CALL MPI_BARRIER( comm2d, ierr )
     8434           CALL MPI_ALLREDUCE( force_radiation_call_l, force_radiation_call,                      &
     8435                               1, MPI_LOGICAL, MPI_LOR, comm2d, ierr )
     8436        ENDIF
    84328437#else
    8433         force_radiation_call = force_radiation_call_l
     8438        force_radiation_call = force_radiation_call .OR. force_radiation_call_l
    84348439#endif
    84358440        force_radiation_call_l = .FALSE.
Note: See TracChangeset for help on using the changeset viewer.