[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | IF (ok_mensuel) THEN |
---|
| 5 | c |
---|
[644] | 6 | ndex3d = 0 |
---|
| 7 | itau_w = itau_phy + itap |
---|
| 8 | ccc |
---|
| 9 | c Champs interpolles sur des niveaux de pression du NMC |
---|
[524] | 10 | c |
---|
[644] | 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 |
---|
[704] | 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)) |
---|
[524] | 18 | c |
---|
[704] | 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)) |
---|
[524] | 22 | c |
---|
[704] | 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)) |
---|
[524] | 26 | c |
---|
[704] | 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)) |
---|
[524] | 30 | c |
---|
[704] | 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)) |
---|
[644] | 34 | c |
---|
[704] | 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)) |
---|
[644] | 38 | ccc |
---|
| 39 | ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN |
---|
| 40 | ccc |
---|
[704] | 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)) |
---|
[644] | 44 | c |
---|
[704] | 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)) |
---|
[644] | 48 | c |
---|
[704] | 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)) |
---|
[644] | 52 | c |
---|
[704] | 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)) |
---|
[644] | 56 | c |
---|
[704] | 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)) |
---|
[644] | 60 | c |
---|
[704] | 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)) |
---|
[644] | 64 | c |
---|
[704] | 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)) |
---|
[644] | 68 | c |
---|
| 69 | DO k=1, nlevSTD |
---|
| 70 | DO i=1, klon |
---|
| 71 | IF(tnondef(i,k,3).NE.1.E+20) THEN |
---|
[694] | 72 | zx_tmp_fiNC(i,k) = (100.*tnondef(i,k,3))/ecrit_hf2mth |
---|
[644] | 73 | ELSE |
---|
[694] | 74 | zx_tmp_fiNC(i,k) = 1.E+20 |
---|
[524] | 75 | ENDIF |
---|
[644] | 76 | ENDDO |
---|
| 77 | ENDDO !k=1, nlevSTD |
---|
[524] | 78 | c |
---|
[704] | 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) |
---|
[524] | 81 | c |
---|
[704] | 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)) |
---|
[524] | 85 | c |
---|
[704] | 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)) |
---|
[524] | 89 | c |
---|
[704] | 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)) |
---|
[524] | 93 | c |
---|
[704] | 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)) |
---|
[524] | 97 | c |
---|
[704] | 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)) |
---|
[524] | 101 | c |
---|
[704] | 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)) |
---|
[524] | 105 | c |
---|
[704] | 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)) |
---|
[644] | 109 | c |
---|
[704] | 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)) |
---|
[644] | 113 | c |
---|
[704] | 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)) |
---|
[644] | 117 | c |
---|
| 118 | ENDIF !type_run |
---|
| 119 | c |
---|
[524] | 120 | if (ok_sync) then |
---|
[735] | 121 | c$OMP MASTER |
---|
[524] | 122 | call histsync(nid_nmc) |
---|
[735] | 123 | c$OMP END MASTER |
---|
[524] | 124 | endif |
---|
| 125 | |
---|
| 126 | ENDIF |
---|