/[lmdze]/trunk/phylmd/phyredem.f
ViewVC logotype

Diff of /trunk/phylmd/phyredem.f

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

revision 99 by guez, Wed Jul 2 18:39:15 2014 UTC revision 101 by guez, Mon Jul 7 17:45:21 2014 UTC
# Line 30  contains Line 30  contains
30      REAL, INTENT(IN):: tsoil(:, :, :) ! (klon, nsoilmx, nbsrf)      REAL, INTENT(IN):: tsoil(:, :, :) ! (klon, nsoilmx, nbsrf)
31      REAL, INTENT(IN):: tslab(:), seaice(:) ! (klon) slab ocean      REAL, INTENT(IN):: tslab(:), seaice(:) ! (klon) slab ocean
32      REAL, INTENT(IN):: qsurf(:, :) ! (klon, nbsrf)      REAL, INTENT(IN):: qsurf(:, :) ! (klon, nbsrf)
33    
34      REAL, intent(in):: qsol(:) ! (klon)      REAL, intent(in):: qsol(:) ! (klon)
35        ! column-density of water in soil, in kg m-2
36    
37      REAL, INTENT(IN):: snow(klon, nbsrf)      REAL, INTENT(IN):: snow(klon, nbsrf)
38      REAL, INTENT(IN):: albedo(klon, nbsrf)      REAL, INTENT(IN):: albedo(klon, nbsrf)
39      REAL, INTENT(IN):: alblw(klon, nbsrf)      REAL, INTENT(IN):: alblw(klon, nbsrf)
# Line 61  contains Line 64  contains
64    
65      ! Local:      ! Local:
66    
67      INTEGER ncid, idim2, idim3      INTEGER ncid, idim2, idim3, dimid_nbsrf
68      integer varid, varid_run_off_lic_0, varid_sig1, varid_w01, varid_rlon      integer varid, varid_run_off_lic_0, varid_sig1, varid_w01, varid_rlon
69      integer varid_rlat, varid_zmasq, varid_fter, varid_flic, varid_foce      integer varid_rlat, varid_zmasq, varid_fter, varid_flic, varid_foce
70      integer varid_fsic      integer varid_fsic
# Line 80  contains Line 83  contains
83    
84      call nf95_def_dim(ncid, 'points_physiques', klon, idim2)      call nf95_def_dim(ncid, 'points_physiques', klon, idim2)
85      call nf95_def_dim(ncid, 'klev', klev, idim3)      call nf95_def_dim(ncid, 'klev', klev, idim3)
86        call nf95_def_dim(ncid, 'nbsrf', nbsrf, dimid_nbsrf)
87    
88      call nf95_def_var(ncid, 'longitude', nf90_float, idim2, varid_rlon)      call nf95_def_var(ncid, 'longitude', nf90_float, idim2, varid_rlon)
89      call nf95_def_var(ncid, 'latitude', nf90_float, idim2, varid_rlat)      call nf95_def_var(ncid, 'latitude', nf90_float, idim2, varid_rlat)
# Line 111  contains Line 115  contains
115      call nf95_put_var(ncid, varid_foce, pctsrf(:, is_oce))      call nf95_put_var(ncid, varid_foce, pctsrf(:, is_oce))
116      call nf95_put_var(ncid, varid_fsic, pctsrf(:, is_sic))      call nf95_put_var(ncid, varid_fsic, pctsrf(:, is_sic))
117    
118      DO nsrf = 1, nbsrf      call nf95_redef(ncid)
119         IF (nsrf<=99) THEN      call nf95_def_var(ncid, 'TS', nf90_float, (/idim2, dimid_nbsrf/), varid)
120            WRITE (str2, '(i2.2)') nsrf      call nf95_put_att(ncid, varid, 'title', 'surface temperature')
121            call nf95_redef(ncid)      call nf95_enddef(ncid)
122            call nf95_def_var(ncid, 'TS'//str2, nf90_float, idim2, varid)      call nf95_put_var(ncid, varid, tsol)
           call nf95_put_att(ncid, varid, 'title', &  
                'Temperature de surface No.'//str2)  
           call nf95_enddef(ncid)  
        ELSE  
           PRINT *, 'Trop de sous-mailles'  
           STOP 1  
        END IF  
        call nf95_put_var(ncid, varid, tsol(:, nsrf))  
     END DO  
123    
124      DO nsrf = 1, nbsrf      DO nsrf = 1, nbsrf
125         DO isoil = 1, nsoilmx         DO isoil = 1, nsoilmx

Legend:
Removed from v.99  
changed lines
  Added in v.101

  ViewVC Help
Powered by ViewVC 1.1.21