Ignore:
Timestamp:
Apr 13, 2025, 7:10:19 PM (4 months ago)
Author:
aborella
Message:
  • changed treatment of prognostic variables for prognostic clouds
  • adapted sedimentation and autoconversion for prognostic cirrus clouds
  • cloud mixing, ice sedimentation and ISSR diagnosis are now consistent with the water vapor PDF
  • simplified assumptions for ice crystals deposition / sublimation
  • first version of the coupling between prognostic cirrus clouds and deep convection
  • added persistent contrail cirrus clouds in radiative diagnostics
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/contrails/libf/dyn3d_common/infotrac.f90

    r5536 r5609  
    266266   !---------------------------------------------------------------------------------------------------------------------------
    267267   nqtrue = SIZE(tracers)                                                                               !--- "true" tracers
    268    nqo    =      COUNT(tracers(:)%component == 'lmdz' .AND. delPhase(tracers(:)%name)     == 'H2O')     !--- Water phases
    269    nbtr = nqtrue-COUNT(tracers(:)%component == 'lmdz' .AND. delPhase(tracers(:)%gen0Name) == 'H2O')     !--- Passed to phytrac
     268!   nqo    =      COUNT(tracers(:)%component == 'lmdz' .AND. delPhase(tracers(:)%name)     == 'H2O')     !--- Water phases
     269   nqo    =      COUNT(tracers(:)%component == 'lmdz' .AND. &
     270       ((delPhase(tracers(:)%name)     == 'H2O') .OR. &    !--- Water phases
     271        (delPhase(tracers(:)%name)     == 'CLDFRA')))
     272!   nbtr = nqtrue-COUNT(tracers(:)%component == 'lmdz' .AND. delPhase(tracers(:)%gen0Name) == 'H2O')     !--- Passed to phytrac
     273   nbtr = nqtrue-COUNT(tracers(:)%component == 'lmdz' .AND. &
     274       ((delPhase(tracers(:)%gen0Name)     == 'H2O') .OR. &    !--- Passed to phytrac
     275        (delPhase(tracers(:)%gen0Name)     == 'CLDFRA')))
    270276   nqCO2  =      COUNT( [type_trac == 'inco', type_trac == 'co2i'] )
    271277IF (CPPKEY_INCA) THEN
     
    335341      t1%iadv       = iad
    336342      t1%isAdvected = iad >= 0
    337       t1%isInPhysics= delPhase(t1%gen0Name) /= 'H2O' .OR. t1%component /= 'lmdz' !=== MORE EXCEPTIONS ? CO2i, SURSAT CLOUD H2O
     343!      t1%isInPhysics= delPhase(t1%gen0Name) /= 'H2O' .OR. t1%component /= 'lmdz' !=== MORE EXCEPTIONS ? CO2i, SURSAT CLOUD H2O
     344      t1%isInPhysics=((delPhase(t1%gen0Name) /= 'H2O') .AND. &
     345                      (delPhase(t1%gen0Name) /= 'CLDFRA')) .OR. t1%component /= 'lmdz'
    338346      ttr(iq)       = t1
    339347
     
    388396
    389397   !--- Note: nqtottr can differ from nbtr when nmom/=0
    390    nqtottr = nqtot - COUNT(delPhase(tracers%gen0Name) == 'H2O' .AND. tracers%component == 'lmdz')
    391    IF(COUNT(tracers%iso_iName == 0) - COUNT(delPhase(tracers%name) == 'H2O' .AND. tracers%component == 'lmdz') /= nqtottr) &
    392       CALL abort_gcm(modname, 'problem with the computation of nqtottr', 1)
     398!   nqtottr = nqtot - COUNT(delPhase(tracers%gen0Name) == 'H2O' .AND. tracers%component == 'lmdz')
     399   nqtottr = nqtot - COUNT(tracers(:)%component == 'lmdz' .AND. &
     400       ((delPhase(tracers(:)%gen0Name)     == 'H2O') .OR. &
     401        (delPhase(tracers(:)%gen0Name)     == 'CLDFRA')))
     402!   IF(COUNT(tracers%iso_iName == 0) - COUNT(delPhase(tracers%name) == 'H2O' .AND. tracers%component == 'lmdz') /= nqtottr) &
     403!   IF(COUNT(tracers%iso_iName == 0) - COUNT(tracers(:)%component == 'lmdz' .AND. &
     404!       ((delPhase(tracers(:)%name)     == 'H2O') .OR. &
     405!        (delPhase(tracers(:)%name)     == 'CLDFRA') /= nqtottr) &
     406!      CALL abort_gcm(modname, 'problem with the computation of nqtottr', 1)
    393407
    394408   !=== DISPLAY THE RESULTS
Note: See TracChangeset for help on using the changeset viewer.