/[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 68 by guez, Wed Nov 14 16:59:30 2012 UTC trunk/phylmd/clesphys.f90 revision 345 by guez, Tue Nov 26 20:47:46 2019 UTC
# Line 4  module clesphys Line 4  module clesphys
4    
5    implicit none    implicit none
6    
7    LOGICAL bug_ozone ! Pour retrouver le bug de l'ozone (IPCC)    real, protected:: solaire = 1365. ! AMIP II, constante solaire en W / m2
8    REAL co2_ppm ! concentration du gaz carbonique en ppmv    double precision, save, protected:: RCO2 ! mass mixing ratio of CO2
9    real solaire ! Constante solaire en W/m2    double precision, save, protected:: RCH4 ! mass mixing ratio of CH4
10    double precision RCO2 ! Concentration du CO2    double precision, save, protected:: RN2O ! mass mixing ratio of N2O
11    double precision RCH4 ! Concentration du CH4    double precision, save, protected:: RCFC11 ! mass mixing ratio of CFC11
12    double precision RN2O ! Concentration du N2O    double precision, save, protected:: RCFC12 ! mass mixing ratio of CFC12
13    double precision RCFC11 ! Concentration du CFC11    REAL, protected:: cdmmax = 1.3E-3, cdhmax = 1.1E-3 ! seuils cdrm, cdrh
14    double precision RCFC12 ! Concentration du CFC12    
15    double precision CH4_ppb, N2O_ppb, CFC11_ppt, CFC12_ppt    REAL, protected:: ksta = 1e-10, ksta_ter = 1e-10
16      ! param\`etres de stabilit\'e sur terre et en dehors
17    ! Simulateur ISCCP:  
18    INTEGER top_height    LOGICAL, protected:: ok_kzmin  = .true.
19    INTEGER overlap ! 1, 2 or 3    ! calcul de Kzmin dans la couche limite de surface
20      
21    REAL cdmmax, cdhmax ! seuils cdrm, cdrh    INTEGER, protected:: ecrit_ins = 1
22    REAL ksta, ksta_ter ! paramètres stabilité sur terres et en dehors    ! number of time steps of physics between outputs
23    LOGICAL ok_kzmin ! calcul Kzmin dans la couche limite de surface  
24      logical, protected:: ok_instan = .false.
25    INTEGER lev_histhf ! niveau sorties 6h    ! sorties instantanees dans le fichier histins
26    ! 4: histhf3d.nc champs 3d niveaux modele  
27      real, protected:: f_cdrag_ter = 1., f_cdrag_oce = 0.8
28    integer lev_histday ! niveau sorties journalieres    ! surface drag coefficients
29    ! 3: champs 3D => F. Lott  
30    ! 4: + champs sous-surfaces  contains
31    
32    integer lev_histmth ! niveau sorties mensuelles    subroutine read_clesphys
33    ! 3: albedo, rugosite sous-surfaces  
34    ! 4: champs tendances 3d      use unit_nml_m, only: unit_nml
35    
36    CHARACTER(len=4) type_run ! 'AMIP' ou 'ENSP'      REAL:: co2_ppm = 348. ! number mixing ratio, in ppm
37    LOGICAL ok_isccp, ok_regdyn      real:: CH4_ppb = 1650., N2O_ppb = 306.
38        real:: CFC11_ppt = 280., CFC12_ppt = 484.
39    REAL lonmin_ins, lonmax_ins, latmin_ins, latmax_ins  
40    ! longitude et latitude minimales et maximales pour la zone avec      namelist /clesphys_nml/ solaire, co2_ppm, CH4_ppb, N2O_ppb, CFC11_ppt, &
41    ! sorties instantanées tous les pas de temps de la physique,           CFC12_ppt, cdmmax, cdhmax, ksta, ksta_ter, ok_kzmin, ecrit_ins, &
42    ! fichier "histbilKP_ins.nc"           ok_instan, f_cdrag_ter, f_cdrag_oce
43    
44        !---------------------------------------------------------
45    
46        print *, "Enter namelist 'clesphys_nml'."
47        read(unit=*, nml=clesphys_nml)
48        write(unit_nml, nml=clesphys_nml)
49    
50        RCO2 = co2_ppm * 1e-06 * 44.011 / 28.97
51        RCH4 = CH4_ppb * 1E-09 * 16.043 / 28.97
52        RN2O = N2O_ppb * 1E-09 * 44.013 / 28.97
53        RCFC11=CFC11_ppt* 1E-12 * 137.3686 / 28.97
54        RCFC12 = CFC12_ppt * 1E-12 * 120.9140 / 28.97
55    
56        print *, ' RCO2 = ', RCO2
57        print *, ' RCH4 = ', RCH4
58        print *, ' RN2O = ', RN2O
59        print *, ' RCFC11 = ', RCFC11
60        print *, ' RCFC12 = ', RCFC12
61    
62    INTEGER ecrit_ins, ecrit_hf, ecrit_hf2mth, ecrit_day    end subroutine read_clesphys
   INTEGER ecrit_mth, ecrit_tra, ecrit_reg  
   
   save  
63    
64  end module clesphys  end module clesphys

Legend:
Removed from v.68  
changed lines
  Added in v.345

  ViewVC Help
Powered by ViewVC 1.1.21