Ignore:
Timestamp:
Mar 22, 2011, 5:25:44 PM (14 years ago)
Author:
slebonnois
Message:

Serie de modifs SL pour homogeneisation des phytitan et phyvenus
Ca touche aussi aux liens phy/dyn (surtout a propos de clesphy0),
a verifier avec les autres, donc...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libf/phytitan/write_histday.h

    r3 r97  
    77      ndex3d = 0
    88      zx_tmp_2d = 0.
    9       z4_tmp_2d = 0.
    109      zx_tmp_3d = 0.
    11       z4_tmp_3d = 0.
    1210      zx_tmp_fi2d=0.
    1311      zx_tmp_fi3d=0.
     
    2422c
    2523      CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d)
    26       z4_tmp_2d=zx_tmp_2d
    27       CALL histwrite(nid_day,"phis",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     24      CALL histwrite(nid_day,"phis",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    2825C
    2926      CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d)
    30       z4_tmp_2d=zx_tmp_2d
    31       CALL histwrite(nid_day,"aire",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     27      CALL histwrite(nid_day,"aire",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    3228c
    3329ccccccc axe Ls
    3430      do j=1,jjmp1
    3531       do i=1,iim
    36         z4_tmp_2d(i,j)=zls*180./RPI      ! zls est en radians !!
     32        zx_tmp_2d(i,j)=zls*180./RPI      ! zls est en radians !!
    3733       enddo
    3834      enddo
    39       CALL histwrite(nid_day,"ls",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     35      CALL histwrite(nid_day,"ls",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    4036c
    4137ccccccccccccc 2D fields, variables
    4238c
    4339      CALL gr_fi_ecrit(1, klon,iim,jjmp1, ftsol,zx_tmp_2d)
    44       z4_tmp_2d=zx_tmp_2d
    45       CALL histwrite(nid_day,"tsol",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     40      CALL histwrite(nid_day,"tsol",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    4641c
    4742      DO i = 1, klon
     
    4944      ENDDO
    5045      CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d)
    51       z4_tmp_2d=zx_tmp_2d
    52       CALL histwrite(nid_day,"psol",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     46      CALL histwrite(nid_day,"psol",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    5347c
    5448c     CALL gr_fi_ecrit(1, klon,iim,jjmp1, ue,zx_tmp_2d)
    55 c     z4_tmp_2d=zx_tmp_2d
    56 c     CALL histwrite(nid_day,"ue",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     49c     CALL histwrite(nid_day,"ue",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    5750c
    5851c     CALL gr_fi_ecrit(1, klon,iim,jjmp1, ve,zx_tmp_2d)
    59 c     z4_tmp_2d=zx_tmp_2d
    60 c     CALL histwrite(nid_day,"ve",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     52c     CALL histwrite(nid_day,"ve",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    6153c
    6254      ENDIF !lev_histday.GE.1
     
    6860c
    6961      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d)
    70       z4_tmp_3d=zx_tmp_3d
    71       CALL histwrite(nid_day,"temp",itau_w,z4_tmp_3d,
     62      CALL histwrite(nid_day,"temp",itau_w,zx_tmp_3d,
    7263     .                                   iim*jjmp1*klev,ndex3d)
    7364c
    7465      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d)
    75       z4_tmp_3d=zx_tmp_3d
    76       CALL histwrite(nid_day,"pres",itau_w,z4_tmp_3d,
     66      CALL histwrite(nid_day,"pres",itau_w,zx_tmp_3d,
    7767     .                                   iim*jjmp1*klev,ndex3d)
    7868c
    7969      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d)
    80       z4_tmp_3d=zx_tmp_3d
    81       CALL histwrite(nid_day,"geop",itau_w,z4_tmp_3d,
     70      CALL histwrite(nid_day,"geop",itau_w,zx_tmp_3d,
    8271     .                                   iim*jjmp1*klev,ndex3d)
    8372c
    8473      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d)
    85       z4_tmp_3d=zx_tmp_3d
    86       CALL histwrite(nid_day,"vitu",itau_w,z4_tmp_3d,
     74      CALL histwrite(nid_day,"vitu",itau_w,zx_tmp_3d,
    8775     .                                   iim*jjmp1*klev,ndex3d)
    8876c
    8977      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d)
    90       z4_tmp_3d=zx_tmp_3d
    91       CALL histwrite(nid_day,"vitv",itau_w,z4_tmp_3d,
     78      CALL histwrite(nid_day,"vitv",itau_w,zx_tmp_3d,
    9279     .                                   iim*jjmp1*klev,ndex3d)
    9380c
    9481      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, omega, zx_tmp_3d)
    95       z4_tmp_3d=zx_tmp_3d
    96       CALL histwrite(nid_day,"vitw",itau_w,z4_tmp_3d,
     82      CALL histwrite(nid_day,"vitw",itau_w,zx_tmp_3d,
    9783     .                                   iim*jjmp1*klev,ndex3d)
    9884c
    9985      CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw,zx_tmp_2d)
    100       z4_tmp_2d=zx_tmp_2d
    101       CALL histwrite(nid_day,"tops",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     86      CALL histwrite(nid_day,"tops",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    10287c
    10388      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_u_dyn, zx_tmp_3d)
    104       z4_tmp_3d=zx_tmp_3d
    105       CALL histwrite(nid_day,"dudyn",itau_w,z4_tmp_3d,
     89      CALL histwrite(nid_day,"dudyn",itau_w,zx_tmp_3d,
    10690     .                                   iim*jjmp1*klev,ndex3d)
    10791c
    10892      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_u_vdf, zx_tmp_3d)
    109       z4_tmp_3d=zx_tmp_3d
    110       CALL histwrite(nid_day,"duvdf",itau_w,z4_tmp_3d,
     93      CALL histwrite(nid_day,"duvdf",itau_w,zx_tmp_3d,
    11194     .                                   iim*jjmp1*klev,ndex3d)
    11295c
     
    11598           DO iq=1,nmicro
    11699       CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qaer(1,1,iq), zx_tmp_3d)
    117        z4_tmp_3d=zx_tmp_3d
    118        CALL histwrite(nid_day,tname(iq),itau_w,z4_tmp_3d,
     100       CALL histwrite(nid_day,tname(iq),itau_w,zx_tmp_3d,
    119101     .                                   iim*jjmp1*klev,ndex3d)
    120102           ENDDO
     
    123105           DO iq=nmicro+1,nqmax
    124106       CALL gr_fi_ecrit(klev,klon,iim,jjmp1,tr_seri(1,1,iq),zx_tmp_3d)
    125        z4_tmp_3d=zx_tmp_3d
    126        CALL histwrite(nid_day,tname(iq),itau_w,z4_tmp_3d,
     107       CALL histwrite(nid_day,tname(iq),itau_w,zx_tmp_3d,
    127108     .                                   iim*jjmp1*klev,ndex3d)
    128109           ENDDO
     
    140121c
    141122      CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d)
    142       z4_tmp_2d=zx_tmp_2d
    143       CALL histwrite(nid_day,"topl",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     123      CALL histwrite(nid_day,"topl",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    144124c
    145125      CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d)
    146       z4_tmp_2d=zx_tmp_2d
    147       CALL histwrite(nid_day,"sols",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     126      CALL histwrite(nid_day,"sols",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    148127c
    149128      CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d)
    150       z4_tmp_2d=zx_tmp_2d
    151       CALL histwrite(nid_day,"soll",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     129      CALL histwrite(nid_day,"soll",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    152130c
    153131c 3D
     
    155133      zx_tmp_fi3d(1:klon,1:klev)=swnet(1:klon,1:klev)
    156134      CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d)
    157       z4_tmp_3d=zx_tmp_3d
    158       CALL histwrite(nid_day,"SWnet",itau_w,z4_tmp_3d,
     135      CALL histwrite(nid_day,"SWnet",itau_w,zx_tmp_3d,
    159136     .                                   iim*jjmp1*klev,ndex3d)
    160137c
    161138      zx_tmp_fi3d(1:klon,1:klev)=lwnet(1:klon,1:klev)
    162139      CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d)
    163       z4_tmp_3d=zx_tmp_3d
    164       CALL histwrite(nid_day,"LWnet",itau_w,z4_tmp_3d,
     140      CALL histwrite(nid_day,"LWnet",itau_w,zx_tmp_3d,
    165141     .                                   iim*jjmp1*klev,ndex3d)
    166142c
     
    171147c
    172148      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t_dyn, zx_tmp_3d)
    173       z4_tmp_3d=zx_tmp_3d
    174       CALL histwrite(nid_day,"dtdyn",itau_w,z4_tmp_3d,
     149      CALL histwrite(nid_day,"dtdyn",itau_w,zx_tmp_3d,
    175150     .                                   iim*jjmp1*klev,ndex3d)
    176151c
    177152      CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t, zx_tmp_3d)
    178       z4_tmp_3d=zx_tmp_3d
    179       CALL histwrite(nid_day,"dtphy",itau_w,z4_tmp_3d,
     153      CALL histwrite(nid_day,"dtphy",itau_w,zx_tmp_3d,
    180154     .                                   iim*jjmp1*klev,ndex3d)
    181155c K/s
    182156      zx_tmp_fi3d(1:klon,1:klev)=d_t_vdf(1:klon,1:klev)
    183157      CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d)
    184       z4_tmp_3d=zx_tmp_3d
    185       CALL histwrite(nid_day,"dtvdf",itau_w,z4_tmp_3d,
     158      CALL histwrite(nid_day,"dtvdf",itau_w,zx_tmp_3d,
    186159     .                                   iim*jjmp1*klev,ndex3d)
    187160c
     
    189162      zx_tmp_fi3d(1:klon,1:klev)=d_t_ajs(1:klon,1:klev)
    190163      CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d)
    191       z4_tmp_3d=zx_tmp_3d
    192       CALL histwrite(nid_day,"dtajs",itau_w,z4_tmp_3d,
     164      CALL histwrite(nid_day,"dtajs",itau_w,zx_tmp_3d,
    193165     .                                   iim*jjmp1*klev,ndex3d)
    194166c
     
    196168      zx_tmp_fi3d(1:klon,1:klev)=heat(1:klon,1:klev)
    197169      CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d)
    198       z4_tmp_3d=zx_tmp_3d
    199       CALL histwrite(nid_day,"dtswr",itau_w,z4_tmp_3d,
     170      CALL histwrite(nid_day,"dtswr",itau_w,zx_tmp_3d,
    200171     .                                   iim*jjmp1*klev,ndex3d)
    201172c
     
    203174      zx_tmp_fi3d(1:klon,1:klev)=-1.*cool(1:klon,1:klev)
    204175      CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d)
    205       z4_tmp_3d=zx_tmp_3d
    206       CALL histwrite(nid_day,"dtlwr",itau_w,z4_tmp_3d,
     176      CALL histwrite(nid_day,"dtlwr",itau_w,zx_tmp_3d,
    207177     .                                   iim*jjmp1*klev,ndex3d)
    208178c K/s     
    209179      zx_tmp_fi3d(1:klon,1:klev)=d_t_ec(1:klon,1:klev)
    210180      CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d)
    211       z4_tmp_3d=zx_tmp_3d
    212       CALL histwrite(nid_day,"dtec",itau_w,z4_tmp_3d,
     181      CALL histwrite(nid_day,"dtec",itau_w,zx_tmp_3d,
    213182     .                                   iim*jjmp1*klev,ndex3d)
    214183c
     
    220189c
    221190c      CALL gr_fi_ecrit(1, klon,iim,jjmp1, fluxu , zx_tmp_2d)
    222 c      z4_tmp_2d=zx_tmp_2d
    223191c      CALL histwrite(nid_day,"taux_",itau_w,
    224 c    $      z4_tmp_2d,iim*jjmp1,ndex2d)
     192c    $      zx_tmp_2d,iim*jjmp1,ndex2d)
    225193c     
    226194c      CALL gr_fi_ecrit(1, klon,iim,jjmp1, fluxv , zx_tmp_2d)
    227 c      z4_tmp_2d=zx_tmp_2d
    228195c      CALL histwrite(nid_day,"tauy_",itau_w,
    229 c    $      z4_tmp_2d,iim*jjmp1,ndex2d)
     196c    $      zx_tmp_2d,iim*jjmp1,ndex2d)
    230197c
    231198c     CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragm,zx_tmp_2d)
    232 c      z4_tmp_2d=zx_tmp_2d
    233 c     CALL histwrite(nid_day,"cdrm",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     199c     CALL histwrite(nid_day,"cdrm",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    234200c
    235201c     CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragh,zx_tmp_2d)
    236 c      z4_tmp_2d=zx_tmp_2d
    237 c     CALL histwrite(nid_day,"cdrh",itau_w,z4_tmp_2d,iim*jjmp1,ndex2d)
     202c     CALL histwrite(nid_day,"cdrh",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d)
    238203c
    239204      ENDIF !lev_histday.GE.5
Note: See TracChangeset for help on using the changeset viewer.