Changeset 3280 for LMDZ6/trunk


Ignore:
Timestamp:
Mar 16, 2018, 7:01:41 PM (7 years ago)
Author:
musat
Message:

Seuil maximum nombre de noyaux de condensation cdnc_max
passe a physiq.def (utile pour l'experience de type aquaplanete)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/newmicro.F90

    r3274 r3280  
    168168  REAL,SAVE :: cdnc_min_m3
    169169  !$OMP THREADPRIVATE(cdnc_min,cdnc_min_m3)
     170  REAL,SAVE :: cdnc_max=-1.
     171  REAL,SAVE :: cdnc_max_m3
     172  !$OMP THREADPRIVATE(cdnc_max,cdnc_max_m3)
    170173
    171174  ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    186189      IF (cdnc_min_m3<0.) cdnc_min_m3=20.E6 ! astuce pour retrocompatibilite
    187190      write(lunout,*)'cdnc_min=', cdnc_min_m3/1.E6
     191      call getin_p('cdnc_max',cdnc_max)
     192      cdnc_max_m3=cdnc_max*1.E6
     193      IF (cdnc_max_m3<0.) cdnc_max_m3=1000.E6 ! astuce pour retrocompatibilite
     194      write(lunout,*)'cdnc_max=', cdnc_max_m3/1.E6
    188195  ENDIF
    189196
     
    253260        cdnc_pi(i, k) = 10.**(bl95_b0+bl95_b1*log(max(mass_solu_aero_pi(i,k), &
    254261          1.E-4))/log(10.))*1.E6 !-m-3
    255         cdnc_pi(i, k) = min(1000.E6, max(cdnc_min_m3,cdnc_pi(i,k)))
     262        cdnc_pi(i, k) = min(cdnc_max, max(cdnc_min_m3,cdnc_pi(i,k)))
    256263
    257264      ENDDO
     
    282289          cdnc(i, k) = 10.**(bl95_b0+bl95_b1*log(max(mass_solu_aero(i,k), &
    283290            1.E-4))/log(10.))*1.E6 !-m-3
    284           cdnc(i, k) = min(1000.E6, max(cdnc_min_m3,cdnc(i,k)))
     291          cdnc(i, k) = min(cdnc_max, max(cdnc_min_m3,cdnc(i,k)))
    285292
    286293        ENDDO
Note: See TracChangeset for help on using the changeset viewer.