Ignore:
Timestamp:
Nov 19, 2021, 4:58:59 PM (3 years ago)
Author:
lguez
Message:

Sync latest trunk changes to Ocean_skin

Location:
LMDZ6/branches/Ocean_skin
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Ocean_skin

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

    r3605 r4013  
    9393  ALLOCATE(boundslat_reg(jjm+1,2))
    9494 
    95   DO i=1,iim
    96    boundslon_reg(i,east)=rlonu(i+1)
    97    boundslon_reg(i,west)=rlonu(i)
     95  ! specific handling of the -180 longitude scalar grid point boundaries
     96  boundslon_reg(1,east)=rlonu(1)
     97  boundslon_reg(1,west)=rlonu(iim)-2*PI
     98  DO i=2,iim
     99   boundslon_reg(i,east)=rlonu(i)
     100   boundslon_reg(i,west)=rlonu(i-1)
    98101  ENDDO
    99102
     
    124127    cufi_glo(1) = cu(1)
    125128    cvfi_glo(1) = cv(1)
    126     boundslonfi_glo(1,north_east)=0
     129    boundslonfi_glo(1,north_east)=PI
    127130    boundslatfi_glo(1,north_east)=PI/2
    128     boundslonfi_glo(1,north_west)=2*PI
     131    boundslonfi_glo(1,north_west)=-PI
    129132    boundslatfi_glo(1,north_west)=PI/2
    130     boundslonfi_glo(1,south_west)=2*PI
     133    boundslonfi_glo(1,south_west)=-PI
    131134    boundslatfi_glo(1,south_west)=rlatv(1)
    132     boundslonfi_glo(1,south_east)=0
     135    boundslonfi_glo(1,south_east)=PI
    133136    boundslatfi_glo(1,south_east)=rlatv(1)
    134137    DO j=2,jjm
     
    141144        boundslonfi_glo(k,north_east)=rlonu(i)
    142145        boundslatfi_glo(k,north_east)=rlatv(j-1)
    143         boundslonfi_glo(k,north_west)=rlonu(i+1)
     146        if (i.eq.1) then
     147          ! special case for the first longitude's west bound
     148          boundslonfi_glo(k,north_west)=rlonu(iim)-2*PI
     149          boundslonfi_glo(k,south_west)=rlonu(iim)-2*PI
     150        else
     151          boundslonfi_glo(k,north_west)=rlonu(i-1)
     152          boundslonfi_glo(k,south_west)=rlonu(i-1)
     153        endif
    144154        boundslatfi_glo(k,north_west)=rlatv(j-1)
    145         boundslonfi_glo(k,south_west)=rlonu(i+1)
    146155        boundslatfi_glo(k,south_west)=rlatv(j)
    147156        boundslonfi_glo(k,south_east)=rlonu(i)
     
    154163    cufi_glo(klon_glo) = cu((iim+1)*jjm+1)
    155164    cvfi_glo(klon_glo) = cv((iim+1)*jjm-iim)
    156     boundslonfi_glo(klon_glo,north_east)= 0
     165    boundslonfi_glo(klon_glo,north_east)= PI
    157166    boundslatfi_glo(klon_glo,north_east)= rlatv(jjm)
    158     boundslonfi_glo(klon_glo,north_west)= 2*PI
     167    boundslonfi_glo(klon_glo,north_west)= -PI
    159168    boundslatfi_glo(klon_glo,north_west)= rlatv(jjm)
    160     boundslonfi_glo(klon_glo,south_west)= 2*PI
     169    boundslonfi_glo(klon_glo,south_west)= -PI
    161170    boundslatfi_glo(klon_glo,south_west)= -PI/2
    162     boundslonfi_glo(klon_glo,south_east)= 0
     171    boundslonfi_glo(klon_glo,south_east)= PI
    163172    boundslatfi_glo(klon_glo,south_east)= -Pi/2
    164173
  • LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90

    r3798 r4013  
    119119  INTEGER :: flag_aerosol
    120120  INTEGER :: flag_aerosol_strat
     121  INTEGER :: flag_volc_surfstrat
    121122  LOGICAL :: flag_aer_feedback
    122123  LOGICAL :: flag_bc_internal_mixture
     
    138139                   iflag_cldcon,                                        &
    139140                   iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs,            &
    140                    ok_ade, ok_aie, ok_alw, ok_cdnc, ok_volcan,          &
    141                    aerosol_couple,                                      &
    142                    chemistry_couple, flag_aerosol, flag_aerosol_strat,  &
    143                    flag_aer_feedback,                                   &
    144                    flag_bc_internal_mixture, bl95_b0, bl95_b1, &
     141                   ok_ade, ok_aie, ok_alw, ok_cdnc, ok_volcan, flag_volc_surfstrat,     &
     142                   aerosol_couple, chemistry_couple, flag_aerosol, flag_aerosol_strat,  &
     143                   flag_aer_feedback, flag_bc_internal_mixture, bl95_b0, bl95_b1,       &
    145144                   read_climoz, alp_offset)
    146145  CALL phys_state_var_init(read_climoz)
     
    240239 
    241240  z0m(:,is_oce) = rugmer(:)
    242   z0m(:,is_ter) = MAX(1.0e-05,zstd(:)*zsig(:)/2.0)
    243   z0m(:,is_lic) = MAX(1.0e-05,zstd(:)*zsig(:)/2.0)
     241  z0m(:,is_ter) = 0.01 !MAX(1.0e-05,zstd(:)*zsig(:)/2.0)
     242  z0m(:,is_lic) = 0.001 !MAX(1.0e-05,zstd(:)*zsig(:)/2.0)
    244243  z0m(:,is_sic) = 0.001
    245244  z0h(:,:)=z0m(:,:)
  • LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phylmd/iniphysiq_mod.F90

    r3798 r4013  
    1616  USE mod_phys_lmdz_para, ONLY: klon_omp ! number of columns (on local omp grid)
    1717  USE vertical_layers_mod, ONLY : init_vertical_layers
    18   USE infotrac, ONLY: nqtot,nqo,nbtr,tname,ttext,type_trac,&
     18  USE infotrac, ONLY: nqtot,nqo,nbtr,nqCO2,tname,ttext,type_trac,&
    1919                      niadv,conv_flg,pbl_flg,solsym,&
    2020                      nqfils,nqdesc,nqdesc_tot,iqfils,iqpere,&
     
    2424                      iso_indnum,zone_num,phase_num,&
    2525                      indnum_fn_num,index_trac,&
    26                       niso,ntraceurs_zone,ntraciso
     26                      niso,ntraceurs_zone,ntraciso,nqtottr,itr_indice
    2727#ifdef CPP_StratAer
    2828  USE infotrac, ONLY: nbtr_bin, nbtr_sulgas, id_OCS_strat, &
     
    146146
    147147  ! Initialize tracer names, numbers, etc. for physics
    148   CALL init_infotrac_phy(nqtot,nqo,nbtr,tname,ttext,type_trac,&
     148  CALL init_infotrac_phy(nqtot,nqo,nbtr,nqtottr,nqCO2,tname,ttext,type_trac,&
    149149                         niadv,conv_flg,pbl_flg,solsym,&
    150150                         nqfils,nqdesc,nqdesc_tot,iqfils,iqpere,&
     
    154154                         iso_indnum,zone_num,phase_num,&
    155155                         indnum_fn_num,index_trac,&
    156                          niso,ntraceurs_zone,ntraciso&
     156                         niso,ntraceurs_zone,ntraciso,itr_indice &
    157157#ifdef CPP_StratAer
    158158                         ,nbtr_bin,nbtr_sulgas&
     
    172172!$OMP END PARALLEL
    173173
    174   IF (type_trac == 'inca') THEN
     174  IF (type_trac == 'inca' .OR. type_trac == 'inco') THEN
    175175#ifdef INCA
    176176     call init_const_lmdz( &
     
    198198  END IF
    199199
    200   IF (type_trac == 'inca') THEN
     200  IF (type_trac == 'inca' .OR. type_trac == 'inco') THEN
    201201#ifdef INCA
    202202     CALL init_inca_dim(klon_omp,nbp_lev,nbp_lon,nbp_lat - 1, &
Note: See TracChangeset for help on using the changeset viewer.