Changeset 1529 for trunk/LMDZ.GENERIC/libf/phystd/mkstat.F90
- Timestamp:
- Apr 5, 2016, 10:51:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/mkstat.F90
r1397 r1529 10 10 ! Yann W. july 2003 11 11 12 use statto_mod, only: istime,count 12 13 use mod_phys_lmdz_para, only : is_master 13 use statto_mod, only: istime,count14 use mod_grid_phy_lmdz, only : nbp_lon, nbp_lat, nbp_lev 14 15 15 16 implicit none 16 17 17 #include "dimensions.h" 18 #include "netcdf.inc" 18 include "netcdf.inc" 19 19 20 integer,parameter :: iip1=iim+121 integer,parameter :: jjp1=jjm+122 20 integer :: ierr,nid,nbvar,i,ndims,lt,nvarid 23 21 integer, dimension(4) :: id,varid,start,size 24 22 integer, dimension(5) :: dimids 25 23 character (len=50) :: name,nameout,units,title 26 real, dimension( iip1,jjp1,llm) :: sum3d,square3d,mean3d,sd3d27 real, dimension( iip1,jjp1) :: sum2d,square2d,mean2d,sd2d24 real, dimension(nbp_lon+1,nbp_lat,nbp_lev) :: sum3d,square3d,mean3d,sd3d 25 real, dimension(nbp_lon+1,nbp_lat) :: sum2d,square2d,mean2d,sd2d 28 26 real, dimension(istime) :: time 29 real, dimension( jjp1) :: lat30 real, dimension( iip1) :: lon31 real, dimension( llm) :: alt27 real, dimension(nbp_lat) :: lat 28 real, dimension(nbp_lon+1) :: lon 29 real, dimension(nbp_lev) :: alt 32 30 logical :: lcopy=.true. 33 31 !integer :: latid,lonid,altid,timeid … … 35 33 !integer, dimension(4) :: dimout 36 34 35 ! Incrementation of count for the last step, which is not done in wstats 36 count(istime)=count(istime)+1 37 37 38 if (is_master) then 38 39 ! only the master needs do this 39 40 ! Incrementation of count for the last step, which is not done in wstats41 count(istime)=count(istime)+142 40 43 41 ierr = NF_OPEN("stats.nc",NF_WRITE,nid) … … 107 105 ! dimout(4)=timeid 108 106 109 size=(/ iip1,jjp1,llm,1/)107 size=(/nbp_lon+1,nbp_lat,nbp_lev,1/) 110 108 do lt=1,istime 111 109 start=(/1,1,1,lt/) … … 137 135 ! dimout(3)=timeid 138 136 139 size=(/ iip1,jjp1,1,0/)137 size=(/nbp_lon+1,nbp_lat,1,0/) 140 138 do lt=1,istime 141 139 start=(/1,1,lt,0/)
Note: See TracChangeset
for help on using the changeset viewer.