Changeset 2392 for trunk


Ignore:
Timestamp:
Jul 2, 2020, 3:42:37 PM (4 years ago)
Author:
cmathe
Message:

improvedco2clouds_mod: 4.2 => if zq(ccnco2_number) + threshold > 1

move the end if of 4.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/improvedco2clouds_mod.F90

    r2391 r2392  
    491491!----------------------------------------------------------------------------------------------------------------------!
    492492      ! we trigger crystal growth
    493       if (zq(ig,l,igcm_ccnco2_number) * tauscaling(ig) >= threshold) then
     493      if (zq(ig,l,igcm_ccnco2_number) * tauscaling(ig) +threshold >= 1) then
    494494
    495495        call updaterice_microco2(zq(ig,l,igcm_co2_ice), zq(ig,l,igcm_ccnco2_mass), zq(ig,l,igcm_ccnco2_number), &
     
    528528          zq(ig,l,igcm_co2) = zq(ig,l,igcm_co2) - dMice
    529529        end if
     530      end if ! nouveau end if
    530531!----------------------------------------------------------------------------------------------------------------------!
    531532! 4.3 Dust cores releasing if no more co2 ice
    532533!----------------------------------------------------------------------------------------------------------------------!
    533534        ! On sublime tout
    534         if (zq(ig,l,igcm_co2_ice) <= threshold) then
     535        if ((zq(ig,l,igcm_co2_ice) <= threshold).or.(zq(ig,l,igcm_ccnco2_number) < 1.)) then
    535536
    536537          if (co2useh2o) then
     
    565566          riceco2(ig,l) = 0.
    566567        end if !of if co2_ice < threshold
    567       end if ! of if NCCN > 1
     568!      end if ! of if NCCN > 1
    568569    end do ! of ig loop
    569570  end do ! of nlayer loop
Note: See TracChangeset for help on using the changeset viewer.