Changeset 3712 for trunk/LMDZ.MARS/libf


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/libf/phymars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified 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
  • TabularUnified 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.