/[lmdze]/trunk/Sources/dyn3d/etat0.f
ViewVC logotype

Diff of /trunk/Sources/dyn3d/etat0.f

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 48 by guez, Tue Jul 19 12:54:20 2011 UTC revision 49 by guez, Wed Aug 24 11:43:14 2011 UTC
# Line 17  contains Line 17  contains
17    
18      ! From "etat0_netcdf.F", version 1.3 2005/05/25 13:10:09      ! From "etat0_netcdf.F", version 1.3 2005/05/25 13:10:09
19    
     ! This subroutine creates "mask".  
   
20      use caldyn0_m, only: caldyn0      use caldyn0_m, only: caldyn0
21      use comconst, only: dtvr, daysec, cpp, kappa      use comconst, only: dtvr, daysec, cpp, kappa
22      use comgeom, only: rlatu, rlonv, rlonu, rlatv, aire_2d, apoln, apols, &      use comgeom, only: rlatu, rlonv, rlonu, rlatv, aire_2d, apoln, apols, &
# Line 149  contains Line 147  contains
147      ! Compute pressure on intermediate levels:      ! Compute pressure on intermediate levels:
148      forall(l = 1: llm + 1) p3d(:, :, l) = ap(l) + bp(l) * psol      forall(l = 1: llm + 1) p3d(:, :, l) = ap(l) + bp(l) * psol
149      CALL exner_hyb(psol, p3d, pks, pk)      CALL exner_hyb(psol, p3d, pks, pk)
150      IF (MINVAL(pk) == MAXVAL(pk)) stop '"pk" should not be constant'      IF (MINVAL(pk) == MAXVAL(pk)) then
151           print *, '"pk" should not be constant'
152           stop 1
153        end IF
154    
155      pls = preff * (pk / cpp)**(1. / kappa)      pls = preff * (pk / cpp)**(1. / kappa)
156      PRINT *, "minval(pls) = ", minval(pls)      PRINT *, "minval(pls) = ", minval(pls)
# Line 216  contains Line 217  contains
217      zpic = pack(zpic_2d, dyn_phy)      zpic = pack(zpic_2d, dyn_phy)
218      zval = pack(zval_2d, dyn_phy)      zval = pack(zval_2d, dyn_phy)
219    
220      ! On initialise les sous-surfaces:      ! On initialise les sous-surfaces.
221      ! Lecture du fichier glace de terre pour fixer la fraction de terre      ! Lecture du fichier glace de terre pour fixer la fraction de terre
222      ! et de glace de terre:      ! et de glace de terre :
223      CALL flininfo("landiceref.nc", iml_lic, jml_lic, llm_tmp, &      CALL flininfo("landiceref.nc", iml_lic, jml_lic, llm_tmp, &
224           ttm_tmp, fid)           ttm_tmp, fid)
225      ALLOCATE(lat_lic(iml_lic, jml_lic))      ALLOCATE(lat_lic(iml_lic, jml_lic))
# Line 229  contains Line 230  contains
230      CALL flinopen_nozoom(iml_lic, jml_lic, &      CALL flinopen_nozoom(iml_lic, jml_lic, &
231           llm_tmp, lon_lic, lat_lic, lev, ttm_tmp, itaul, date, trash,  &           llm_tmp, lon_lic, lat_lic, lev, ttm_tmp, itaul, date, trash,  &
232           fid)           fid)
233        CALL flinclo(fid)
234      call nf95_open("landiceref.nc", nf90_nowrite, ncid)      call nf95_open("landiceref.nc", nf90_nowrite, ncid)
235      call nf95_inq_varid(ncid, 'landice', varid)      call nf95_inq_varid(ncid, 'landice', varid)
236      call nf95_get_var(ncid, varid, fraclic)      call nf95_get_var(ncid, varid, fraclic)
237      call nf95_close(ncid)      call nf95_close(ncid)
     CALL flinclo(fid)  
238    
239      ! Interpolation sur la grille T du modèle :      ! Interpolation sur la grille T du modèle :
240      PRINT *, 'Dimensions de "landice"'      PRINT *, 'Dimensions de "landice"'

Legend:
Removed from v.48  
changed lines
  Added in v.49

  ViewVC Help
Powered by ViewVC 1.1.21