Ignore:
Timestamp:
Feb 17, 2020, 5:44:12 PM (5 years ago)
Author:
jvatant
Message:

+ Update the interface with YAMMS so it now correctly handles the small values of the moments,
requiring dynamics to have a threshold quite low (set to 1D-200) and a sanity check in calmufi
corresponding to this value. Thus it removes 'most' of the unphysical radius obtained in
YAMMS. There are still some, but at least there is no more problem of model stability for the moments
and the code can run.
Still, take care the day you want to calculate opacities from the radii and not the moments.
Although, note that there are some negative values, in the output files, but theses negatives are

harmless, as they are only present in output files, dynamics reseting to epsilon after.

+ Given theses pbs with the radii, also update the optics so that it computes the opacities in
a simpler way, directly for M3, through look-up tables, M3 being a good proxy.
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3dpar/addfi_p.F

    r1422 r2242  
    7878      REAL,PARAMETER :: qtestw = 1.0e-15
    7979      REAL,PARAMETER :: qtestt = 1.0e-40
     80      REAL,PARAMETER :: qtestt2 = 1.0D-200
    8081
    8182      REAL SSUM
     
    192193c$OMP END DO
    193194       ENDDO
     195      else if (planet_type=="titan") then
     196      ! Titan : needs to be able to deal with very low values of tracers
     197      ! values for microphysics -> threshold at 1D-200 - JVO 20
     198       DO iq = 1, nqtot
     199c$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
     200         DO k = 1,llm
     201            DO j = ijb,ije
     202               pq(j,k,iq)= pq(j,k,iq) + pdqfi(j,k,iq) * pdt
     203               pq(j,k,iq)= AMAX1( pq(j,k,iq), qtestt2 )
     204            ENDDO
     205         ENDDO
     206c$OMP END DO
     207       ENDDO
    194208      else
    195209      ! general case, treat all tracers equally)
Note: See TracChangeset for help on using the changeset viewer.