[868] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | IF (ok_mensuel) THEN |
---|
| 5 | c |
---|
| 6 | ndex3d = 0 |
---|
| 7 | itau_w = itau_phy + itap |
---|
| 8 | ccc |
---|
| 9 | c Champs interpolles sur des niveaux de pression du NMC |
---|
| 10 | c |
---|
| 11 | c PARAMETER(nout=3) !nout=1 : day; =2 : mth; =3 : NMC |
---|
| 12 | ccc |
---|
| 13 | IF(type_run.EQ."CLIM".OR.type_run.EQ."ENSP") THEN |
---|
| 14 | ccc |
---|
| 15 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,tsumSTD(:,:,2), |
---|
| 16 | cym $ zx_tmp_NC) |
---|
| 17 | CALL histwrite_phy(nid_nmc,"temp",itau_w,tsumSTD(:,:,2)) |
---|
| 18 | c |
---|
| 19 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,phisumSTD(:,:,2), |
---|
| 20 | cym $ zx_tmp_NC) |
---|
| 21 | CALL histwrite_phy(nid_nmc,"phi",itau_w,phisumSTD(:,:,2)) |
---|
| 22 | c |
---|
| 23 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,qsumSTD(:,:,2), |
---|
| 24 | cym $ zx_tmp_NC) |
---|
| 25 | CALL histwrite_phy(nid_nmc,"q",itau_w,qsumSTD(:,:,2)) |
---|
| 26 | c |
---|
| 27 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,rhsumSTD(:,:,2), |
---|
| 28 | cym $ zx_tmp_NC) |
---|
| 29 | CALL histwrite_phy(nid_nmc,"rh",itau_w,rhsumSTD(:,:,2)) |
---|
| 30 | c |
---|
| 31 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,usumSTD(:,:,2), |
---|
| 32 | cym $ zx_tmp_NC) |
---|
| 33 | CALL histwrite_phy(nid_nmc,"u",itau_w,usumSTD(:,:,2)) |
---|
| 34 | c |
---|
| 35 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vsumSTD(:,:,2), |
---|
| 36 | cym $ zx_tmp_NC) |
---|
| 37 | CALL histwrite_phy(nid_nmc,"v",itau_w,vsumSTD(:,:,2)) |
---|
| 38 | ccc |
---|
| 39 | ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN |
---|
| 40 | ccc |
---|
| 41 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,tsumSTD(:,:,3), |
---|
| 42 | cym $ zx_tmp_NC) |
---|
| 43 | CALL histwrite_phy(nid_nmc,"temp",itau_w,tsumSTD(:,:,3)) |
---|
| 44 | c |
---|
| 45 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,phisumSTD(:,:,3), |
---|
| 46 | cym $ zx_tmp_NC) |
---|
| 47 | CALL histwrite_phy(nid_nmc,"phi",itau_w,phisumSTD(:,:,3)) |
---|
| 48 | c |
---|
| 49 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,qsumSTD(:,:,3), |
---|
| 50 | cym $ zx_tmp_NC) |
---|
| 51 | CALL histwrite_phy(nid_nmc,"q",itau_w,qsumSTD(:,:,3)) |
---|
| 52 | c |
---|
| 53 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,rhsumSTD(:,:,3), |
---|
| 54 | cym $ zx_tmp_NC) |
---|
| 55 | CALL histwrite_phy(nid_nmc,"rh",itau_w,rhsumSTD(:,:,3)) |
---|
| 56 | c |
---|
| 57 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,usumSTD(:,:,3), |
---|
| 58 | cym $ zx_tmp_NC) |
---|
| 59 | CALL histwrite_phy(nid_nmc,"u",itau_w,usumSTD(:,:,3)) |
---|
| 60 | c |
---|
| 61 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vsumSTD(:,:,3), |
---|
| 62 | cym $ zx_tmp_NC) |
---|
| 63 | CALL histwrite_phy(nid_nmc,"v",itau_w,vsumSTD(:,:,3)) |
---|
| 64 | c |
---|
| 65 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,wsumSTD(:,:,3), |
---|
| 66 | cym $ zx_tmp_NC) |
---|
| 67 | CALL histwrite_phy(nid_nmc,"w",itau_w,wsumSTD(:,:,3)) |
---|
| 68 | c |
---|
| 69 | DO k=1, nlevSTD |
---|
| 70 | DO i=1, klon |
---|
| 71 | IF(tnondef(i,k,3).NE.1.E+20) THEN |
---|
| 72 | zx_tmp_fiNC(i,k) = (100.*tnondef(i,k,3))/ecrit_hf2mth |
---|
| 73 | ELSE |
---|
| 74 | zx_tmp_fiNC(i,k) = 1.E+20 |
---|
| 75 | ENDIF |
---|
| 76 | ENDDO |
---|
| 77 | ENDDO !k=1, nlevSTD |
---|
| 78 | c |
---|
| 79 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,zx_tmp_fiNC,zx_tmp_NC) |
---|
| 80 | CALL histwrite_phy(nid_nmc,"psbg",itau_w,zx_tmp_fiNC) |
---|
| 81 | c |
---|
| 82 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,uvsumSTD(:,:,3), |
---|
| 83 | cym $ zx_tmp_NC) |
---|
| 84 | CALL histwrite_phy(nid_nmc,"uv",itau_w,uvsumSTD(:,:,3)) |
---|
| 85 | c |
---|
| 86 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vqsumSTD(:,:,3), |
---|
| 87 | cym $ zx_tmp_NC) |
---|
| 88 | CALL histwrite_phy(nid_nmc,"vq",itau_w,vqsumSTD(:,:,3)) |
---|
| 89 | c |
---|
| 90 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vTsumSTD(:,:,3), |
---|
| 91 | cym $ zx_tmp_NC) |
---|
| 92 | CALL histwrite_phy(nid_nmc,"vT",itau_w,vTsumSTD(:,:,3)) |
---|
| 93 | c |
---|
| 94 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1, wqsumSTD(:,:,3), |
---|
| 95 | cym $ zx_tmp_NC) |
---|
| 96 | CALL histwrite_phy(nid_nmc,"wq",itau_w,wqsumSTD(:,:,3)) |
---|
| 97 | c |
---|
| 98 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vphisumSTD(:,:,3), |
---|
| 99 | cym $ zx_tmp_NC) |
---|
| 100 | CALL histwrite_phy(nid_nmc,"vphi",itau_w,vphisumSTD(:,:,3)) |
---|
| 101 | c |
---|
| 102 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,wTsumSTD(:,:,3), |
---|
| 103 | cym $ zx_tmp_NC) |
---|
| 104 | CALL histwrite_phy(nid_nmc,"wT",itau_w,wTsumSTD(:,:,3)) |
---|
| 105 | c |
---|
| 106 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,u2sumSTD(:,:,3), |
---|
| 107 | cym $ zx_tmp_NC) |
---|
| 108 | CALL histwrite_phy(nid_nmc,"uxu",itau_w,u2sumSTD(:,:,3)) |
---|
| 109 | c |
---|
| 110 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,v2sumSTD(:,:,3), |
---|
| 111 | cym $ zx_tmp_NC) |
---|
| 112 | CALL histwrite_phy(nid_nmc,"vxv",itau_w,v2sumSTD(:,:,3)) |
---|
| 113 | c |
---|
| 114 | cym CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,T2sumSTD(:,:,3), |
---|
| 115 | cym $ zx_tmp_NC) |
---|
| 116 | CALL histwrite_phy(nid_nmc,"TxT",itau_w,T2sumSTD(:,:,3)) |
---|
| 117 | c |
---|
| 118 | ENDIF !type_run |
---|
| 119 | c |
---|
| 120 | if (ok_sync) then |
---|
| 121 | c$OMP MASTER |
---|
| 122 | call histsync(nid_nmc) |
---|
| 123 | c$OMP END MASTER |
---|
| 124 | endif |
---|
| 125 | |
---|
| 126 | ENDIF |
---|