Changeset 2345 for LMDZ5/trunk/libf/phylmd/cosp
- Timestamp:
- Aug 21, 2015, 11:57:36 AM (9 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd/cosp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/cosp/cosp_output_mod.F90
r2311 r2345 100 100 USE ioipsl 101 101 USE phys_cal_mod 102 USE time_phylmdz_mod, ONLY: day_ref, annee_ref, day_ini, start_time, itau_phy 102 103 USE print_control_mod, ONLY: lunout 103 104 … … 123 124 124 125 !!! Variables d'entree 125 include "temps.h"126 126 127 127 #ifdef CPP_XIOS -
LMDZ5/trunk/libf/phylmd/cosp/cosp_output_write_mod.F90
r2311 r2345 21 21 22 22 USE ioipsl 23 USE control_mod23 USE time_phylmdz_mod, ONLY: itau_phy, start_time, day_step_phy 24 24 USE print_control_mod, ONLY: lunout,prt_level 25 25 … … 45 45 real, dimension(Npoints,PARASOL_NREFL) :: parasolcrefl, Ncref 46 46 47 include "temps.h"48 49 47 Nlevout = vgrid%Nlvgrid 50 48 Ncolout = Ncolumns 51 49 52 50 ! A refaire 53 itau_wcosp = itau_phy + itap + start_time * day_step / iphysiq51 itau_wcosp = itau_phy + itap + start_time * day_step_phy 54 52 if (prt_level >= 10) then 55 WRITE(lunout,*)'itau_wcosp, itap, start_time, day_step , iphysiq=', &56 itau_wcosp, itap, start_time, day_step , iphysiq53 WRITE(lunout,*)'itau_wcosp, itap, start_time, day_step_phy =', & 54 itau_wcosp, itap, start_time, day_step_phy 57 55 endif 58 56 … … 268 266 use iophy 269 267 USE mod_phys_lmdz_para 268 USE mod_grid_phy_lmdz, ONLY: nbp_lon 270 269 USE print_control_mod, ONLY: lunout,prt_level 271 270 #ifdef CPP_XIOS … … 275 274 IMPLICIT NONE 276 275 277 INCLUDE "dimensions.h"278 INCLUDE "temps.h"279 276 INCLUDE "clesphys.h" 280 277 … … 320 317 IF ( var%cles(iff) ) THEN 321 318 CALL histdef (cosp_nidfiles(iff), var%name, var%description, var%unit, & 322 iim,jj_nb,nhoricosp(iff), 1,1,1, -99, 32, &319 nbp_lon,jj_nb,nhoricosp(iff), 1,1,1, -99, 32, & 323 320 typeecrit, zstophym,zoutm_cosp(iff)) 324 321 ENDIF … … 332 329 use iophy 333 330 USE mod_phys_lmdz_para 331 USE mod_grid_phy_lmdz, ONLY: nbp_lon 334 332 USE print_control_mod, ONLY: lunout,prt_level 335 333 … … 341 339 IMPLICIT NONE 342 340 343 INCLUDE "dimensions.h"344 INCLUDE "temps.h"345 341 INCLUDE "clesphys.h" 346 342 … … 415 411 IF ( var%cles(iff) ) THEN 416 412 CALL histdef (cosp_nidfiles(iff), nom, var%description, var%unit, & 417 iim, jj_nb, nhoricosp(iff), klevs, 1, &413 nbp_lon, jj_nb, nhoricosp(iff), klevs, 1, & 418 414 klevs, nvertsave, 32, typeecrit, & 419 415 zstophym, zoutm_cosp(iff)) … … 428 424 USE ioipsl 429 425 use iophy 426 USE mod_grid_phy_lmdz, ONLY: nbp_lon 430 427 USE print_control_mod, ONLY: lunout,prt_level 431 428 … … 435 432 436 433 IMPLICIT NONE 437 INCLUDE 'dimensions.h'438 434 INCLUDE 'clesphys.h' 439 435 … … 445 441 REAL,DIMENSION(klon_mpi) :: buffer_omp 446 442 INTEGER, allocatable, DIMENSION(:) :: index2d 447 REAL :: Field2d( iim,jj_nb)443 REAL :: Field2d(nbp_lon,jj_nb) 448 444 CHARACTER(LEN=20) :: nomi, nom 449 445 character(len=2) :: str2 … … 477 473 DO iff=1, 3 478 474 IF (var%cles(iff) .AND. cosp_outfilekeys(iff)) THEN 479 ALLOCATE(index2d( iim*jj_nb))475 ALLOCATE(index2d(nbp_lon*jj_nb)) 480 476 #ifndef CPP_IOIPSL_NO_OUTPUT 481 CALL histwrite(cosp_nidfiles(iff),var%name,itau_iocosp,Field2d, iim*jj_nb,index2d)477 CALL histwrite(cosp_nidfiles(iff),var%name,itau_iocosp,Field2d,nbp_lon*jj_nb,index2d) 482 478 #endif 483 479 deallocate(index2d) … … 517 513 USE ioipsl 518 514 use iophy 515 USE mod_grid_phy_lmdz, ONLY: nbp_lon 519 516 USE print_control_mod, ONLY: lunout,prt_level 520 517 … … 525 522 526 523 IMPLICIT NONE 527 INCLUDE 'dimensions.h'528 524 INCLUDE 'clesphys.h' 529 525 … … 536 532 537 533 REAL,DIMENSION(klon_mpi,SIZE(field,2)) :: buffer_omp 538 REAL :: Field3d( iim,jj_nb,SIZE(field,2))534 REAL :: Field3d(nbp_lon,jj_nb,SIZE(field,2)) 539 535 INTEGER :: ip, n, nlev 540 536 INTEGER, ALLOCATABLE, DIMENSION(:) :: index3d … … 580 576 DO iff=1, 3 581 577 IF (var%cles(iff) .AND. cosp_outfilekeys(iff)) THEN 582 ALLOCATE(index3d( iim*jj_nb*nlev))578 ALLOCATE(index3d(nbp_lon*jj_nb*nlev)) 583 579 #ifndef CPP_IOIPSL_NO_OUTPUT 584 CALL histwrite(cosp_nidfiles(iff),nom,itau_iocosp,Field3d, iim*jj_nb*nlev,index3d)580 CALL histwrite(cosp_nidfiles(iff),nom,itau_iocosp,Field3d,nbp_lon*jj_nb*nlev,index3d) 585 581 #endif 586 582 -
LMDZ5/trunk/libf/phylmd/cosp/phys_cosp.F90
r2137 r2345 124 124 !$OMP THREADPRIVATE(debut_cosp) 125 125 126 include "dimensions.h"127 128 126 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Input variables from LMDZ-GCM 129 127 integer :: overlaplmdz ! overlap type: 1=max, 2=rand, 3=max/rand ! cosp input (output lmdz)
Note: See TracChangeset
for help on using the changeset viewer.