Changeset 3448 for LMDZ6/trunk
- Timestamp:
- Jan 25, 2019, 5:48:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/cpl_mod.F90
r3435 r3448 204 204 205 205 ! Allocate variable in carbon_cycle_mod 206 ALLOCATE(fco2_ocn_day(klon), stat = error)206 IF (.NOT.ALLOCATED(fco2_ocn_day)) ALLOCATE(fco2_ocn_day(klon), stat = error) 207 207 sum_error = sum_error + error 208 END 208 ENDIF 209 209 210 210 IF (sum_error /= 0) THEN … … 259 259 "-",nbp_lon,nbp_lat,nhoridct,1,1,1,-99,32,"inst",dtime,dtime) 260 260 ENDIF 261 END 261 ENDDO 262 262 CALL histend(nidct) 263 263 CALL histsync(nidct) … … 272 272 "-",nbp_lon,nbp_lat,nhoridcs,1,1,1,-99,32,"inst",dtime,dtime) 273 273 ENDIF 274 END 274 ENDDO 275 275 CALL histend(nidcs) 276 276 CALL histsync(nidcs) … … 286 286 abort_message='carbon_cycle_cpl does not work with opa8' 287 287 CALL abort_physic(modname,abort_message,1) 288 END 288 ENDIF 289 289 290 290 END SUBROUTINE cpl_init … … 356 356 CALL histwrite(nidcs,inforecv(i)%name,itau_w,tab_read_flds(:,:,i),nbp_lon*(nbp_lat),ndexcs) 357 357 ENDIF 358 END 358 ENDDO 359 359 ENDIF 360 360 … … 415 415 ENDDO 416 416 417 END 417 ENDIF ! if time to receive 418 418 419 419 END SUBROUTINE cpl_receive_frac … … 466 466 DO i=1,klon 467 467 index(i)=i 468 END 468 ENDDO 469 469 CALL cpl2gath(read_co2, fco2_ocn_day, klon, index) 470 END 470 ENDIF 471 471 472 472 !************************************************************************************* … … 477 477 DO i=1, knon 478 478 tsurf_new(i) = tsurf_new(i)/(1. - sic_new(i)) 479 END 479 ENDDO 480 480 481 481 END SUBROUTINE cpl_receive_ocean_fields … … 529 529 tsurf_new(i) = tsurf_new(i) / sic_new(i) 530 530 alb_new(i) = alb_new(i) / sic_new(i) 531 END 531 ENDDO 532 532 533 533 END SUBROUTINE cpl_receive_seaice_fields … … 637 637 cpl_atm_co2(ig,cpl_index) = cpl_atm_co2(ig,cpl_index) + & 638 638 co2_send(knindex(ig))/ REAL(nexca) 639 END IF 639 !!---OB: this is correct but why knindex ?? 640 ENDIF 640 641 ENDDO 641 642 … … 682 683 ALLOCATE(cpl_atm_co22D(nbp_lon,jj_nb), stat=error) 683 684 sum_error = sum_error + error 684 END 685 ENDIF 685 686 686 687 IF (sum_error /= 0) THEN … … 886 887 ALLOCATE(cpl_atm_co22D(nbp_lon,jj_nb), stat=error) 887 888 sum_error = sum_error + error 888 END 889 ENDIF 889 890 890 891 IF (sum_error /= 0) THEN … … 917 918 DO ig = 1, knon 918 919 cpl_fder_tmp(knindex(ig))=cpl_fder(ig,cpl_index) 919 END 920 ENDDO 920 921 CALL gath2cpl(cpl_fder_tmp(:), cpl_fder2D(:,:,cpl_index), & 921 922 klon, unity) … … 1139 1140 tab_flds(:,:,ids_runcoa) = cpl_rcoa2D(:,:) 1140 1141 tab_flds(:,:,ids_rivflu) = cpl_rriv2D(:,:) 1141 END 1142 ENDIF 1142 1143 1143 1144 !************************************************************************************* … … 1252 1253 cpl_tauy2D(:,:,2) * pctsrf2D(:,:,is_sic) / deno(:,:) 1253 1254 ENDWHERE 1254 END 1255 ENDIF 1255 1256 1256 1257 ENDIF ! is_omp_root … … 1336 1337 DEALLOCATE(cpl_atm_co22D, stat=error ) 1337 1338 sum_error = sum_error + error 1338 END 1339 ENDIF 1339 1340 1340 1341 IF (sum_error /= 0) THEN
Note: See TracChangeset
for help on using the changeset viewer.