Ignore:
Timestamp:
Feb 11, 2019, 10:31:18 PM (6 years ago)
Author:
jvatant
Message:

Fix forgotten do loop in previous commit
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/physiq_mod.F90

    r2097 r2098  
    765765      else !  if not moyzon
    766766     
    767          DO l=1,nlayer   
    768            zzlay_eff(ig,l)=g*rad*rad/(g*rad-(pphi(ig,l)+phisfi(ig)))-rad ! reference = geoid
    769          ENDDO
    770          zzlev_eff(ig,1)=phisfi(ig)/g
    771          DO l=2,nlayer
     767        DO ig=1,ngrid
     768          DO l=1,nlayer   
     769            zzlay_eff(ig,l)=g*rad*rad/(g*rad-(pphi(ig,l)+phisfi(ig)))-rad ! reference = geoid
     770          ENDDO
     771          zzlev_eff(ig,1)=phisfi(ig)/g
     772          DO l=2,nlayer
    772773            z1=(pplay(ig,l-1)+pplev(ig,l))/ (pplay(ig,l-1)-pplev(ig,l))
    773774            z2=(pplev(ig,l)  +pplay(ig,l))/(pplev(ig,l)  -pplay(ig,l))
    774775            zzlev_eff(ig,l)=(z1*zzlay_eff(ig,l-1)+z2*zzlay_eff(ig,l))/(z1+z2)
    775          ENDDO
    776          zzlev_eff(ig,nlayer+1)=zzlay_eff(ig,nlayer)+(zzlay_eff(ig,nlayer)-zzlev_eff(ig,nlayer))
     776          ENDDO
     777          zzlev_eff(ig,nlayer+1)=zzlay_eff(ig,nlayer)+(zzlay_eff(ig,nlayer)-zzlev_eff(ig,nlayer))
     778        ENDDO
    777779
    778780      endif  ! moyzon
Note: See TracChangeset for help on using the changeset viewer.