Changeset 3651 for LMDZ6/trunk


Ignore:
Timestamp:
Mar 20, 2020, 11:24:02 AM (5 years ago)
Author:
jghattas
Message:

Correction pour tourner experience avec type_trac=co2i sur Jean-Zay : allocation necessaire sur tout les procs, sinon scatter se plain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90

    r3649 r3651  
    317317!$OMP END MASTER
    318318
     319    ! Allocation needed for all proc otherwise scatter might complain
     320    IF (.NOT.ALLOCATED(flx_co2ff_glo)) ALLOCATE(flx_co2ff_glo(0,0))
     321    IF (.NOT.ALLOCATED(flx_co2bb_glo)) ALLOCATE(flx_co2bb_glo(0,0))
     322
    319323!--scatter on all proc
    320324    CALL scatter(flx_co2ff_glo,flx_co2ff)
    321325    CALL scatter(flx_co2bb_glo,flx_co2bb)
    322326
    323 !$OMP MASTER
    324     IF (is_mpi_root) THEN
    325        DEALLOCATE(flx_co2ff_glo)
    326        DEALLOCATE(flx_co2bb_glo)
    327     ENDIF
    328 !$OMP END MASTER
     327   IF (ALLOCATED(flx_co2ff_glo)) DEALLOCATE(flx_co2ff_glo)
     328   IF (ALLOCATED(flx_co2bb_glo)) DEALLOCATE(flx_co2bb_glo)
    329329
    330330  ENDIF !--end debuthy
Note: See TracChangeset for help on using the changeset viewer.