[1279] | 1 | !$Id $ |
---|
| 2 | !*************************************** |
---|
| 3 | ! ECRITURE DU FICHIER : histrac.nc |
---|
| 4 | !*************************************** |
---|
[1570] | 5 | IF (ecrit_tra > 0.) THEN |
---|
[1279] | 6 | |
---|
[1577] | 7 | itau_w = itau_phy + nstep + start_time * day_step / iphysiq |
---|
[1279] | 8 | |
---|
[1570] | 9 | CALL histwrite_phy(nid_tra,.FALSE.,"phis",itau_w,pphis) |
---|
| 10 | CALL histwrite_phy(nid_tra,.FALSE.,"aire",itau_w,airephy) |
---|
| 11 | CALL histwrite_phy(nid_tra,.FALSE.,"zmasse",itau_w,zmasse) |
---|
[959] | 12 | |
---|
[1279] | 13 | !TRACEURS |
---|
| 14 | !---------------- |
---|
| 15 | DO it=1,nbtr |
---|
| 16 | iiq=niadv(it+2) |
---|
[524] | 17 | |
---|
[1279] | 18 | ! CONCENTRATIONS |
---|
[1570] | 19 | CALL histwrite_phy(nid_tra,.FALSE.,tname(iiq),itau_w,tr_seri(:,:,it)) |
---|
[524] | 20 | |
---|
[1279] | 21 | ! TD LESSIVAGE |
---|
| 22 | IF (lessivage .AND. aerosol(it)) THEN |
---|
[1570] | 23 | CALL histwrite_phy(nid_tra,.FALSE.,"fl"//tname(iiq),itau_w,flestottr(:,:,it)) |
---|
[1279] | 24 | ENDIF |
---|
[673] | 25 | |
---|
[1279] | 26 | ! TD THERMIQUES |
---|
| 27 | IF (iflag_thermals.gt.0) THEN |
---|
[1570] | 28 | CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_th_"//tname(iiq),itau_w,d_tr_th(:,:,it)) |
---|
[1279] | 29 | ENDIF |
---|
[1030] | 30 | |
---|
[1279] | 31 | ! TD CONVECTION |
---|
| 32 | IF (iflag_con.GE.2) THEN |
---|
[1570] | 33 | CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_cv_"//tname(iiq),itau_w,d_tr_cv(:,:,it)) |
---|
[1279] | 34 | ENDIF |
---|
[524] | 35 | |
---|
[1279] | 36 | ! TD COUCHE-LIMITE |
---|
[1570] | 37 | CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_cl_"//tname(iiq),itau_w,d_tr_cl(:,:,it)) |
---|
[1279] | 38 | ENDDO |
---|
| 39 | !--------------- |
---|
| 40 | ! |
---|
| 41 | ! |
---|
| 42 | ! VENT (niveau 1) |
---|
[1570] | 43 | CALL histwrite_phy(nid_tra,.FALSE.,"pyu1",itau_w,yu1) |
---|
| 44 | CALL histwrite_phy(nid_tra,.FALSE.,"pyv1",itau_w,yv1) |
---|
[1279] | 45 | ! |
---|
| 46 | ! TEMPERATURE DU SOL |
---|
| 47 | zx_tmp_fi2d(:)=ftsol(:,1) |
---|
[1570] | 48 | CALL histwrite_phy(nid_tra,.FALSE.,"ftsol1",itau_w,zx_tmp_fi2d) |
---|
[1279] | 49 | zx_tmp_fi2d(:)=ftsol(:,2) |
---|
[1570] | 50 | CALL histwrite_phy(nid_tra,.FALSE.,"ftsol2",itau_w,zx_tmp_fi2d) |
---|
[1279] | 51 | zx_tmp_fi2d(:)=ftsol(:,3) |
---|
[1570] | 52 | CALL histwrite_phy(nid_tra,.FALSE.,"ftsol3",itau_w,zx_tmp_fi2d) |
---|
[1279] | 53 | zx_tmp_fi2d(:)=ftsol(:,4) |
---|
[1570] | 54 | CALL histwrite_phy(nid_tra,.FALSE.,"ftsol4",itau_w,zx_tmp_fi2d) |
---|
[1279] | 55 | ! |
---|
| 56 | ! NATURE DU SOL |
---|
| 57 | zx_tmp_fi2d(:)=pctsrf(:,1) |
---|
[1570] | 58 | CALL histwrite_phy(nid_tra,.FALSE.,"psrf1",itau_w,zx_tmp_fi2d) |
---|
[1279] | 59 | zx_tmp_fi2d(:)=pctsrf(:,2) |
---|
[1570] | 60 | CALL histwrite_phy(nid_tra,.FALSE.,"psrf2",itau_w,zx_tmp_fi2d) |
---|
[1279] | 61 | zx_tmp_fi2d(:)=pctsrf(:,3) |
---|
[1570] | 62 | CALL histwrite_phy(nid_tra,.FALSE.,"psrf3",itau_w,zx_tmp_fi2d) |
---|
[1279] | 63 | zx_tmp_fi2d(:)=pctsrf(:,4) |
---|
[1570] | 64 | CALL histwrite_phy(nid_tra,.FALSE.,"psrf4",itau_w,zx_tmp_fi2d) |
---|
[1279] | 65 | |
---|
| 66 | ! DIVERS |
---|
[1570] | 67 | CALL histwrite_phy(nid_tra,.FALSE.,"pplay",itau_w,pplay) |
---|
| 68 | CALL histwrite_phy(nid_tra,.FALSE.,"T",itau_w,t_seri) |
---|
| 69 | CALL histwrite_phy(nid_tra,.FALSE.,"mfu",itau_w,pmfu) |
---|
| 70 | CALL histwrite_phy(nid_tra,.FALSE.,"mfd",itau_w,pmfd) |
---|
| 71 | CALL histwrite_phy(nid_tra,.FALSE.,"en_u",itau_w,pen_u) |
---|
| 72 | CALL histwrite_phy(nid_tra,.FALSE.,"en_d",itau_w,pen_d) |
---|
| 73 | CALL histwrite_phy(nid_tra,.FALSE.,"de_d",itau_w,pde_d) |
---|
| 74 | CALL histwrite_phy(nid_tra,.FALSE.,"de_u",itau_w,pde_u) |
---|
| 75 | CALL histwrite_phy(nid_tra,.FALSE.,"coefh",itau_w,coefh) |
---|
[524] | 76 | |
---|
[1279] | 77 | IF (ok_sync) THEN |
---|
| 78 | !$OMP MASTER |
---|
| 79 | CALL histsync(nid_tra) |
---|
| 80 | !$OMP END MASTER |
---|
| 81 | ENDIF |
---|
[524] | 82 | |
---|
[1570] | 83 | ENDIF !ecrit_tra>0. |
---|
[524] | 84 | |
---|