Ignore:
Timestamp:
Apr 5, 2016, 10:51:51 AM (9 years ago)
Author:
emillour
Message:

Generic GCM: Towards a cleaner separation between physics and dynamics

  • Got rid of references to "dimensions.h" from physics packages: use nbp_lon (=iim), nbp_lat (=jjp1) and nbp_lev from module mod_grid_phy_lmdz (in phy_common) instead.
  • Removed module "comhdiff_mod.F90", as it is only used by module surf_heat_transp_mod.F90, moved module variables there.
  • Addedin "surf_heat_transp_mod" local versions of some arrays and routines (from dyn3d) required to compute gradient, divergence, etc. on the global dynamics grid. As before, the slab ocean only works in serial.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/mkstat.F90

    r1397 r1529  
    1010!  Yann W. july 2003
    1111
     12use statto_mod, only: istime,count
    1213use mod_phys_lmdz_para, only : is_master
    13 use statto_mod, only: istime,count
     14use mod_grid_phy_lmdz, only : nbp_lon, nbp_lat, nbp_lev
    1415
    1516implicit none
    1617
    17 #include "dimensions.h"
    18 #include "netcdf.inc"
     18include "netcdf.inc"
    1919
    20 integer,parameter :: iip1=iim+1
    21 integer,parameter :: jjp1=jjm+1
    2220integer :: ierr,nid,nbvar,i,ndims,lt,nvarid
    2321integer, dimension(4) :: id,varid,start,size
    2422integer, dimension(5) :: dimids
    2523character (len=50) :: name,nameout,units,title
    26 real, dimension(iip1,jjp1,llm) :: sum3d,square3d,mean3d,sd3d
    27 real, dimension(iip1,jjp1) :: sum2d,square2d,mean2d,sd2d
     24real, dimension(nbp_lon+1,nbp_lat,nbp_lev) :: sum3d,square3d,mean3d,sd3d
     25real, dimension(nbp_lon+1,nbp_lat) :: sum2d,square2d,mean2d,sd2d
    2826real, dimension(istime) :: time
    29 real, dimension(jjp1) :: lat
    30 real, dimension(iip1) :: lon
    31 real, dimension(llm) :: alt
     27real, dimension(nbp_lat) :: lat
     28real, dimension(nbp_lon+1) :: lon
     29real, dimension(nbp_lev) :: alt
    3230logical :: lcopy=.true.
    3331!integer :: latid,lonid,altid,timeid
     
    3533!integer, dimension(4) :: dimout
    3634
     35! Incrementation of count for the last step, which is not done in wstats
     36count(istime)=count(istime)+1
     37
    3738if (is_master) then
    3839! only the master needs do this
    39 
    40 ! Incrementation of count for the last step, which is not done in wstats
    41 count(istime)=count(istime)+1
    4240
    4341ierr = NF_OPEN("stats.nc",NF_WRITE,nid)
     
    107105!      dimout(4)=timeid
    108106
    109       size=(/iip1,jjp1,llm,1/)
     107      size=(/nbp_lon+1,nbp_lat,nbp_lev,1/)
    110108      do lt=1,istime
    111109         start=(/1,1,1,lt/)
     
    137135!      dimout(3)=timeid
    138136
    139       size=(/iip1,jjp1,1,0/)
     137      size=(/nbp_lon+1,nbp_lat,1,0/)
    140138      do lt=1,istime
    141139         start=(/1,1,lt,0/)
Note: See TracChangeset for help on using the changeset viewer.