Changeset 5132 for LMDZ6/branches/Amaury_dev/libf/phylmd
- Timestamp:
- Jul 26, 2024, 12:23:19 PM (5 months ago)
- Location:
- LMDZ6/branches/Amaury_dev
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev
- Property svn:mergeinfo changed
/LMDZ6/trunk (added) merged: 5085,5097,5109,5121,5124-5127
- Property svn:mergeinfo changed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/phys_local_var_mod.F90
r5101 r5132 407 407 REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxfluxlat, zxtsol, snow_lsc, zxfqfonte 408 408 !$OMP THREADPRIVATE(zxfluxlat, zxtsol, snow_lsc, zxfqfonte) 409 REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxrunofflic 410 !$OMP THREADPRIVATE(zxrunofflic) 409 !SN runoffdiag 410 REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxrunofflic, runoff_diag 411 !$OMP THREADPRIVATE(zxrunofflic, runoff_diag) 411 412 REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxqsurf, rain_lsc, rain_num 412 413 !$OMP THREADPRIVATE(zxqsurf, rain_lsc, rain_num) … … 414 415 REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: xtevap,xtprw 415 416 !$OMP THREADPRIVATE(xtevap,xtprw) 416 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: h1_diag ,runoff_diag417 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: h1_diag 417 418 REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: xtrunoff_diag 418 !$OMP THREADPRIVATE(h1_diag ,runoff_diag,xtrunoff_diag)419 !$OMP THREADPRIVATE(h1_diagv,xtrunoff_diag) 419 420 REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: zxfxtcalving 420 421 !$OMP THREADPRIVATE(zxfxtcalving) … … 1046 1047 ALLOCATE(zxfqcalving(klon), zxfluxlat(klon)) 1047 1048 ALLOCATE(zxtsol(klon), snow_lsc(klon), zxfqfonte(klon), zxqsurf(klon)) 1048 ALLOCATE(zxrunofflic(klon)) 1049 ! SN add runoff_diag 1050 ALLOCATE(zxrunofflic(klon), runoff_diag(klon)) 1051 runoff_diag(:)=0. 1049 1052 ALLOCATE(zxustartlic(klon), zxrhoslic(klon), zxqsaltlic(klon)) 1050 1053 zxustartlic(:) = 0. ; zxrhoslic(:) = 0. ; zxqsaltlic(:) = 0. … … 1052 1055 ALLOCATE(rain_num(klon)) 1053 1056 ALLOCATE(qlth(klon, klev), qith(klon, klev), qsith(klon, klev), wiceth(klon, klev)) 1054 1055 1057 #ifdef ISO 1056 1058 ALLOCATE(xtevap(ntraciso,klon)) … … 1061 1063 ALLOCATE(xtrain_lsc(ntraciso,klon)) 1062 1064 ALLOCATE(xtrunoff_diag(niso,klon)) 1063 ALLOCATE(h1_diag(klon) ,runoff_diag(klon))1065 ALLOCATE(h1_diag(klon)) 1064 1066 !SN 1065 runoff_diag(:)=0. ;xtrunoff_diag(:,:)=0. ! because variables are only given values on knon grid points1067 xtrunoff_diag(:,:)=0. ! because variables are only given values on knon grid points 1066 1068 #endif 1067 1069 … … 1467 1469 DEALLOCATE(uwat, vwat) 1468 1470 DEALLOCATE(zxfqcalving, zxfluxlat) 1469 DEALLOCATE(zxrunofflic) 1471 ! SN runoff_diag 1472 DEALLOCATE(zxrunofflic, runoff_diag) 1470 1473 DEALLOCATE(zxustartlic, zxrhoslic, zxqsaltlic) 1471 1474 DEALLOCATE(zxtsol, snow_lsc, zxfqfonte, zxqsurf) … … 1496 1499 DEALLOCATE(dxtvdf_x, dxtvdf_w) 1497 1500 DEALLOCATE(xt_therm) 1498 DEALLOCATE(h1_diag, runoff_diag,xtrunoff_diag)1501 DEALLOCATE(h1_diag,xtrunoff_diag) 1499 1502 #endif 1500 1503 -
LMDZ6/branches/Amaury_dev/libf/phylmd/phys_output_ctrlout_mod.F90
r5117 r5132 2108 2108 TYPE(ctrl_out), SAVE :: o_runoff = ctrl_out((/ 1, 1, 10, 1, 10, 10, 11, 11, 11, 11/), & 2109 2109 'runoff', 'Run-off rate land ice', 'kg/m2/s', (/ ('', i=1, 10) /)) 2110 #ifdef ISO 2110 ! SN add runoff_diag 2111 !#ifdef ISO 2111 2112 TYPE(ctrl_out), SAVE :: o_runoff_diag = ctrl_out((/ 1, 1, 10, 1, 10, 10, 11, 11, 11, 11/), & 2112 2113 'runoffland', 'Run-off rate land for bucket', 'kg/m2/s', (/ ('', i=1, 10) /)) 2113 #endif2114 !#endif 2114 2115 TYPE(ctrl_out), SAVE :: o_albslw3 = ctrl_out((/ 1, 1, 1, 1, 10, 10, 11, 11, 11, 11/), & 2115 2116 'albslw3', 'Surface albedo LW3', '-', (/ ('', i=1, 10) /)) -
LMDZ6/branches/Amaury_dev/libf/phylmd/phys_output_write_mod.F90
r5117 r5132 64 64 o_fder, o_ffonte, o_fqcalving, o_fqfonte, o_mrroli, o_runofflic, & 65 65 o_taux, o_tauy, o_snowsrf, o_qsnow, & 66 o_snowhgt, o_toice, o_sissnow, o_runoff, & 66 ! SN runoff_diag 67 o_snowhgt, o_toice, o_sissnow, o_runoff, o_runoff_diag, & 67 68 o_albslw3, o_pourc_srf, o_fract_srf, & 68 69 o_taux_srf, o_tauy_srf, o_tsol_srf, & … … 207 208 ! Isotopes 208 209 o_xtprecip,o_xtplul,o_xtpluc,o_xtovap,o_xtoliq,o_xtcond, & 209 o_ runoff_diag, o_xtrunoff_diag, &210 o_xtrunoff_diag, & 210 211 o_xtevap,o_dxtdyn,o_dxtldyn,o_dxtcon,o_dxtlsc,o_dxteva, & 211 212 o_dxtajs,o_dxtvdf,o_dxtthe, o_dxtch4, & … … 317 318 zxffonte, zxfqcalving, zxfqfonte, zxrunofflic, fluxu, & 318 319 fluxv, zxsnow, qsnow, snowhgt, to_ice, & 319 sissnow, runoff, albsol3_lic, evap_pot, & 320 ! SN runoff_diag 321 sissnow, runoff, runoff_diag, albsol3_lic, evap_pot, & 320 322 t2m, fluxt, fluxlat, fsollw, fsolsw, & 321 323 wfbils, wfevap, & … … 391 393 d_xt_ajs, d_xt_ajsb, & 392 394 d_xt_prod_nucl,d_xt_cosmo,d_xt_decroiss, & 393 runoff_diag,xtrunoff_diag, &395 xtrunoff_diag, & 394 396 #endif 395 397 ep, epmax_diag, & ! epmax_cape … … 446 448 USE indice_sol_mod, ONLY: nbsrf 447 449 #ifdef ISO 448 USE isotopes_mod, ONLY: iso_HTO 450 USE isotopes_mod, ONLY: iso_HTO, isoName 449 451 #endif 450 452 USE lmdz_geometry, ONLY: cell_area, latitude_deg, longitude_deg … … 525 527 LOGICAL, PARAMETER :: debug_strataer=.FALSE. 526 528 CHARACTER(LEN=maxlen) :: unt 529 530 #ifdef ISO 531 CHARACTER(LEN=maxlen) :: outiso 532 #endif 533 527 534 REAL,DIMENSION(klon,klev) :: z, dz 528 535 REAL,DIMENSION(klon) :: zrho, zt … … 2827 2834 end if 2828 2835 2836 !! runoff land bucket - ajout S. Nguyen 23 07 2024 2837 CALL histwrite_phy(o_runoff_diag, runoff_diag) 2838 2829 2839 #ifdef ISO 2830 2840 !WRITE(*,*) 'tmp phys_output_write: ntiso=',ntiso 2831 !! runoff land bucket - ajout S. Nguyen 25 avril 2024 2832 CALL histwrite_phy(o_runoff_diag, runoff_diag) 2833 2834 do ixt=1,ntiso 2841 2842 DO ixt = 1, ntiso 2835 2843 !WRITE(*,*) 'ixt,o_xtovap(ixt)=',ixt,o_xtovap(ixt) 2836 2844 IF (vars_defined) zx_tmp_fi2d(:) = xtrain_fall(ixt,:) + xtsnow_fall(ixt,:) … … 2909 2917 ENDDO ! iff 2910 2918 #endif 2919 2920 !SN activate water isotopes present in tracer.def 2921 #ifdef ISO 2922 DO ixt = 1, ntiso 2923 outiso = TRIM(isoName(ixt)) 2924 i = INDEX(outiso, '_', .TRUE.) 2925 outiso = outiso(1:i-1)//outiso(i+1:LEN_TRIM(outiso)) 2926 ! dayly 2927 CALL xios_set_fieldgroup_attr("dd_2D_"//TRIM(outiso), enabled=.TRUE.) 2928 CALL xios_set_fieldgroup_attr("dd_3D_"//TRIM(outiso), enabled=.TRUE.) 2929 ! monthly 2930 CALL xios_set_fieldgroup_attr("mm_2D_"//TRIM(outiso), enabled=.TRUE.) 2931 CALL xios_set_fieldgroup_attr("mm_3D_"//TRIM(outiso), enabled=.TRUE.) 2932 2933 ENDDO 2934 #endif 2911 2935 !On finalise l'initialisation: 2912 2936 IF (using_xios) CALL wxios_closedef()
Note: See TracChangeset
for help on using the changeset viewer.