- Timestamp:
- Dec 14, 2015, 11:43:09 AM (9 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 2293-2295,2297,2299-2302,2305-2313,2315,2317-2380,2382-2396
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/phylmd/cosp/cosp_output_write_mod.F90
r2298 r2408 21 21 22 22 USE ioipsl 23 USE control_mod 23 USE time_phylmdz_mod, ONLY: itau_phy, start_time, day_step_phy 24 USE print_control_mod, ONLY: lunout,prt_level 24 25 25 26 #ifdef CPP_XIOS … … 44 45 real, dimension(Npoints,PARASOL_NREFL) :: parasolcrefl, Ncref 45 46 46 include "temps.h"47 include "iniprint.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 … … 92 90 do ip = 1,Npoints 93 91 if(stlidar%lidarcld(ip,k).eq.R_UNDEF)then 94 stlidar%lidarcld(ip,k)= 0.92 stlidar%lidarcld(ip,k)=Cosp_fill_value 95 93 endif 96 94 enddo … … 99 97 do ip = 1,Npoints 100 98 if(stlidar%cfad_sr(ip,ii,k).eq.R_UNDEF)then 101 stlidar%cfad_sr(ip,ii,k)= 0.99 stlidar%cfad_sr(ip,ii,k)=Cosp_fill_value 102 100 endif 103 101 enddo … … 108 106 do k = 1,Nlevlmdz 109 107 if(sglidar%beta_mol(ip,k).eq.R_UNDEF)then 110 sglidar%beta_mol(ip,k)= 0.108 sglidar%beta_mol(ip,k)=Cosp_fill_value 111 109 endif 112 110 113 111 do ii= 1,Ncolumns 114 112 if(sglidar%beta_tot(ip,ii,k).eq.R_UNDEF)then 115 sglidar%beta_tot(ip,ii,k)= 0.113 sglidar%beta_tot(ip,ii,k)=Cosp_fill_value 116 114 endif 117 115 enddo … … 123 121 do ip = 1,Npoints 124 122 if(stlidar%cldlayer(ip,k).eq.R_UNDEF)then 125 stlidar%cldlayer(ip,k)= 0.123 stlidar%cldlayer(ip,k)=Cosp_fill_value 126 124 endif 127 125 enddo … … 167 165 do ip = 1,Npoints 168 166 if(isccp%totalcldarea(ip).eq.-1.E+30)then 169 isccp%totalcldarea(ip)= 0.167 isccp%totalcldarea(ip)=Cosp_fill_value 170 168 endif 171 169 if(isccp%meanptop(ip).eq.-1.E+30)then 172 isccp%meanptop(ip)= 0.170 isccp%meanptop(ip)=Cosp_fill_value 173 171 endif 174 172 if(isccp%meantaucld(ip).eq.-1.E+30)then 175 isccp%meantaucld(ip)= 0.173 isccp%meantaucld(ip)=Cosp_fill_value 176 174 endif 177 175 if(isccp%meanalbedocld(ip).eq.-1.E+30)then 178 isccp%meanalbedocld(ip)= 0.176 isccp%meanalbedocld(ip)=Cosp_fill_value 179 177 endif 180 178 if(isccp%meantb(ip).eq.-1.E+30)then 181 isccp%meantb(ip)= 0.179 isccp%meantb(ip)=Cosp_fill_value 182 180 endif 183 181 if(isccp%meantbclr(ip).eq.-1.E+30)then 184 isccp%meantbclr(ip)= 0.182 isccp%meantbclr(ip)=Cosp_fill_value 185 183 endif 186 184 … … 188 186 do ii=1,7 189 187 if(isccp%fq_isccp(ip,ii,k).eq.-1.E+30)then 190 isccp%fq_isccp(ip,ii,k)= 0.188 isccp%fq_isccp(ip,ii,k)=Cosp_fill_value 191 189 endif 192 190 enddo … … 195 193 do ii=1,Ncolumns 196 194 if(isccp%boxtau(ip,ii).eq.-1.E+30)then 197 isccp%boxtau(ip,ii)= 0.195 isccp%boxtau(ip,ii)=Cosp_fill_value 198 196 endif 199 197 enddo … … 201 199 do ii=1,Ncolumns 202 200 if(isccp%boxptop(ip,ii).eq.-1.E+30)then 203 isccp%boxptop(ip,ii)= 0.201 isccp%boxptop(ip,ii)=Cosp_fill_value 204 202 endif 205 203 enddo … … 268 266 use iophy 269 267 USE mod_phys_lmdz_para 268 USE mod_grid_phy_lmdz, ONLY: nbp_lon 269 USE print_control_mod, ONLY: lunout,prt_level 270 270 #ifdef CPP_XIOS 271 271 USE wxios … … 274 274 IMPLICIT NONE 275 275 276 INCLUDE "dimensions.h"277 INCLUDE "temps.h"278 276 INCLUDE "clesphys.h" 279 include "iniprint.h"280 277 281 278 INTEGER :: iff … … 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 332 USE print_control_mod, ONLY: lunout,prt_level 334 333 335 334 #ifdef CPP_XIOS … … 340 339 IMPLICIT NONE 341 340 342 INCLUDE "dimensions.h"343 INCLUDE "temps.h"344 341 INCLUDE "clesphys.h" 345 include "iniprint.h"346 342 347 343 INTEGER :: iff, klevs … … 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 427 USE print_control_mod, ONLY: lunout,prt_level 430 428 431 429 #ifdef CPP_XIOS … … 434 432 435 433 IMPLICIT NONE 436 INCLUDE 'dimensions.h'437 INCLUDE 'iniprint.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 … … 467 463 !Et sinon on.... écrit 468 464 IF (SIZE(field)/=klon) & 469 CALL abort_ gcm('iophy::histwrite2d_cosp','Field first DIMENSION not equal to klon',1)465 CALL abort_physic('iophy::histwrite2d_cosp','Field first DIMENSION not equal to klon',1) 470 466 471 467 CALL Gather_omp(field,buffer_omp) … … 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 516 USE print_control_mod, ONLY: lunout,prt_level 519 517 520 518 #ifdef CPP_XIOS … … 524 522 525 523 IMPLICIT NONE 526 INCLUDE 'dimensions.h'527 INCLUDE 'iniprint.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 … … 568 564 !Et sinon on.... écrit 569 565 IF (SIZE(field,1)/=klon) & 570 CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)566 CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 571 567 nlev=SIZE(field,2) 572 568 … … 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 … … 613 609 ! en utilisant les routines getin de IOIPSL 614 610 use ioipsl 611 USE print_control_mod, ONLY: lunout,prt_level 615 612 616 613 IMPLICIT NONE 617 include 'iniprint.h'618 614 619 615 CHARACTER(LEN=20) :: nam_var, nnam_var
Note: See TracChangeset
for help on using the changeset viewer.