Changeset 3900 for dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/iostart.F90
- Timestamp:
- Feb 2, 2016, 10:21:39 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/iostart.F90
r3814 r3900 129 129 USE netcdf 130 130 USE dimphy 131 USE geometry_mod 131 132 USE mod_grid_phy_lmdz 132 133 USE mod_phys_lmdz_para … … 138 139 139 140 REAL :: field_glo(klon_glo,field_size) 141 REAL :: field_glo_tmp(klon_glo,field_size) 142 INTEGER :: ind_cell_glo_glo(klon_glo) 140 143 LOGICAL :: tmp_found 141 144 INTEGER :: varid 142 INTEGER :: ierr 143 144 IF (is_mpi_root .AND. is_omp_root) THEN 145 INTEGER :: ierr,i 146 147 ! IF (is_master) ALLOCATE(ind_cell_glo_glo(1:klon_glo)) 148 CALL gather(ind_cell_glo,ind_cell_glo_glo) 149 150 IF (is_master) THEN 145 151 146 152 ierr=NF90_INQ_VARID(nid_start,Field_name,varid) 147 153 148 154 IF (ierr==NF90_NOERR) THEN 149 CALL body(field_glo )155 CALL body(field_glo_tmp) 150 156 tmp_found=.TRUE. 151 157 ELSE … … 158 164 159 165 IF (tmp_found) THEN 166 IF (is_master) THEN 167 DO i=1,klon_glo 168 field_glo(i,:)=field_glo_tmp(ind_cell_glo_glo(i),:) 169 ENDDO 170 ENDIF 160 171 CALL scatter(field_glo,field) 161 172 ENDIF … … 384 395 USE netcdf 385 396 USE dimphy 397 USE geometry_mod 386 398 USE mod_grid_phy_lmdz 387 399 USE mod_phys_lmdz_para … … 393 405 394 406 REAL :: field_glo(klon_glo,field_size) 395 INTEGER :: ierr 407 REAL :: field_glo_tmp(klon_glo,field_size) 408 INTEGER,ALLOCATABLE :: ind_cell_glo_glo(:) 409 INTEGER :: ierr,i 396 410 INTEGER :: nvarid 397 411 INTEGER :: idim 398 412 399 413 400 CALL gather(field,field_glo) 401 402 IF (is_mpi_root .AND. is_omp_root) THEN 414 IF (is_master) ALLOCATE(ind_cell_glo_glo(klon_glo)) 415 CALL gather(ind_cell_glo,ind_cell_glo_glo) 416 417 CALL gather(field,field_glo_tmp) 418 419 IF (is_master) THEN 420 421 DO i=1,klon_glo 422 field_glo(ind_cell_glo_glo(i),:)=field_glo_tmp(i,:) 423 ENDDO 424 403 425 404 426 IF (field_size==1) THEN
Note: See TracChangeset
for help on using the changeset viewer.