Changeset 3712 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Apr 3, 2025, 10:45:25 AM (3 months ago)
Author:
emillour
Message:

Mars PCM:
Add extra checking in nirco2abs to ensure having nircorr==1 when o and
co2 tracers are available.
EM

Location:
trunk/LMDZ.MARS
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3710 r3712  
    47894789Change default scheme for molecular diffusion in the thermosphere to the
    47904790MPF scheme.
     4791Add extra checking in nirco2abs to ensure having nircorr==1 when o and
     4792co2 tracers are available.
  • trunk/LMDZ.MARS/deftank/callphys.def.GCM6

    r3468 r3712  
    6767callnirco2 = .true.
    6868# NIR NLTE correction ? matters only if callnirco2=T
     69# nircorr should be set to 1 if co2 and o tracers are available, 0 otherwise
    6970nircorr=0
    7071# call turbulent vertical diffusion ?
  • trunk/LMDZ.MARS/deftank/callphys.def.MCD6

    r3710 r3712  
    6767callnirco2 = .true.
    6868# NIR NLTE correction ? matters only if callnirco2=T
    69 nircorr=0
     69# nircorr should be set to 1 if co2 and o tracers are available, 0 otherwise
     70nircorr=1
    7071# call turbulent vertical diffusion ?
    7172calldifv  = .true.
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r3582 r3712  
    224224     $              "1-> new correction",
    225225     $              "(matters only if callnirco2=T)"
    226 #ifdef MESOSCALE
     226
    227227         nircorr=0      !default value. this is OK below 60 km.
    228 #else
    229          nircorr=0      !default value
    230 #endif
     228         ! nircorr=1 should be prefered, but requires that co2
     229         ! and o tracers be available
    231230         call getin_p("nircorr",nircorr)
    232231         write(*,*) " nircorr = ",nircorr
  • trunk/LMDZ.MARS/libf/phymars/nirco2abs.F

    r3006 r3712  
    126126            call abort_physic("nirco2abs","need an O tracer",1)
    127127          endif
    128         endif
     128        else ! when nircorr==0
     129          ! Make a sanity check; if both o and co2 tracers are available
     130          ! then there is no reason to have nircorr==0
     131          ico2=igcm_co2
     132          io=igcm_o
     133          if ((ico2/=0).and.(io/=0)) then
     134            write(*,*) "nirco2abs error: O and CO2 tracers available"
     135            write(*,*) " but nircorr=0; we recommended using nircorr=1"
     136            call abort_physic("nirco2abs","need nircorr=1",1)
     137          endif
     138        endif ! of if (nircorr.eq.1)
    129139        firstcall=.false.
    130140      endif
Note: See TracChangeset for help on using the changeset viewer.