Changeset 3651 for LMDZ6/trunk/libf/phylmd
- Timestamp:
- Mar 20, 2020, 11:24:02 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90
r3649 r3651 317 317 !$OMP END MASTER 318 318 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 319 323 !--scatter on all proc 320 324 CALL scatter(flx_co2ff_glo,flx_co2ff) 321 325 CALL scatter(flx_co2bb_glo,flx_co2bb) 322 326 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) 329 329 330 330 ENDIF !--end debuthy
Note: See TracChangeset
for help on using the changeset viewer.