/[lmdze]/trunk/phylmd/clesphys.f90
ViewVC logotype

Diff of /trunk/phylmd/clesphys.f90

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/libf/phylmd/clesphys.f90 revision 12 by guez, Mon Jul 21 16:05:07 2008 UTC trunk/phylmd/clesphys.f revision 288 by guez, Tue Jul 24 16:27:12 2018 UTC
# Line 1  Line 1 
1  module clesphys  module clesphys
2    
3    ! v 1.3 2005/06/06 13:16:33 fairhead    ! From version 1.3 2005/06/06 13:16:33
4    
5    implicit none    implicit none
6    
7    LOGICAL bug_ozone    REAL, protected:: co2_ppm = 348.
8    REAL co2_ppm, solaire    ! AMIP II, concentration du gaz carbonique en ppmv
9    double precision RCO2, RCH4, RN2O, RCFC11, RCFC12      
10    double precision CH4_ppb, N2O_ppb, CFC11_ppt, CFC12_ppt    real, protected:: solaire = 1365. ! AMIP II, constante solaire en W/m2
11    !IM simulateur ISCCP    double precision, save, protected:: RCO2 ! Concentration du CO2
12    INTEGER top_height, overlap    double precision, save, protected:: RCH4 ! Concentration du CH4
13    !IM seuils cdrm, cdrh    double precision, save, protected:: RN2O ! Concentration du N2O
14    REAL cdmmax, cdhmax    double precision, save, protected:: RCFC11 ! Concentration du CFC11
15    !IM param. stabilite s/ terres et en dehors    double precision, save, protected:: RCFC12 ! Concentration du CFC12
16    REAL ksta, ksta_ter    double precision, protected:: CH4_ppb = 1650., N2O_ppb = 306.
17    !IM ok_kzmin : clef calcul Kzmin dans la CL de surface cf FH    double precision, protected:: CFC11_ppt = 280., CFC12_ppt = 484.
18    LOGICAL ok_kzmin    REAL, protected:: cdmmax = 1.3E-3, cdhmax = 1.1E-3 ! seuils cdrm, cdrh
19    INTEGER lev_histhf ! niveau sorties 6h    
20    integer lev_histday ! niveau sorties journalieres    REAL, protected:: ksta = 1e-10, ksta_ter = 1e-10
21    integer lev_histmth ! niveau sorties mensuelles    ! param\`etres de stabilit\'e sur terre et en dehors
   CHARACTER(len=4) type_run  
   LOGICAL ok_isccp, ok_regdyn  
   REAL lonmin_ins, lonmax_ins, latmin_ins, latmax_ins  
   INTEGER ecrit_ins, ecrit_hf, ecrit_hf2mth, ecrit_day  
   INTEGER ecrit_mth, ecrit_tra, ecrit_reg  
22    
23    save    LOGICAL, protected:: ok_kzmin  = .true.
24      ! calcul de Kzmin dans la couche limite de surface
25      
26      INTEGER, save, protected:: ecrit_ins = 1
27      ! number of time steps of physics between outputs
28    
29      logical, protected:: ok_instan = .false.
30      ! sorties instantanees dans le fichier histins
31    
32      real, protected:: f_cdrag_ter = 1., f_cdrag_oce = 0.8
33      ! surface drag coefficients
34    
35    contains
36    
37      subroutine read_clesphys
38    
39        use unit_nml_m, only: unit_nml
40    
41        namelist /clesphys_nml/ solaire, co2_ppm, CH4_ppb, N2O_ppb, CFC11_ppt, &
42             CFC12_ppt, cdmmax, cdhmax, ksta, ksta_ter, ok_kzmin, ecrit_ins, &
43             ok_instan, f_cdrag_ter, f_cdrag_oce
44    
45        !---------------------------------------------------------
46    
47        print *, "Enter namelist 'clesphys_nml'."
48        read(unit=*, nml=clesphys_nml)
49        write(unit_nml, nml=clesphys_nml)
50    
51        RCO2 = co2_ppm * 1.0e-06 * 44.011/28.97
52        RCH4 = CH4_ppb * 1.0E-09 * 16.043/28.97
53        RN2O = N2O_ppb * 1.0E-09 * 44.013/28.97
54        RCFC11=CFC11_ppt* 1.0E-12 * 137.3686/28.97
55        RCFC12 = CFC12_ppt * 1.0E-12 * 120.9140/28.97
56    
57        print *, ' RCO2 = ', RCO2
58        print *, ' RCH4 = ', RCH4
59        print *, ' RN2O = ', RN2O
60        print *, ' RCFC11 = ', RCFC11
61        print *, ' RCFC12 = ', RCFC12
62    
63      end subroutine read_clesphys
64    
65  end module clesphys  end module clesphys

Legend:
Removed from v.12  
changed lines
  Added in v.288

  ViewVC Help
Powered by ViewVC 1.1.21