Ignore:
Timestamp:
Nov 28, 2016, 11:01:20 PM (8 years ago)
Author:
fhourdin
Message:

Inclusion du cas arm_cu2, avec les nouveaux formats de forçage 1D
(Marie-Pierre Lefebvre)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/dyn1d/lmdz1d.F90

    r2672 r2716  
    3232   USE indice_sol_mod
    3333   USE phyaqua_mod
    34    USE mod_1D_cases_read
     34!  USE mod_1D_cases_read
     35   USE mod_1D_cases_read2
    3536   USE mod_1D_amma_read
    3637   USE print_control_mod, ONLY: lunout, prt_level
     
    140141        logical :: forcing_fire    = .false.
    141142        logical :: forcing_case    = .false.
     143        logical :: forcing_case2   = .false.
    142144        integer :: type_ts_forcing ! 0 = SST constant; 1 = SST read from a file
    143145!                                                            (cf read_tsurf1d.F)
     
    192194      real :: du_phys(llm),dv_phys(llm),dt_phys(llm)
    193195      real :: dt_dyn(llm)
    194       real :: dt_cooling(llm),d_th_adv(llm),d_t_nudge(llm)
     196      real :: dt_cooling(llm),d_t_adv(llm),d_th_adv(llm),d_t_nudge(llm)
    195197      real :: d_u_nudge(llm),d_v_nudge(llm)
    196198      real :: du_adv(llm),dv_adv(llm)
     
    332334!             101=cindynamo
    333335!             102=bomex
     336!forcing_type >= 100 ==> forcing_case2 = .true.
     337!             temporary flag while all the 1D cases are not whith the same cas.nc forcing file
     338!             103=arm_cu2 ie arm_cu with new forcing format
     339!             104=rico2 ie rico with new forcing format
    334340!forcing_type = 40 ==> forcing_GCSSold = .true.
    335341!             initial profile from GCSS file
     
    384390       heure_ini_cas=0.
    385391       pdt_cas=1800.         ! forcing frequency
     392      elseif (forcing_type .eq.103) THEN ! Arm_cu starts 21-6-1997 11h30
     393       forcing_case2 = .true.
     394       year_ini_cas=1997
     395       mth_ini_cas=6
     396       day_deb=21
     397       heure_ini_cas=11.5
     398       pdt_cas=1800.         ! forcing frequency
     399      elseif (forcing_type .eq.104) THEN ! rico starts 16-12-2004 0h
     400       forcing_case2 = .true.
     401       year_ini_cas=2004
     402       mth_ini_cas=12
     403       day_deb=16
     404       heure_ini_cas=0.
     405       pdt_cas=1800.         ! forcing frequency
    386406      elseif (forcing_type .eq.40) THEN
    387407       forcing_GCSSold = .true.
     
    456476      endif
    457477      print *,'fnday=',fnday
    458 
     478!     start_time doit etre en FRACTION DE JOUR
    459479      start_time=time_ini/24.
    460480
    461481! Special case for arm_cu which lasts less than one day : 53100s !! (MPL 20111026)
    462482      IF(forcing_type .EQ. 61) fnday=53100./86400.
     483      IF(forcing_type .EQ. 103) fnday=53100./86400.
    463484! Special case for amma which lasts less than one day : 64800s !! (MPL 20120216)
    464485      IF(forcing_type .EQ. 6) fnday=64800./86400.
     
    505526      print*,'time case',year_ini_cas,mth_ini_cas,day_ini_cas
    506527      call ymds2ju                                                         &
    507      & (year_ini_cas,mth_ini_cas,day_ini_cas,heure_ini_cas              &
     528     & (year_ini_cas,mth_ini_cas,day_ini_cas,heure_ini_cas*3600            &
    508529     & ,day_ju_ini_cas)
    509530      print*,'time case 2',day_ini_cas,day_ju_ini_cas
     
    527548      ENDIF
    528549
     550      IF (forcing_type .gt.100) THEN
     551      daytime = day + heure_ini_cas/24. ! 1st day and initial time of the simulation
     552      ELSE
    529553      daytime = day + time_ini/24. ! 1st day and initial time of the simulation
     554      ENDIF
    530555! Print out the actual date of the beginning of the simulation :
    531556      call ju2ymds(daytime,year_print, month_print,day_print,sec_print)
     
    10341059
    10351060       if (forcing_toga .or. forcing_GCSSold .or. forcing_twpice            &
    1036      &    .or.forcing_amma) then
     1061     &    .or.forcing_amma .or. forcing_type.eq.101) then
    10371062         fcoriolis=0.0 ; ug=0. ; vg=0.
    10381063       endif
    1039          if(forcing_rico) then
     1064
     1065       if(forcing_rico) then
    10401066          dt_cooling=0.
    1041         endif
     1067       endif
    10421068
    10431069      IF (prt_level >= 5) print*, 'fcoriolis, xlat,mxcalc ', &
     
    12011227!#endif
    12021228
     1229
Note: See TracChangeset for help on using the changeset viewer.