[1910] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
[776] | 4 | IF (is_sequential) THEN |
---|
| 5 | |
---|
[644] | 6 | IF (type_run.EQ."AMIP") THEN |
---|
[1910] | 7 | ! |
---|
[644] | 8 | ndex2d = 0 |
---|
[2408] | 9 | itau_w = itau_phy + itap + start_time * day_step_phy |
---|
[1910] | 10 | ! |
---|
| 11 | ! Champs 2D: |
---|
| 12 | ! |
---|
[644] | 13 | pi = ACOS(-1.) |
---|
| 14 | pir = 4.0*ATAN(1.0) / 180.0 |
---|
[1910] | 15 | ! |
---|
[644] | 16 | DO i=1, klon |
---|
| 17 | zx_tmp_fi2d(i)=(topsw(i)-toplw(i)) |
---|
| 18 | ENDDO |
---|
[1910] | 19 | ! |
---|
[644] | 20 | ok_msk=.FALSE. |
---|
| 21 | msk(1:klon)=pctsrf(1:klon,is_ter) |
---|
[2408] | 22 | CALL moyglo_pondaire(klon, zx_tmp_fi2d, cell_area, & |
---|
[1910] | 23 | ok_msk, msk, moyglo) |
---|
[644] | 24 | zx_tmp_fi2d(1:klon)=moyglo |
---|
[1910] | 25 | ! |
---|
[2408] | 26 | CALL gr_fi_ecrit(1, klon,nbp_lon,nbp_lat, zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 27 | CALL histwrite(nid_day_seri,"bilTOA",itau_w, & |
---|
[2408] | 28 | zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 29 | ! |
---|
[644] | 30 | ok_msk=.FALSE. |
---|
[2408] | 31 | CALL moyglo_pondaire(klon, bils, cell_area, & |
---|
[1910] | 32 | ok_msk, msk, moyglo) |
---|
[644] | 33 | zx_tmp_fi2d(1:klon)=moyglo |
---|
[1910] | 34 | ! |
---|
[2408] | 35 | CALL gr_fi_ecrit(1, klon,nbp_lon,nbp_lat, zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 36 | CALL histwrite(nid_day_seri,"bils",itau_w, & |
---|
[2408] | 37 | zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 38 | ! |
---|
[644] | 39 | DO k=1, klev |
---|
| 40 | DO i=1, klon |
---|
[1910] | 41 | !IM 080904 zx_tmp_fi3d(i,k)=u(i,k)**2+v(i,k)**2 |
---|
[644] | 42 | zx_tmp_fi3d(i,k)=(u(i,k)**2+v(i,k)**2)/2. |
---|
| 43 | ENDDO |
---|
| 44 | ENDDO |
---|
[1910] | 45 | ! |
---|
| 46 | CALL moyglo_pondaima(klon, klev, zx_tmp_fi3d, & |
---|
[2408] | 47 | cell_area, paprs, moyglo) |
---|
[644] | 48 | zx_tmp_fi2d(1:klon)=moyglo |
---|
[1910] | 49 | ! |
---|
[2408] | 50 | CALL gr_fi_ecrit(1, klon,nbp_lon,nbp_lat, zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 51 | CALL histwrite(nid_day_seri,"ecin",itau_w, & |
---|
[2408] | 52 | zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 53 | ! |
---|
| 54 | ! |
---|
| 55 | ! |
---|
[2408] | 56 | CALL gr_fi_ecrit(1,klon,nbp_lon,nbp_lat,cell_area,zx_tmp_2d) |
---|
[644] | 57 | airetot=0. |
---|
| 58 | DO i=1, klon |
---|
[2408] | 59 | airetot=airetot+cell_area(i) |
---|
[644] | 60 | ENDDO |
---|
[1910] | 61 | ! IF(itap.EQ.1) PRINT*,'airetotphy=',airetot |
---|
| 62 | ! |
---|
[644] | 63 | airetot=0. |
---|
[2408] | 64 | DO j=1, nbp_lat |
---|
| 65 | DO i=1, nbp_lon |
---|
[644] | 66 | airetot=airetot+zx_tmp_2d(i,j) |
---|
| 67 | ENDDO |
---|
| 68 | ENDDO |
---|
[1910] | 69 | ! |
---|
| 70 | ! IF(itap.EQ.1) PRINT*,'airetotij=',airetot, |
---|
| 71 | ! $ '4piR2',4.*pi*RA*RA |
---|
| 72 | ! |
---|
[644] | 73 | zx_tmp_fi2d(1:klon)=aam/airetot |
---|
[2408] | 74 | CALL gr_fi_ecrit(1,klon,nbp_lon,nbp_lat,zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 75 | CALL histwrite(nid_day_seri,"momang",itau_w,zx_tmp_2d, & |
---|
[2408] | 76 | nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 77 | ! |
---|
[644] | 78 | zx_tmp_fi2d(1:klon)=torsfc/airetot |
---|
[2408] | 79 | CALL gr_fi_ecrit(1,klon,nbp_lon,nbp_lat,zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 80 | CALL histwrite(nid_day_seri,"torsfc",itau_w,zx_tmp_2d, & |
---|
[2408] | 81 | nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 82 | ! |
---|
| 83 | !IM 151004 END |
---|
| 84 | ! |
---|
| 85 | CALL moyglo_pondmass(klon, klev, t_seri, & |
---|
[2408] | 86 | cell_area, paprs, moyglo) |
---|
[644] | 87 | zx_tmp_fi2d(1:klon)=moyglo |
---|
[1910] | 88 | ! |
---|
[2408] | 89 | CALL gr_fi_ecrit(1,klon,nbp_lon,nbp_lat,zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 90 | CALL histwrite(nid_day_seri,"tamv",itau_w, & |
---|
[2408] | 91 | zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 92 | ! |
---|
[644] | 93 | ok_msk=.FALSE. |
---|
[2408] | 94 | CALL moyglo_pondaire(klon, paprs(:,1), cell_area, & |
---|
[1910] | 95 | ok_msk, msk, moyglo) |
---|
[644] | 96 | zx_tmp_fi2d(1:klon)=moyglo |
---|
[1910] | 97 | ! |
---|
[2408] | 98 | CALL gr_fi_ecrit(1, klon,nbp_lon,nbp_lat, zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 99 | CALL histwrite(nid_day_seri,"psol",itau_w, & |
---|
[2408] | 100 | zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 101 | ! |
---|
[644] | 102 | ok_msk=.FALSE. |
---|
[2408] | 103 | CALL moyglo_pondaire(klon, evap, cell_area, & |
---|
[1910] | 104 | ok_msk, msk, moyglo) |
---|
[644] | 105 | zx_tmp_fi2d(1:klon)=moyglo |
---|
[1910] | 106 | ! |
---|
[2408] | 107 | CALL gr_fi_ecrit(1, klon,nbp_lon,nbp_lat, zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 108 | CALL histwrite(nid_day_seri,"evap",itau_w, & |
---|
[2408] | 109 | zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 110 | ! |
---|
| 111 | ! DO i=1, klon |
---|
| 112 | ! zx_tmp_fi2d(i)=SnowFrac(i,is_ter) |
---|
| 113 | ! ENDDO |
---|
| 114 | ! |
---|
| 115 | ! ok_msk=.TRUE. |
---|
| 116 | ! msk(1:klon)=pctsrf(1:klon,is_ter) |
---|
[2408] | 117 | ! CALL moyglo_pondaire(klon, zx_tmp_fi2d, cell_area, |
---|
[1910] | 118 | ! . ok_msk, msk, moyglo) |
---|
| 119 | ! zx_tmp_fi2d(1:klon)=moyglo |
---|
| 120 | ! |
---|
[2408] | 121 | ! CALL gr_fi_ecrit(1, klon,nbp_lon,nbp_lat,zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 122 | ! CALL histwrite(nid_day_seri,"SnowFrac", |
---|
[2408] | 123 | ! . itau_w,zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 124 | ! |
---|
| 125 | ! DO i=1, klon |
---|
| 126 | !IM 080904 zx_tmp_fi2d(i)=zsnow_mass(i)/330.*rowl |
---|
| 127 | ! zx_tmp_fi2d(i)=zsnow_mass(i) |
---|
| 128 | ! ENDDO |
---|
| 129 | ! |
---|
| 130 | !IM 140904 ok_msk=.FALSE. |
---|
| 131 | ! ok_msk=.TRUE. |
---|
| 132 | ! msk(1:klon)=pctsrf(1:klon,is_ter) |
---|
[2408] | 133 | ! CALL moyglo_pondaire(klon, zx_tmp_fi2d, cell_area, |
---|
[1910] | 134 | ! . ok_msk, msk, moyglo) |
---|
| 135 | ! zx_tmp_fi2d(1:klon)=moyglo |
---|
| 136 | ! |
---|
[2408] | 137 | ! CALL gr_fi_ecrit(1, klon,nbp_lon,nbp_lat,zx_tmp_fi2d,zx_tmp_2d) |
---|
[1910] | 138 | ! CALL histwrite(nid_day_seri,"snow_depth",itau_w, |
---|
[2408] | 139 | ! . zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 140 | ! |
---|
[644] | 141 | DO i=1, klon |
---|
| 142 | zx_tmp_fi2d(i)=ftsol(i,is_oce) |
---|
| 143 | ENDDO |
---|
[1910] | 144 | ! |
---|
[644] | 145 | ok_msk=.TRUE. |
---|
| 146 | msk(1:klon)=pctsrf(1:klon,is_oce) |
---|
[2408] | 147 | CALL moyglo_pondaire(klon, zx_tmp_fi2d, cell_area, & |
---|
[1910] | 148 | ok_msk, msk, moyglo) |
---|
[644] | 149 | zx_tmp_fi2d(1:klon)=moyglo |
---|
[1910] | 150 | ! |
---|
[2408] | 151 | CALL gr_fi_ecrit(1, klon,nbp_lon,nbp_lat, zx_tmp_fi2d, zx_tmp_2d) |
---|
[1910] | 152 | CALL histwrite(nid_day_seri,"tsol_"//clnsurf(is_oce), & |
---|
[2408] | 153 | itau_w,zx_tmp_2d,nbp_lon*nbp_lat,ndex2d) |
---|
[1910] | 154 | ! |
---|
| 155 | !================================================================= |
---|
| 156 | !================================================================= |
---|
| 157 | !================================================================= |
---|
| 158 | ! |
---|
[644] | 159 | if (ok_sync) then |
---|
| 160 | call histsync(nid_day_seri) |
---|
| 161 | endif |
---|
[1910] | 162 | ! |
---|
[644] | 163 | ENDIF !fin test sur type_run.EQ."AMIP" |
---|
[766] | 164 | |
---|
| 165 | ENDIF ! mono_cpu |
---|