Changeset 802 for LMDZ4/trunk
- Timestamp:
- Jul 3, 2007, 5:11:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/surf_land_orchidee_mod.F90
r799 r802 366 366 IF (knon /=0) THEN 367 367 CALL Init_orchidee_index(knon,orch_comm,knindex,offset,ktindex) 368 #define ORC_PREPAR 368 369 369 #ifdef ORC_PREPAR 370 call intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, & 371 & lrestart_read, lrestart_write, lalo, & 372 & contfrac, neighbours, resolution, date0, & 373 & zlev, u1_lay, v1_lay, spechum, temp_air, epot_air, ccanopy, & 374 & cdrag, petA_orc, peqA_orc, petB_orc, peqB_orc, & 375 & precip_rain, precip_snow, lwdown, swnet, swdown, ps, & 376 & evap, fluxsens, fluxlat, coastalflow, riverflow, & 377 & tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0_new, & 378 & lon_scat, lat_scat) 370 ! Interface for version 1.8 or earlier of ORCHIDEE 371 CALL intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, & 372 lrestart_read, lrestart_write, lalo, & 373 contfrac, neighbours, resolution, date0, & 374 zlev, u1_lay, v1_lay, spechum, temp_air, epot_air, ccanopy, & 375 cdrag, petA_orc, peqA_orc, petB_orc, peqB_orc, & 376 precip_rain, precip_snow, lwdown, swnet, swdown, ps, & 377 evap, fluxsens, fluxlat, coastalflow, riverflow, & 378 tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0_new, & 379 lon_scat, lat_scat) 379 380 380 381 #else … … 402 403 403 404 #ifdef ORC_PREPAR 404 call intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, & 405 & lrestart_read, lrestart_write, lalo, & 406 & contfrac, neighbours, resolution, date0, & 407 & zlev, u1_lay, v1_lay, spechum, temp_air, epot_air, ccanopy, & 408 & cdrag, petA_orc, peqA_orc, petB_orc, peqB_orc, & 409 & precip_rain, precip_snow, lwdown, swnet, swdown, ps, & 410 & evap, fluxsens, fluxlat, coastalflow, riverflow, & 411 & tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0_new, & 412 & lon_scat, lat_scat) 413 405 ! Interface for version 1.8 or earlier of ORCHIDEE 406 CALL intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, & 407 lrestart_read, lrestart_write, lalo, & 408 contfrac, neighbours, resolution, date0, & 409 zlev, u1_lay, v1_lay, spechum, temp_air, epot_air, ccanopy, & 410 cdrag, petA_orc, peqA_orc, petB_orc, peqB_orc, & 411 precip_rain, precip_snow, lwdown, swnet, swdown, ps, & 412 evap, fluxsens, fluxlat, coastalflow, riverflow, & 413 tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0_new, & 414 lon_scat, lat_scat) 415 414 416 #else 415 417 … … 482 484 INTEGER :: mpi_size 483 485 INTEGER :: ierr 484 486 ! 487 ! End definition 488 !**************************************************************************************** 489 485 490 MyLastPoint=klon_mpi_begin-1+knindex(knon)+iim-1 486 491 … … 534 539 INTEGER :: color 535 540 INTEGER :: ierr 536 541 ! 542 ! End definition 543 !**************************************************************************************** 544 537 545 IF (knon==0) THEN 538 546 color = 0 … … 557 565 #endif 558 566 559 567 ! Input arguments 568 !**************************************************************************************** 560 569 INTEGER, INTENT(IN) :: knon 561 INTEGER, DIMENSION(knon,8), INTENT(OUT) :: neighbours562 570 INTEGER, DIMENSION(klon), INTENT(IN) :: ktindex 563 571 REAL, DIMENSION(klon), INTENT(IN) :: pctsrf 564 572 565 INTEGER :: knon_nb(0:mpi_size-1) 566 INTEGER,DIMENSION(0:mpi_size-1) :: displs 567 INTEGER,ALLOCATABLE :: ktindex_g(:) 568 REAL*8 :: pctsrf_g(klon_glo) 569 INTEGER,ALLOCATABLE ::neighbours_g(:,:) 570 INTEGER :: knon_g 571 REAL*8 :: correspond(iim,jjm+1) 572 INTEGER :: i,igrid,jj,ij,iglob,ierr,ireal,index 573 INTEGER, DIMENSION(8,3) :: off_ini 574 INTEGER, DIMENSION(8) :: offset 575 INTEGER :: ktindex_p(knon) 576 573 ! Output arguments 574 !**************************************************************************************** 575 INTEGER, DIMENSION(knon,8), INTENT(OUT) :: neighbours 576 577 ! Local variables 578 !**************************************************************************************** 579 INTEGER :: knon_g 580 INTEGER :: i, igrid, jj, ij, iglob 581 INTEGER :: ierr, ireal, index 582 INTEGER, DIMENSION(0:mpi_size-1) :: knon_nb 583 INTEGER, DIMENSION(0:mpi_size-1) :: displs 584 INTEGER, DIMENSION(8,3) :: off_ini 585 INTEGER, DIMENSION(8) :: offset 586 INTEGER, DIMENSION(knon) :: ktindex_p 587 INTEGER, DIMENSION(iim,jjm+1) :: correspond 588 INTEGER, ALLOCATABLE, DIMENSION(:) :: ktindex_g 589 INTEGER, ALLOCATABLE, DIMENSION(:,:) :: neighbours_g 590 REAL, DIMENSION(klon_glo) :: pctsrf_g 591 592 ! 593 ! End definition 594 !**************************************************************************************** 595 577 596 IF (is_sequential) THEN 578 597 knon_nb(:)=knon
Note: See TracChangeset
for help on using the changeset viewer.