Ignore:
Timestamp:
07/16/14 18:05:01 (10 years ago)
Author:
milmd
Message:

Last LMDZ version (1315) with OpenMP directives and other stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/forceWCfn.F

    r222 r227  
    1       subroutine forceWCfn(ngrid,nq,pplev,pt,dq,dqs) 
     1      subroutine forceWCfn(ngrid,nlayer,nq,pplev,pt,dq,dqs) 
    22 
    33      USE tracer_h 
     
    1818!================================================================== 
    1919 
    20 #include "dimensions.h" 
    21 #include "dimphys.h" 
     20!#include "dimensions.h" 
     21!#include "dimphys.h" 
    2222#include "comcstfi.h" 
    2323 
    24       INTEGER ngrid,nq 
     24      INTEGER ngrid,nlayer,nq 
    2525 
    2626      real masse, Wtot, Wdiff 
    2727 
    28       real pplev(ngrid,nlayermx+1) 
     28      real pplev(ngrid,nlayer+1) 
    2929      real pt(ngrid) 
    3030 
    3131      real dqs(ngrid,nq)  
    32       real dq(ngrid,nlayermx,nq) 
     32      real dq(ngrid,nlayer,nq) 
    3333 
    3434      integer iq, ig, ilay 
     
    3737        do ig=1,ngrid 
    3838           Wtot = 0.0 
    39            do ilay=1,nlayermx 
     39           do ilay=1,nlayer 
    4040              masse = (pplev(ig,ilay) - pplev(ig,ilay+1))/g 
    4141              Wtot  = Wtot + masse*dq(ig,ilay,iq) 
Note: See TracChangeset for help on using the changeset viewer.