- Timestamp:
- Dec 10, 2009, 10:02:56 AM (15 years ago)
- Location:
- LMDZ4/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk
- Property svn:mergeinfo changed
/LMDZ4/branches/LMDZ4-dev merged: 1150-1162,1164-1193,1195-1231,1234-1235,1237-1240,1242-1274,1276
- Property svn:mergeinfo changed
-
LMDZ4/trunk/libf/phylmd/surf_land_orchidee_noopenmp_mod.F90
r1146 r1279 68 68 ! spechum humidite specifique 1ere couche 69 69 ! epot_air temp pot de l'air 70 ! ccanopy concentration CO2 canopee 70 ! ccanopy concentration CO2 canopee, correspond au co2_send de 71 ! carbon_cycle_mod ou valeur constant co2_ppm 71 72 ! tq_cdrag cdrag 72 73 ! petAcoef coeff. A de la resolution de la CL pour t … … 95 96 ! qsurf air moisture at surface 96 97 ! 98 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, fco2_land_inst, fco2_lu_inst 99 IMPLICIT NONE 100 97 101 INCLUDE "indicesol.h" 98 102 INCLUDE "temps.h" … … 135 139 INTEGER :: error 136 140 REAL, DIMENSION(klon) :: swdown_vrai 141 REAL, DIMENSION(klon) :: fco2_land_comp ! sur grille compresse 142 REAL, DIMENSION(klon) :: fco2_lu_comp ! sur grille compresse 137 143 CHARACTER (len = 20) :: modname = 'surf_land_orchidee' 138 144 CHARACTER (len = 80) :: abort_message … … 334 340 ENDIF 335 341 342 ! 343 ! Allocate variables needed for carbon_cycle_mod 344 ! 345 IF (carbon_cycle_cpl) THEN 346 IF (.NOT. ALLOCATED(fco2_land_inst)) THEN 347 ALLOCATE(fco2_land_inst(klon),stat=error) 348 IF (error /= 0) CALL abort_gcm(modname,'Pb in allocation fco2_land_inst',1) 349 350 ALLOCATE(fco2_lu_inst(klon),stat=error) 351 IF(error /=0) CALL abort_gcm(modname,'Pb in allocation fco2_lu_inst',1) 352 END IF 353 END IF 354 336 355 ENDIF ! (fin debut) 337 356 … … 378 397 379 398 #ifndef CPP_MPI 380 #define ORC_PREPAR381 #endif382 383 #ifdef ORC_PREPAR384 399 ! Interface for ORCHIDEE compiled in sequential mode(without preprocessing flag CPP_MPI) 385 400 CALL intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, & … … 394 409 395 410 #else 396 ! Interface for ORCHIDEE version 1.9 or later compiled in parallel mode(with preprocessing flag CPP_MPI)411 ! Interface for ORCHIDEE version 1.9 or later(1.9.2, 1.9.3, 1.9.4) compiled in parallel mode(with preprocessing flag CPP_MPI) 397 412 CALL intersurf_main (itime+itau_phy-1, iim, jjm+1, offset, knon, ktindex, & 398 413 orch_comm, dtime, lrestart_read, lrestart_write, lalo, & … … 417 432 IF (knon /=0) THEN 418 433 419 #if def ORC_PREPAR434 #ifndef CPP_MPI 420 435 ! Interface for ORCHIDEE compiled in sequential mode(without preprocessing flag CPP_MPI) 421 436 CALL intersurf_main (itime+itau_phy, iim, jjm+1, knon, ktindex, dtime, & … … 463 478 464 479 IF (debut) lrestart_read = .FALSE. 480 481 482 ! JG : TEMPORAIRE!!!! Les variables fco2_land_comp et fco2_lu_comp seront plus tard en sortie d'ORCHIDEE 483 ! ici mis a valeur quelquonque pour test. Ces variables sont sur la grille compresse avec uniquement des points de terres 484 485 fco2_land_comp(:) = 1. 486 fco2_lu_comp(:) = 10. 487 488 ! Decompress variables for the module carbon_cycle_mod 489 IF (carbon_cycle_cpl) THEN 490 fco2_land_inst(:)=0. 491 fco2_lu_inst(:)=0. 492 493 DO igrid = 1, knon 494 ireal = knindex(igrid) 495 fco2_land_inst(ireal) = fco2_land_comp(igrid) 496 fco2_lu_inst(ireal) = fco2_lu_comp(igrid) 497 END DO 498 END IF 499 465 500 #endif 466 501 END SUBROUTINE surf_land_orchidee … … 628 663 displs(i)=displs(i-1)+knon_nb(i-1) 629 664 ENDDO 630 ENDIF 665 ELSE 666 ALLOCATE(neighbours_g(1,8)) 667 ENDIF 631 668 632 669 ktindex_p(1:knon)=ktindex(1:knon)+klon_mpi_begin-1+iim-1
Note: See TracChangeset
for help on using the changeset viewer.