- Timestamp:
- 07/16/14 18:05:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/forceWCfn.F
r222 r227 1 subroutine forceWCfn(ngrid,n q,pplev,pt,dq,dqs)1 subroutine forceWCfn(ngrid,nlayer,nq,pplev,pt,dq,dqs) 2 2 3 3 USE tracer_h … … 18 18 !================================================================== 19 19 20 #include "dimensions.h"21 #include "dimphys.h"20 !#include "dimensions.h" 21 !#include "dimphys.h" 22 22 #include "comcstfi.h" 23 23 24 INTEGER ngrid,n q24 INTEGER ngrid,nlayer,nq 25 25 26 26 real masse, Wtot, Wdiff 27 27 28 real pplev(ngrid,nlayer mx+1)28 real pplev(ngrid,nlayer+1) 29 29 real pt(ngrid) 30 30 31 31 real dqs(ngrid,nq) 32 real dq(ngrid,nlayer mx,nq)32 real dq(ngrid,nlayer,nq) 33 33 34 34 integer iq, ig, ilay … … 37 37 do ig=1,ngrid 38 38 Wtot = 0.0 39 do ilay=1,nlayer mx39 do ilay=1,nlayer 40 40 masse = (pplev(ig,ilay) - pplev(ig,ilay+1))/g 41 41 Wtot = Wtot + masse*dq(ig,ilay,iq)
Note: See TracChangeset
for help on using the changeset viewer.