Changeset 4727 for LMDZ6/branches/LMDZ_ECRad/libf/phylmd/phyetat0_mod.F90
- Timestamp:
- Oct 19, 2023, 4:02:57 PM (13 months ago)
- Location:
- LMDZ6/branches/LMDZ_ECRad
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ_ECRad
- Property svn:mergeinfo changed
-
LMDZ6/branches/LMDZ_ECRad/libf/phylmd/phyetat0_mod.F90
r4482 r4727 20 20 qsol, fevap, z0m, z0h, agesno, & 21 21 du_gwd_rando, du_gwd_front, entr_therm, f0, fm_therm, & 22 falb_dir, falb_dif, prw_ancien, prlw_ancien, prsw_ancien, &23 ftsol, pbl_tke, pctsrf, q_ancien, ql_ancien, qs_ancien, rneb_ancien, radpas, radsol, rain_fall, ratqs, &24 rnebcon, rugoro, sig1, snow_fall, solaire_etat0, sollw, sollwdown, &22 falb_dir, falb_dif, prw_ancien, prlw_ancien, prsw_ancien, prbsw_ancien, & 23 ftsol, pbl_tke, pctsrf, q_ancien, ql_ancien, qs_ancien, qbs_ancien, rneb_ancien, radpas, radsol, rain_fall, ratqs, & 24 rnebcon, rugoro, sig1, snow_fall, bs_fall, solaire_etat0, sollw, sollwdown, & 25 25 solsw, solswfdiff, t_ancien, u_ancien, v_ancien, w01, wake_cstar, wake_deltaq, & 26 26 wake_deltat, wake_delta_pbl_TKE, delta_tsurf, beta_aridity, wake_fip, wake_pe, & … … 28 28 zstd, zthe, zval, ale_bl, ale_bl_trig, alp_bl, u10m, v10m, treedrg, & 29 29 ale_wake, ale_bl_stat, ds_ns, dt_ns, delta_sst, delta_sal, dter, dser, & 30 dt_ds, ratqs_inter 30 dt_ds, ratqs_inter_ 31 31 !FC 32 32 USE geometry_mod, ONLY: longitude_deg, latitude_deg … … 39 39 USE ocean_slab_mod, ONLY: nslay, tslab, seaice, tice, ocean_slab_init 40 40 USE time_phylmdz_mod, ONLY: init_iteration, pdtphys, itau_phy 41 #ifdef CPP_XIOS 42 USE wxios, ONLY: missing_val 43 #else 44 use netcdf, only: missing_val => nf90_fill_real 45 #endif 41 USE wxios, ONLY: missing_val_xios => missing_val, using_xios 42 use netcdf, only: missing_val_netcdf => nf90_fill_real 46 43 use config_ocean_skin_m, only: activate_ocean_skin 47 44 … … 92 89 REAL :: lon_startphy(klon), lat_startphy(klon) 93 90 CHARACTER(LEN=maxlen) :: tname, t(2) 94 91 REAL :: missing_val 92 93 IF (using_xios) THEN 94 missing_val=missing_val_xios 95 ELSE 96 missing_val=missing_val_netcdf 97 ENDIF 98 95 99 ! FH1D 96 100 ! real iolat(jjm+1) … … 300 304 301 305 !=================================================================== 306 ! Lecture dans le cas iflag_pbl_surface =1 307 !=================================================================== 308 309 if ( iflag_physiq <= 1 ) then 310 !=================================================================== 302 311 ! Lecture des temperatures du sol profond: 303 312 !=================================================================== … … 327 336 found=phyetat0_get(snow_fall,"snow_f","snow fall",0.) 328 337 found=phyetat0_get(rain_fall,"rain_f","rain fall",0.) 329 338 IF (ok_bs) THEN 339 found=phyetat0_get(bs_fall,"bs_f","blowing snow fall",0.) 340 ELSE 341 bs_fall(:)=0. 342 ENDIF 330 343 !======================================================================= 331 344 ! Radiation … … 374 387 ENDIF 375 388 389 endif ! iflag_physiq <= 1 390 376 391 ! Lecture de l'age de la neige: 377 392 found=phyetat0_srf(agesno,"AGESNO","SNOW AGE",0.001) … … 388 403 ancien_ok=ancien_ok.AND.phyetat0_get(prlw_ancien,"PRLWANCIEN","PRLWANCIEN",0.) 389 404 ancien_ok=ancien_ok.AND.phyetat0_get(prsw_ancien,"PRSWANCIEN","PRSWANCIEN",0.) 405 406 ! cas specifique des variables de la neige soufflee 407 IF (ok_bs) THEN 408 ancien_ok=ancien_ok.AND.phyetat0_get(qbs_ancien,"QBSANCIEN","QBSANCIEN",0.) 409 ancien_ok=ancien_ok.AND.phyetat0_get(prbsw_ancien,"PRBSWANCIEN","PRBSWANCIEN",0.) 410 ELSE 411 qbs_ancien(:,:)=0. 412 prbsw_ancien(:)=0. 413 ENDIF 390 414 391 415 ! Ehouarn: addtional tests to check if t_ancien, q_ancien contain … … 401 425 (maxval(t_ancien).EQ.minval(t_ancien)) ) THEN 402 426 ancien_ok=.false. 427 ENDIF 428 429 IF (ok_bs) THEN 430 IF ( (maxval(qbs_ancien).EQ.minval(qbs_ancien)) .OR. & 431 (maxval(prbsw_ancien).EQ.minval(prbsw_ancien)) ) THEN 432 ancien_ok=.false. 433 ENDIF 403 434 ENDIF 404 435 … … 464 495 465 496 ! fisrtilp/Clouds 0.002 could be ratqsbas. But can stay like this as well 466 found=phyetat0_get(ratqs_inter ,"RATQS_INTER","Relative width of the lsc sugrid scale water",0.002)497 found=phyetat0_get(ratqs_inter_,"RATQS_INTER","Relative width of the lsc sugrid scale water",0.002) 467 498 468 499 !=========================================== … … 591 622 ! Initialize module pbl_surface_mod 592 623 624 if ( iflag_physiq <= 1 ) then 593 625 CALL pbl_surface_init(fder, snow, qsurf, tsoil) 626 endif 594 627 595 628 ! Initialize module ocean_cpl_mod for the case of coupled ocean
Note: See TracChangeset
for help on using the changeset viewer.