Ignore:
Timestamp:
Jul 26, 2024, 12:23:19 PM (5 months ago)
Author:
abarral
Message:

Correct arguments order in abort_gcm
Merge r5085 r5097 r5109 r5124 r5125 r5126 r5127
Replace calls to get_ioipsl* by IOIPSL in phylmdiso/
Symlink inlandsis and lmdz_simu_airs into phylmdiso as it's needed for the compilation
Remove now unused key from makelmdz_fcm

Location:
LMDZ6/branches/Amaury_dev
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev

  • LMDZ6/branches/Amaury_dev/libf/phylmd/phys_local_var_mod.F90

    r5101 r5132  
    407407  REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxfluxlat, zxtsol, snow_lsc, zxfqfonte
    408408  !$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)
    411412  REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxqsurf, rain_lsc, rain_num
    412413  !$OMP THREADPRIVATE(zxqsurf, rain_lsc, rain_num)
     
    414415      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: xtevap,xtprw
    415416!$OMP THREADPRIVATE(xtevap,xtprw)
    416       REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: h1_diag,runoff_diag
     417      REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: h1_diag
    417418      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: xtrunoff_diag
    418 !$OMP THREADPRIVATE(h1_diag,runoff_diag,xtrunoff_diag)
     419!$OMP THREADPRIVATE(h1_diagv,xtrunoff_diag)
    419420      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: zxfxtcalving
    420421!$OMP THREADPRIVATE(zxfxtcalving)
     
    10461047    ALLOCATE(zxfqcalving(klon), zxfluxlat(klon))
    10471048    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.
    10491052    ALLOCATE(zxustartlic(klon), zxrhoslic(klon), zxqsaltlic(klon))
    10501053    zxustartlic(:) = 0. ; zxrhoslic(:) = 0. ; zxqsaltlic(:) = 0.
     
    10521055    ALLOCATE(rain_num(klon))
    10531056    ALLOCATE(qlth(klon, klev), qith(klon, klev), qsith(klon, klev), wiceth(klon, klev))
    1054 
    10551057#ifdef ISO
    10561058      ALLOCATE(xtevap(ntraciso,klon))
     
    10611063      ALLOCATE(xtrain_lsc(ntraciso,klon))
    10621064      ALLOCATE(xtrunoff_diag(niso,klon))
    1063       ALLOCATE(h1_diag(klon),runoff_diag(klon))
     1065      ALLOCATE(h1_diag(klon))
    10641066!SN
    1065       runoff_diag(:)=0. ; xtrunoff_diag(:,:)=0. ! because variables are only given values on knon grid points
     1067      xtrunoff_diag(:,:)=0. ! because variables are only given values on knon grid points
    10661068#endif
    10671069
     
    14671469    DEALLOCATE(uwat, vwat)
    14681470    DEALLOCATE(zxfqcalving, zxfluxlat)
    1469     DEALLOCATE(zxrunofflic)
     1471! SN runoff_diag
     1472      DEALLOCATE(zxrunofflic, runoff_diag)
    14701473    DEALLOCATE(zxustartlic, zxrhoslic, zxqsaltlic)
    14711474    DEALLOCATE(zxtsol, snow_lsc, zxfqfonte, zxqsurf)
     
    14961499      DEALLOCATE(dxtvdf_x, dxtvdf_w)
    14971500      DEALLOCATE(xt_therm)
    1498       DEALLOCATE(h1_diag,runoff_diag,xtrunoff_diag)
     1501      DEALLOCATE(h1_diag,xtrunoff_diag)
    14991502#endif
    15001503
  • LMDZ6/branches/Amaury_dev/libf/phylmd/phys_output_ctrlout_mod.F90

    r5117 r5132  
    21082108  TYPE(ctrl_out), SAVE :: o_runoff = ctrl_out((/ 1, 1, 10, 1, 10, 10, 11, 11, 11, 11/), &
    21092109    'runoff', 'Run-off rate land ice', 'kg/m2/s', (/ ('', i=1, 10) /))
    2110 #ifdef ISO
     2110! SN add runoff_diag
     2111!#ifdef ISO
    21112112  TYPE(ctrl_out), SAVE :: o_runoff_diag = ctrl_out((/ 1, 1, 10, 1, 10, 10, 11, 11, 11, 11/), &
    21122113    'runoffland', 'Run-off rate land for bucket', 'kg/m2/s', (/ ('', i=1, 10) /))
    2113 #endif
     2114!#endif
    21142115  TYPE(ctrl_out), SAVE :: o_albslw3 = ctrl_out((/ 1, 1, 1, 1, 10, 10, 11, 11, 11, 11/), &
    21152116    'albslw3', 'Surface albedo LW3', '-', (/ ('', i=1, 10) /))
  • LMDZ6/branches/Amaury_dev/libf/phylmd/phys_output_write_mod.F90

    r5117 r5132  
    6464         o_fder, o_ffonte, o_fqcalving, o_fqfonte, o_mrroli, o_runofflic, &
    6565         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, &
    6768         o_albslw3, o_pourc_srf, o_fract_srf, &
    6869         o_taux_srf, o_tauy_srf, o_tsol_srf, &
     
    207208! Isotopes
    208209         o_xtprecip,o_xtplul,o_xtpluc,o_xtovap,o_xtoliq,o_xtcond, &
    209          o_runoff_diag, o_xtrunoff_diag, &
     210         o_xtrunoff_diag, &
    210211         o_xtevap,o_dxtdyn,o_dxtldyn,o_dxtcon,o_dxtlsc,o_dxteva, &
    211212         o_dxtajs,o_dxtvdf,o_dxtthe, o_dxtch4, &
     
    317318         zxffonte, zxfqcalving, zxfqfonte, zxrunofflic, fluxu, &
    318319         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, &
    320322         t2m, fluxt, fluxlat, fsollw, fsolsw, &
    321323         wfbils, wfevap, &
     
    391393        d_xt_ajs, d_xt_ajsb, &
    392394        d_xt_prod_nucl,d_xt_cosmo,d_xt_decroiss, &
    393         runoff_diag, xtrunoff_diag, &
     395        xtrunoff_diag, &
    394396#endif
    395397         ep, epmax_diag, &  ! epmax_cape
     
    446448    USE indice_sol_mod, ONLY: nbsrf
    447449#ifdef ISO
    448     USE isotopes_mod, ONLY: iso_HTO
     450    USE isotopes_mod, ONLY: iso_HTO, isoName
    449451#endif
    450452    USE lmdz_geometry, ONLY: cell_area, latitude_deg, longitude_deg
     
    525527    LOGICAL, PARAMETER :: debug_strataer=.FALSE.
    526528    CHARACTER(LEN=maxlen) :: unt
     529
     530#ifdef ISO
     531    CHARACTER(LEN=maxlen) :: outiso
     532#endif
     533
    527534    REAL,DIMENSION(klon,klev) :: z, dz
    528535    REAL,DIMENSION(klon)      :: zrho, zt
     
    28272834       end if
    28282835
     2836    !! runoff land bucket - ajout S. Nguyen 23 07 2024
     2837    CALL histwrite_phy(o_runoff_diag, runoff_diag)
     2838
    28292839#ifdef ISO
    28302840    !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
    28352843        !WRITE(*,*) 'ixt,o_xtovap(ixt)=',ixt,o_xtovap(ixt)
    28362844        IF (vars_defined) zx_tmp_fi2d(:) = xtrain_fall(ixt,:) + xtsnow_fall(ixt,:)
     
    29092917          ENDDO !  iff
    29102918#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
    29112935          !On finalise l'initialisation:
    29122936          IF (using_xios) CALL wxios_closedef()
Note: See TracChangeset for help on using the changeset viewer.