Changeset 3391 for LMDZ6/trunk/libf/phylmd/surf_land_orchidee_mod.F90
- Timestamp:
- Sep 16, 2018, 5:52:25 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/surf_land_orchidee_mod.F90
r3102 r3391 26 26 USE mod_grid_phy_lmdz 27 27 USE mod_phys_lmdz_para, mpi_root_rank=>mpi_master 28 USE carbon_cycle_mod, ONLY : nbcf_in_orc, nbcf_out, fields_in, yfields_in, yfields_out, cfname_in, cfname_out 28 29 29 30 IMPLICIT NONE … … 48 49 veget, lai, height ) 49 50 50 51 51 USE mod_surf_para 52 52 USE mod_synchro_omp 53 USE carbon_cycle_mod , ONLY : carbon_cycle_cpl53 USE carbon_cycle_mod 54 54 USE indice_sol_mod 55 55 USE print_control_mod, ONLY: lunout … … 96 96 ! ps pression au sol 97 97 ! radsol rayonnement net aus sol (LW + SW) 98 !99 98 ! 100 99 ! output: … … 113 112 INCLUDE "YOMCST.h" 114 113 INCLUDE "dimpft.h" 115 116 117 118 114 ! 119 115 ! Parametres d'entree … … 149 145 REAL, DIMENSION(klon,nvm_lmdz), INTENT(OUT) :: height 150 146 151 152 147 ! Local 153 148 !**************************************************************************************** 154 INTEGER :: ij, jj, igrid, ireal, index 149 INTEGER :: ij, jj, igrid, ireal, index, nb 155 150 INTEGER :: error 156 151 REAL, DIMENSION(klon) :: swdown_vrai … … 365 360 ! carbon_cycle_cpl not possible with this interface and version of ORHCHIDEE 366 361 ! 367 IF (carbon_cycle_cpl) THEN 368 abort_message='carbon_cycle_cpl not yet possible with this interface of ORCHIDEE' 369 CALL abort_physic(modname,abort_message,1) 370 END IF 362 ! >> PC 363 ! IF (carbon_cycle_cpl) THEN 364 ! abort_message='carbon_cycle_cpl not yet possible with this interface of ORCHIDEE' 365 ! CALL abort_physic(modname,abort_message,1) 366 ! END IF 367 ! << PC 371 368 372 369 ENDIF ! (fin debut) 373 370 374 375 371 ! 376 372 ! Appel a la routine sols continentaux … … 413 409 IF (knon > 0) THEN 414 410 411 print *,'OB before intersurf=', SIZE(cfname_in), SIZE(cfname_out) 415 412 #ifdef CPP_VEGET 416 413 CALL intersurf_initialize_gathered (itime+itau_phy-1, nbp_lon, nbp_lat, knon, ktindex, dtime, & … … 421 418 evap, fluxsens, fluxlat, coastalflow, riverflow, & 422 419 tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0m_new, & 423 lon_scat, lat_scat, q2m, t2m, z0h_new, nvm_orch) 420 ! >> PC 421 !lon_scat, lat_scat, q2m, t2m, z0h_new, nvm_orch) 422 lon_scat, lat_scat, q2m, t2m, z0h_new, nvm_orch, & 423 field_out_names=cfname_out, field_in_names=cfname_in(1:nbcf_in_orc)) 424 ! << PC 424 425 #endif 425 426 ENDIF … … 430 431 431 432 ENDIF 432 433 433 434 434 ! swdown_vrai(1:knon) = swnet(1:knon)/(1. - albedo_keep(1:knon)) … … 452 452 lon_scat, lat_scat, q2m, t2m, z0h_new(1:knon),& 453 453 veget(1:knon,:),lai(1:knon,:),height(1:knon,:),& 454 fields_out=yfields_out(1:knon,1:nbcf_out), & 455 fields_in=yfields_in(1:knon,1:nbcf_in_orc), & 454 456 coszang=yrmu0(1:knon)) 455 457 #endif … … 480 482 IF (debut) CALL Finalize_surf_para 481 483 484 ! >> PC 485 ! Decompressing variables into LMDz for the module carbon_cycle_mod 486 ! nbcf_in can be zero, in which case the loop does not operate 487 ! fields_in can then used elsewhere in the model 488 489 fields_in(:,:)=0.0 490 491 DO nb=1, nbcf_in_orc 492 DO igrid = 1, knon 493 ireal = knindex(igrid) 494 fields_in(ireal,nb)=yfields_in(igrid,nb) 495 ENDDO 496 WRITE(*,*) 'surf_land_orchidee_mod --- yfields_in :',cfname_in(nb) 497 ENDDO 498 ! >> PC 482 499 483 500 END SUBROUTINE surf_land_orchidee … … 541 558 !**************************************************************************************** 542 559 543 544 560 IF (is_omp_root) THEN 545 561 … … 566 582 ENDDO 567 583 ENDIF 568 569 584 570 585 END SUBROUTINE Get_orchidee_communicator … … 628 643 off_ini(4,3) = 1 ; off_ini(5,3) = nbp_lon ; off_ini(6,3) = nbp_lon - 1 629 644 off_ini(7,3) = -1 ; off_ini(8,3) = - nbp_lon - 1 630 !631 645 ! 632 646 ! Attention aux poles … … 645 659 ENDDO 646 660 ELSE 647 print*,'sonia : knon_glo,ij,jj', knon_glo, ij,jj648 661 649 662 DO igrid = 1, knon_glo
Note: See TracChangeset
for help on using the changeset viewer.