Ignore:
Timestamp:
Feb 2, 2017, 6:07:31 PM (8 years ago)
Author:
aslmd
Message:

corrected bugs from rev 1651 that prevented the mesoscale model from compiling. getin does not take double precision arguments. removed meteoriticflux_mod and included the variables in tracer_mod.

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/co2cloud.F

    r1651 r1655  
    1414     &     igcm_ccnco2_mass, igcm_ccnco2_number,
    1515     &     rho_dust, nuiceco2_sed, nuiceco2_ref,
    16      &     rho_ice_co2,r3n_q
    17       USE meteoriticflux_mod, ONLY:meteo_flux_mass,meteo_flux_number
    18      &     ,meteo_alt
     16     &     rho_ice_co2,r3n_q,
     17     &     meteo_flux_mass,meteo_flux_number,
     18     &     meteo_alt
    1919
    2020      IMPLICIT NONE
     
    189189c         write(*,*) "meteo_lvl=",meteo_lvl
    190190         pq(ig,meteo_lvl,igcm_dust_mass)=pq(ig,meteo_lvl,igcm_dust_mass)
    191      &        +meteo_flux_mass
     191     &        +dble(meteo_flux_mass)
    192192         pq(ig,meteo_lvl,igcm_dust_number)=
    193      &        pq(ig,meteo_lvl,igcm_dust_number)+meteo_flux_number
     193     &        pq(ig,meteo_lvl,igcm_dust_number)
     194     &        +dble(meteo_flux_number)
    194195      enddo
    195196
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r1651 r1655  
    3636      USE ioipsl_getincom, only : getin
    3737      use tracer_mod, only : nuice_sed, ccn_factor, nuiceco2_sed,
    38      &                       nuice_ref,nuiceco2_ref
     38     &                       nuice_ref,nuiceco2_ref,
     39     &                       meteo_flux_mass,
     40     &                       meteo_flux_number,meteo_alt
    3941      use surfdat_h, only: albedo_h2o_ice, inert_h2o_ice,
    4042     &                     frost_albedo_threshold
     
    4446      use dimradmars_mod, only: naerkind, name_iaer,
    4547     &                      ini_scatterers,tauvis
    46       USE meteoriticflux_mod !meteo_flux_mass,meteo_flux_number,alt_meteo
    4748
    4849      IMPLICIT NONE
     
    502503        write(*,*)"the contact parameter is used instead;"
    503504
     505        !JAud Meteoritic flux of dust : number, mass and altitude
     506        !Jaud dust tracers are incremented by thoses values in co2cloud.F
     507        !Jaud Thus only apply if co2clouds=.true. in callphys.def
     508        write(*,*) "mass mixing ratio for meteoritic dust?"
     509        meteo_flux_mass=0.
     510        call getin("meteo_flux_mass",meteo_flux_mass)
     511        write(*,*) "number density for meteoritic dust?"
     512        meteo_flux_number=0.
     513        call getin("meteo_flux_number",meteo_flux_number)
     514        write(*,*) "altitude of injection?"
     515        meteo_alt=5.
     516        call getin("meteo_alt",meteo_alt)
     517        WRITE(*,*) ""
     518        WRITE(*,*) "meteoritic flux of dust"
     519        WRITE(*,*) "dust mass = ",meteo_flux_mass
     520        WRITE(*,*) "dust number = ",meteo_flux_number
     521        WRITE(*,*) "at altitude = ",meteo_alt
     522
    504523! microphys
    505524         write(*,*)"Microphysical scheme for water-ice clouds?"
     
    712731         write(*,*) " euveff = ", euveff
    713732
    714         !Meteoritic flux of dust : number, mass and altitude
    715         !dust tracers are incremented by thoses values in co2cloud.F
    716         ! Thus only apply if co2clouds=.true. in callphys.def
    717         meteo_flux_mass=0.
    718         call getin("meteo_flux_mass",meteo_flux_mass)
    719         meteo_flux_number=0.
    720         call getin("meteo_flux_number",meteo_flux_number)
    721         meteo_alt=5.
    722         call getin("meteo_alt",meteo_alt)
    723         WRITE(*,*) ""
    724         WRITE(*,*) "meteoritic flux of dust"
    725         WRITE(*,*) "dust mass = ",meteo_flux_mass
    726         WRITE(*,*) "dust number = ",meteo_flux_number
    727         WRITE(*,*) "at altitude = ",meteo_alt
    728          
    729733
    730734         if (.not.callthermos) then
  • trunk/LMDZ.MARS/libf/phymars/tracer_mod.F90

    r1633 r1655  
    2525
    2626      real,save :: ccn_factor  ! ratio of nuclei for water ice particles
     27
     28      real,save :: meteo_flux_mass   ! meteoritic flux of dust - mmr
     29      real,save :: meteo_flux_number ! meteoritic flux of dust - nd
     30      integer,save :: meteo_alt
    2731
    2832      INTEGER,ALLOCATABLE,SAVE :: nqdust(:) ! to store the indexes of dust tracers (cf aeropacity)
Note: See TracChangeset for help on using the changeset viewer.