Changeset 2459 for trunk


Ignore:
Timestamp:
Feb 16, 2021, 12:51:04 AM (4 years ago)
Author:
aslmd
Message:

MESOSCALE Mars (and actually GCM too): solved inconsistency in types with riceco2 in a cascade of subroutines. harmless when everything is compiled double precision, harmful when everything is compiled simple precision. appeared between r2446 and r2453 included.

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
4 edited

Legend:

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

    r2447 r2459  
    203203      REAL,INTENT(OUT) :: rice(ngrid,nlayer)   ! Ice geometric mean radius (m)
    204204      REAL,INTENT(OUT) :: nuice(ngrid,nlayer)  ! Estimated effective variance
    205       REAL,INTENT(OUT) :: riceco2(ngrid,nlayer) ! CO2 ice mean radius(m)
     205      double precision,INTENT(OUT) :: riceco2(ngrid,nlayer) ! CO2 ice mean radius(m)
    206206      REAL,INTENT(OUT) :: nuiceco2(ngrid,nlayer) ! Effective variance
    207207      REAL,INTENT(IN) :: co2ice(ngrid)           ! co2 ice surface layer (kg.m-2)
  • trunk/LMDZ.MARS/libf/phymars/rocketduststorm_mod.F90

    r2448 r2459  
    172172      REAL  rice(ngrid,nlayer)
    173173      REAL  nuice(ngrid,nlayer)
    174       REAL  riceco2(ngrid,nlayer)
     174      DOUBLE PRECISION  riceco2(ngrid,nlayer)
    175175      REAL  nuiceco2(ngrid,nlayer)
    176176
  • trunk/LMDZ.MARS/libf/phymars/topmons_mod.F90

    r2448 r2459  
    126126      REAL  rice(ngrid,nlayer)
    127127      REAL  nuice(ngrid,nlayer)
    128       REAL  riceco2(ngrid,nlayer)
     128      DOUBLE PRECISION  riceco2(ngrid,nlayer)
    129129      REAL  nuiceco2(ngrid,nlayer)
    130130
  • trunk/LMDZ.MARS/libf/phymars/updatereffrad_mod.F

    r2447 r2459  
    7171      REAL, INTENT(in) :: tauscaling(ngrid)         ! Convertion factor for qccn and Nccn
    7272c     CO2 ice mean radius (m)
    73       REAL, INTENT(out) :: riceco2(ngrid,nlayer) ! co2 ice radius
     73      double precision, INTENT(out) :: riceco2(ngrid,nlayer) ! co2 ice radius
    7474      REAL, INTENT(out) :: nuiceco2(ngrid,nlayer)
    7575
     
    201201          DO l=1,nlayer
    202202            DO ig=1,ngrid
    203               call updaterice_microco2(pq(ig,l,igcm_co2_ice),
    204      &                              pq(ig,l,igcm_ccnco2_mass),
    205      &                              pq(ig,l,igcm_ccnco2_number),
     203              call updaterice_microco2(dble(pq(ig,l,igcm_co2_ice)),
     204     &                              dble(pq(ig,l,igcm_ccnco2_mass)),
     205     &                              dble(pq(ig,l,igcm_ccnco2_number)),
    206206     &                              tauscaling(ig),riceco2(ig,l),
    207207     &                              rhocloudco2(ig,l))
Note: See TracChangeset for help on using the changeset viewer.