Changeset 2526 for LMDZ5/trunk/libf/phylmd/rrtm
- Timestamp:
- May 27, 2016, 12:13:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/rrtm/readaerosolstrato_rrtm.F90
r2345 r2526 11 11 USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat, klon_glo, grid2dTo1d_glo 12 12 USE mod_phys_lmdz_mpi_data, ONLY : is_mpi_root 13 USE mod_phys_lmdz_omp_data, ONLY : is_omp_root 13 14 USE mod_phys_lmdz_para 14 15 USE phys_state_var_mod … … 79 80 IF (.not.ALLOCATED(sum_tau_aer_strat)) ALLOCATE(sum_tau_aer_strat(klon)) 80 81 82 !--we only read monthly strat aerosol data 81 83 IF (debut.OR.mth_cur.NE.mth_pre) THEN 82 84 83 IF (is_mpi_root) THEN 85 !--only root reads the data 86 IF (is_mpi_root.AND.is_omp_root) THEN 84 87 85 88 IF (nbands_sw_rrtm.NE.6) THEN … … 145 148 CALL grid2dTo1d_glo(tauaerstrat_mois,tauaerstrat_mois_glo) 146 149 147 ENDIF !--is_mpi_root 150 ENDIF !--is_mpi_root and is_omp_root 151 152 !$OMP BARRIER 148 153 149 154 !--keep memory of previous month … … 153 158 CALL scatter(tauaerstrat_mois_glo,tau_aer_strat) 154 159 155 IF (is_mpi_root ) THEN160 IF (is_mpi_root.AND.is_omp_root) THEN 156 161 ! 157 162 DEALLOCATE(tauaerstrat) … … 159 164 DEALLOCATE(tauaerstrat_mois_glo) 160 165 ! 161 ENDIF !--is_mpi_root 166 ENDIF !--is_mpi_root and is_omp_root 167 168 !$OMP BARRIER 162 169 163 170 ENDIF !--debut ou nouveau mois
Note: See TracChangeset
for help on using the changeset viewer.