Changeset 3201 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Feb 5, 2024, 11:31:02 AM (10 months ago)
Author:
jbclement
Message:

Mars PCM:
Small modification of the change introduced in r3200 to make the code simpler and faster.
JBC

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

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

    r3200 r3201  
    44634463== 02/02/2024 == JBC
    44644464Small update following r3188 to keep the CO2 mixing ration constant if "CO2cond_ps = 0" + Some cleanings.
     4465
     4466== 05/02/2024 == JBC
     4467Small modification of the change introduced in r3200 to make the code simpler and faster.
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90

    r3200 r3201  
    66use phyredem,            only: physdem0, physdem1
    77use watersat_mod,        only: watersat
    8 use tracer_mod,          only: igcm_h2o_vap, igcm_h2o_ice, noms
     8use tracer_mod,          only: igcm_h2o_vap, igcm_h2o_ice, igcm_co2, noms
    99use comcstfi_h,          only: pi, rad, omeg, g, mugaz, rcp, r, cpp
    1010use time_phylmdz_mod,    only: daysec, day_step
     
    270270
    271271    ! Increment tracers
    272     if (abs(CO2cond_ps) < 1.e-10) then
    273         do iq = 1,nq
    274             if (iq == igcm_co2) cycle
    275             q(1,:,iq) = q(1,:,iq) + dttestphys*dq(1,:,iq)
    276         enddo
    277     else
    278         q = q + dttestphys*dq
    279     endif
     272    if (abs(CO2cond_ps) < 1.e-10) dq(1,:,igcm_co2) = 0.
     273    q = q + dttestphys*dq
    280274enddo ! End of time stepping loop (idt=1,ndt)
    281275
Note: See TracChangeset for help on using the changeset viewer.