Ignore:
Timestamp:
Nov 21, 2019, 4:43:45 PM (5 years ago)
Author:
lguez
Message:

Merge revisions 3427:3600 of trunk into branch Ocean_skin

Location:
LMDZ6/branches/Ocean_skin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Ocean_skin

  • LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/inigeomphy_mod.F90

    r2963 r3605  
    7676  REAL,ALLOCATABLE,SAVE :: boundslonfi(:,:)
    7777  REAL,ALLOCATABLE,SAVE :: boundslatfi(:,:)
    78 !$OMP THREADPRIVATE (latfi,lonfi,cufi,cvfi,airefi,boundslonfi,boundslatfi)
     78  INTEGER,ALLOCATABLE,SAVE :: ind_cell_glo_fi(:)
     79!$OMP THREADPRIVATE (latfi,lonfi,cufi,cvfi,airefi,boundslonfi,boundslatfi,ind_cell_glo_fi)
    7980
    8081  ! Initialize Physics distibution and parameters and interface with dynamics
     
    9394 
    9495  DO i=1,iim
     96   boundslon_reg(i,east)=rlonu(i+1)
    9597   boundslon_reg(i,west)=rlonu(i)
    96    boundslon_reg(i,east)=rlonu(i+1)
    9798  ENDDO
    9899
     
    204205  ALLOCATE(boundslonfi(klon_omp,4))
    205206  ALLOCATE(boundslatfi(klon_omp,4))
     207  ALLOCATE(ind_cell_glo_fi(klon_omp))
    206208
    207209
     
    214216  boundslonfi(1:klon_omp,:) = boundslonfi_glo(offset+klon_omp_begin:offset+klon_omp_end,:)
    215217  boundslatfi(1:klon_omp,:) = boundslatfi_glo(offset+klon_omp_begin:offset+klon_omp_end,:)
     218  ind_cell_glo_fi(1:klon_omp)=(/ (i,i=offset+klon_omp_begin,offset+klon_omp_end) /)
    216219
    217220  ! copy over local grid longitudes and latitudes
    218221  CALL init_geometry(klon_omp,lonfi,latfi,boundslonfi,boundslatfi, &
    219                      airefi,cufi,cvfi)
     222                     airefi,ind_cell_glo_fi,cufi,cvfi)
    220223
    221224  ! copy over preff , ap(), bp(), etc
  • LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phydev/iniphysiq_mod.F90

    r2588 r3605  
    7171  CALL inifis(prad,pg,pr,pcpp)
    7272 
    73   ! Initialize dimphy module
    74   CALL Init_dimphy(klon_omp,nlayer)
    75 
    7673  ! Initialize tracer names, numbers, etc. for physics
    7774  CALL init_infotrac_phy(nqtot,type_trac)
  • LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phylmd/etat0dyn_netcdf.F90

    r2941 r3605  
    100100
    101101  deg2rad = pi/180.0
    102 
     102  y(:,:,:)=0  !ym warning unitialized variable
     103 
    103104! Compute psol AND tsol, knowing phis.
    104105!*******************************************************************************
  • LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90

    r3412 r3605  
     1!
     2! $Id$
     3!
    14MODULE etat0phys
    25!
     
    4043  USE phys_state_var_mod, ONLY: zmea, zstd, zsig, zgam, zthe, zpic, zval, z0m, &
    4144          solsw, radsol, t_ancien, wake_deltat, wake_s,  rain_fall, qsol, z0h, &
    42           sollw, rugoro, q_ancien, wake_deltaq, wake_pe, snow_fall, ratqs,w01, &
     45          sollw,sollwdown, rugoro, q_ancien, wake_deltaq, wake_pe, snow_fall, ratqs,w01, &
    4346    sig1, ftsol, clwcon, fm_therm, wake_Cstar,  pctsrf,  entr_therm,radpas, f0,&
    44     zmax0,fevap, rnebcon,falb_dir, wake_fip,    agesno,  detr_therm, pbl_tke,  &
     47    zmax0,fevap, rnebcon,falb_dir, falb_dif, wake_fip,    agesno,  detr_therm, pbl_tke,  &
    4548    phys_state_var_init, ql_ancien, qs_ancien, prlw_ancien, prsw_ancien, &
    46     prw_ancien
     49    prw_ancien, u10m,v10m, treedrg, u_ancien, v_ancien, wake_delta_pbl_TKE, wake_dens, &
     50    ale_bl, ale_bl_trig, alp_bl, &
     51    ale_wake, ale_bl_stat
     52
    4753  USE comconst_mod, ONLY: pi, dtvr
    4854
     
    110116  INTEGER :: iflag_radia, iflag_cldcon, iflag_ratqs
    111117  REAL    :: ratqsbas, ratqshaut, tau_ratqs
    112   LOGICAL :: ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple, chemistry_couple
     118  LOGICAL :: ok_ade, ok_aie, ok_volcan, ok_alw, ok_cdnc, aerosol_couple, chemistry_couple
    113119  INTEGER :: flag_aerosol
    114120  INTEGER :: flag_aerosol_strat
     
    133139                   iflag_cldcon,                                        &
    134140                   iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs,            &
    135                    ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple,     &
     141                   ok_ade, ok_aie, ok_alw, ok_cdnc, ok_volcan,          &
     142                   aerosol_couple,                                      &
    136143                   chemistry_couple, flag_aerosol, flag_aerosol_strat,  &
    137144                   flag_aer_feedback,                                   &
     
    194201  falb_dir(:, :, is_oce) = 0.5
    195202  falb_dir(:, :, is_sic) = 0.6
     203
     204!ym warning missing init for falb_dif => set to 0
     205  falb_dif(:,:,:)=0
     206
     207  u10m(:,:)=0 
     208  v10m(:,:)=0 
     209  treedrg(:,:,:)=0
     210
    196211  fevap(:,:) = 0.
    197212  DO i=1,nbsrf; qsolsrf(:,i)=150.; END DO
     
    201216  solsw      = 165.
    202217  sollw      = -53.
     218!ym warning missing init for sollwdown => set to 0
     219  sollwdown  = 0.
    203220  t_ancien   = 273.15
    204221  q_ancien   = 0.
     
    209226  prw_ancien = 0.
    210227  agesno     = 0.
    211 
     228 
     229  u_ancien = 0.
     230  v_ancien = 0.
     231  wake_delta_pbl_TKE(:,:,:)=0
     232  wake_dens(:)=0
     233  ale_bl = 0.
     234  ale_bl_trig =0.
     235  alp_bl=0.
     236  ale_wake=0.
     237  ale_bl_stat=0.
     238 
     239  z0m(:,:)=0 ! ym missing 5th subsurface initialization
     240 
    212241  z0m(:,is_oce) = rugmer(:)
    213242  z0m(:,is_ter) = MAX(1.0e-05,zstd(:)*zsig(:)/2.0)
     
    315344  ALLOCATE(zmea0(iml,jml),zstd0(iml,jml)) !--- Mean orography and std deviation
    316345  ALLOCATE(zsig0(iml,jml),zgam0(iml,jml)) !--- Slope and nisotropy
     346  zsig0(:,:)=0   !ym uninitialized variable
     347  zgam0(:,:)=0   !ym uninitialized variable
    317348  ALLOCATE(zthe0(iml,jml))                !--- Highest slope orientation
     349  zthe0(:,:)=0   !ym uninitialized variable
    318350  ALLOCATE(zpic0(iml,jml),zval0(iml,jml)) !--- Peaks and valley heights
    319351
  • LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phylmd/iniphysiq_mod.F90

    r3125 r3605  
    3131  USE inifis_mod, ONLY: inifis
    3232  USE time_phylmdz_mod, ONLY: init_time
    33   USE temps_mod, ONLY: annee_ref, day_ini, day_ref, start_time, calend
     33  USE temps_mod, ONLY: annee_ref, day_ini, day_ref, start_time, calend, year_len
    3434  USE infotrac_phy, ONLY: init_infotrac_phy
    3535  USE phystokenc_mod, ONLY: init_phystokenc
    3636  USE phyaqua_mod, ONLY: iniaqua
     37  USE comconst_mod, ONLY: omeg, rad
    3738#ifdef INCA
    3839  USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic
     
    118119
    119120  ! Initialize dimphy module (unless in 1D where it has already been done)
    120   IF (klon_glo>1) CALL Init_dimphy(klon_omp,nlayer)
     121!  IF (klon_glo>1) CALL Init_dimphy(klon_omp,nlayer)
    121122
    122123  ! Copy over "offline" settings
     
    134135                                  cu,cuvsurcv,cv,cvusurcu, &
    135136                                  aire,apoln,apols, &
    136                                   aireu,airev,rlatvdyn)
     137                                  aireu,airev,rlatvdyn,rad,omeg)
    137138  END IF
    138139
     
    172173  ! Additional initializations for aquaplanets
    173174  IF (iflag_phys>=100) THEN
    174     CALL iniaqua(klon_omp,iflag_phys)
     175    CALL iniaqua(klon_omp,year_len,iflag_phys)
    175176  END IF
    176177
Note: See TracChangeset for help on using the changeset viewer.