Ignore:
Timestamp:
Jan 7, 2014, 10:40:56 AM (11 years ago)
Author:
milmd
Message:

LMDZ.GENERIC. added a condition to avoid a small bug in mucorr when running in 1D. but 'correction de rotondite' seems not generic at all in mucorr although the impact is small because hardcoded correction is pretty negligible (AS).

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/mucorr.F

    r135 r1152  
    9292c   ------------------------
    9393
     94      ! condition added to avoid errors when rad is not set (e.g. 1D runs)
     95      IF (prad.ne.0) THEN
     96 
    9497      alph=phaut/prad
    9598      DO 30 j=1,npts
    9699c !!!!!!
     100 !!!!!!! AS: how generic is this???
    97101         pmu(j)=sqrt(1224.*pmu(j)*pmu(j)+1.)/35.
    98102c    $          (sqrt(alph*alph*pmu(j)*pmu(j)+2.*alph+1.)-alph*pmu(j))
    9910330    CONTINUE
    100104
     105      ENDIF
     106
    101107      RETURN
    102108      END
  • trunk/LMDZ.GENERIC/libf/phystd/physiq.F90

    r1150 r1152  
    700700
    701701               call mucorr(ngrid,declin,lati,mu0,fract,10000.,rad)
    702                ! WARNING: this function appears not to work in 1D
    703702
    704703           endif
Note: See TracChangeset for help on using the changeset viewer.