Changeset 1621 for trunk/LMDZ.GENERIC/libf/dyn3d/disvert.F
- Timestamp:
- Oct 25, 2016, 9:23:21 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/dyn3d/disvert.F
r1422 r1621 5 5 USE callkeys_mod, ONLY: kastprof,pceil 6 6 USE comvert_mod, ONLY: ap,bp,sig,nivsigs,nivsig,pa,preff, 7 . aps,bps,presnivs,pseudoalt 7 . aps,bps,presnivs,pseudoalt,scaleheight 8 8 9 9 c Auteur : F. Forget Y. Wanherdrick, P. Levan … … 31 31 INTEGER l,ll 32 32 REAL snorm 33 REAL alpha,beta,gama,delta,deltaz, h,quoi,quand33 REAL alpha,beta,gama,delta,deltaz,quoi,quand 34 34 REAL zsig(llm) 35 35 INTEGER np,ierr … … 108 108 PRINT*,'****************************' 109 109 110 READ(99,*) h110 READ(99,*) scaleheight 111 111 do l=1,llm 112 112 read(99,*) zsig(l) … … 117 117 if(autozlevs)then 118 118 open(91,file="z2sig.def",form='formatted') 119 read(91,*) h119 read(91,*) scaleheight 120 120 DO l=1,llm-2 121 121 read(91,*) Hmax … … 126 126 print*,'Auto-shifting h in disvert.F to:' 127 127 ! h = Hmax / log(psurf/100.0) 128 h= Hmax / log(psurf/pceil)129 print*,'h = ', h,' km'128 scaleheight = Hmax / log(psurf/pceil) 129 print*,'h = ',scaleheight,' km' 130 130 endif 131 131 132 132 sig(1)=1 133 133 do l=2,llm 134 sig(l) = 0.5 * ( exp(-zsig(l)/h) + exp(-zsig(l-1)/h) ) 134 sig(l) = 0.5 * ( exp(-zsig(l)/scaleheight) + 135 & exp(-zsig(l-1)/scaleheight) ) 135 136 end do 136 137 sig(llm+1)=0 … … 223 224 DO l = 1, llm 224 225 presnivs(l) = aps(l)+bps(l)*preff 225 pseudoalt(l) = - h*log(presnivs(l)/preff)226 pseudoalt(l) = -scaleheight*log(presnivs(l)/preff) 226 227 ENDDO 227 228
Note: See TracChangeset
for help on using the changeset viewer.