Changeset 1961


Ignore:
Timestamp:
Feb 8, 2014, 1:37:48 AM (10 years ago)
Author:
fhourdin
Message:

ocean_force_mod est mis à jour pour inclure en option le cas 1D, et éviter

de dupliquer la routine dans phy1d.

clesphys.h est modifié pour placer les réels avant les entiers et logiques

pour éviter des warnings à la compilation.

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/clesphys.h

    r1938 r1961  
    1818       REAL(kind=8) CH4_ppb, N2O_ppb, CFC11_ppt, CFC12_ppt
    1919!IM ajout CFMIP2/CMIP5
    20        REAL co2_ppm_per
    2120       LOGICAL ok_4xCO2atm
    2221       REAL(kind=8) RCO2_per,RCH4_per,RN2O_per,RCFC11_per,RCFC12_per
     
    7877       LOGICAL :: ok_hines, ok_gwd_rando
    7978
    80        COMMON/clesphys/cycle_diurne, soil_model, new_oliq,              &
    81      &     ok_orodr, ok_orolf, ok_limitvrai, nbapp_rad, iflag_con       &
    82      &     , iflag_ener_conserv                                         &
    83      &     , co2_ppm, solaire                                           &
     79       COMMON/clesphys/                                                 &
     80! REAL FIRST
     81     &       co2_ppm, solaire                                           &
    8482     &     , RCO2, RCH4, RN2O, RCFC11, RCFC12                           &
    8583     &     , RCO2_act, RCH4_act, RN2O_act, RCFC11_act, RCFC12_act       &
    86      &     , ok_4xCO2atm                                                &
    8784     &     , RCO2_per, RCH4_per, RN2O_per, RCFC11_per, RCFC12_per       &
    8885     &     , CH4_ppb, N2O_ppb, CFC11_ppt, CFC12_ppt                     &
    8986     &     , CH4_ppb_per, N2O_ppb_per, CFC11_ppt_per, CFC12_ppt_per     &
    90      &     , top_height, overlap, cdmmax, cdhmax, ksta, ksta_ter        &
    91      &     , ok_kzmin, fmagic, pmagic                                   &
     87     &     , cdmmax, cdhmax, ksta, ksta_ter                             &
     88     &     , fmagic, pmagic                                             &
    9289     &     , f_cdrag_ter,f_cdrag_oce,f_rugoro                           &
     90     &     , pasphys            , freq_outNMC, freq_calNMC              &
     91     &     , lonmin_ins, lonmax_ins, latmin_ins, latmax_ins             &
     92     &     , freq_ISCCP, ecrit_ISCCP, freq_COSP                         &
     93     &     , cvl_corr                                                   &
     94     &     , qsol0,albsno0,evap0                                        &
     95     &     , co2_ppm0                                                   &
     96     &     , ecrit_LES                                                  &
     97     &     , ecrit_ins, ecrit_hf, ecrit_day                             &
     98     &     , ecrit_mth, ecrit_tra, ecrit_reg                            &
     99! THEN INTEGER AND LOGICALS
     100     &     , top_height                                                 &
     101     &     , cycle_diurne, soil_model, new_oliq                         &
     102     &     ,ok_orodr, ok_orolf, ok_limitvrai, nbapp_rad, iflag_con      &
     103     &     , iflag_ener_conserv                                         &
     104     &     , ok_4xCO2atm                                                &
     105     &     , overlap                                                    &
     106     &     , ok_kzmin                                                   &
    93107     &     , lev_histhf, lev_histday, lev_histmth                       &
    94108     &     , lev_histins, lev_histLES, lev_histdayNMC, levout_histNMC   &
    95      &     , pasphys, ok_histNMC, freq_outNMC, freq_calNMC              &
     109     &     , ok_histNMC                                                 &
    96110     &     , type_run, ok_regdyn, ok_cosp                               &
    97111     &     , ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP                     &
    98      &     , lonmin_ins, lonmax_ins, latmin_ins, latmax_ins             &
    99      &     , ecrit_ins, ecrit_hf, ecrit_day                             &
    100      &     , ecrit_mth, ecrit_tra, ecrit_reg                            &
    101      &     , freq_ISCCP, ecrit_ISCCP, freq_COSP, ip_ebil_phy            &
    102      &     , ok_lic_melt, cvl_corr, aer_type                            &
    103      &     , qsol0,albsno0,evap0                                        &
    104      &     , iflag_rrtm, ok_strato,ok_hines,ecrit_LES                   &
    105      &     , co2_ppm0, iflag_ice_thermo, ok_gwd_rando
     112     &     , ip_ebil_phy                                                &
     113     &     , ok_lic_melt,           aer_type                            &
     114     &     , iflag_rrtm, ok_strato,ok_hines                             &
     115     &     , iflag_ice_thermo, ok_gwd_rando
    106116     
    107117       save /clesphys/
  • LMDZ5/trunk/libf/phylmd/ocean_forced_mod.F90

    r1907 r1961  
    3030    USE calcul_fluxs_mod
    3131    USE limit_read_mod
     32    USE mod_grid_phy_lmdz
    3233    USE indice_sol_mod
    33 
    3434    INCLUDE "YOMCST.h"
    3535
     
    8181!
    8282!****************************************************************************************
    83     CALL limit_read_sst(knon,knindex,tsurf_lim)
     83!--sb:
     84!!jyg    if (knon.eq.1) then ! single-column model
     85    if (klon_glo.eq.1) then ! single-column model
     86      CALL read_tsurf1d(knon,tsurf_lim) ! new
     87    else ! GCM
     88      CALL limit_read_sst(knon,knindex,tsurf_lim)
     89    endif ! knon
     90!sb--
    8491
    8592!****************************************************************************************
     
    140147    USE indice_sol_mod
    141148
     149!    INCLUDE "indicesol.h"
    142150    INCLUDE "dimsoil.h"
    143151    INCLUDE "YOMCST.h"
     
    260268
    261269  END SUBROUTINE ocean_forced_ice
    262 !
    263 !****************************************************************************************
     270
     271!************************************************************************
     272! 1D case
     273!************************************************************************
     274  SUBROUTINE read_tsurf1d(knon,sst_out)
     275
     276! This subroutine specifies the surface temperature to be used in 1D simulations
     277
     278      USE dimphy, ONLY : klon
     279
     280      INTEGER, INTENT(IN)                  :: knon     ! nomber of points on compressed grid
     281      REAL, DIMENSION(klon), INTENT(OUT)   :: sst_out  ! tsurf used to force the single-column model
     282
     283       INTEGER :: i
     284! COMMON defined in lmdz1d.F:
     285       real ts_cur
     286       common /sst_forcing/ts_cur
     287
     288       DO i = 1, knon
     289        sst_out(i) = ts_cur
     290       ENDDO
     291
     292      END SUBROUTINE read_tsurf1d
     293
     294!
     295!************************************************************************
    264296!
    265297END MODULE ocean_forced_mod
Note: See TracChangeset for help on using the changeset viewer.