Changeset 1263


Ignore:
Timestamp:
May 15, 2014, 5:48:33 PM (11 years ago)
Author:
aslmd
Message:

LMDZ.MARS possible floating exception in newcondens makes debug mode to stop. no impact on results in normal mode because a correction was proposed right afterwards. fixed the problem by extending the if loop to be really operational as intended.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/newcondens.F

    r1226 r1263  
    290290            zt(ig,l)=pt(ig,l)+ pdt(ig,l)*ptimestep
    291291!            ztcond(ig,l)=1./(bcond-acond*log(.0095*pplay(ig,l)))
    292             ztcond(ig,l)=
     292            if (pplay(ig,l).ge.1e-4) then
     293              ztcond(ig,l)=
    293294     &         1./(bcond-acond*log(.01*vmr_co2(ig,l)*pplay(ig,l)))
    294             if (pplay(ig,l).lt.1e-4) ztcond(ig,l)=0.0 !mars Monica
     295            else
     296              ztcond(ig,l)=0.0 !mars Monica
     297            endif
    295298         ENDDO
    296299      ENDDO
Note: See TracChangeset for help on using the changeset viewer.