source: LMDZ4/trunk/libf/phylmd/write_histmthNMC.h @ 1356

Last change on this file since 1356 was 1352, checked in by musat, 15 years ago

Add 3 output files for standard pressure levels AR5 exercice and flags
to manage their computation and output frequencies
histhfNMC.nc with 3 standard pressure levels
histdayNMC.nc with 8 (or may have 17) standard pressure levels
histmthNMC.nc with 17 standard pressure levels
Add 3 flags in the physiq.def file: freq_calNMC(3), freq_outNMC(3) and lev_histdayNMC
freq_calNMC(3) : computation frequency of variables on standard pressure levels

and by default has fallowing values (in fact physics' time step dtime)

freq_calNMC(1)=900.
freq_calNMC(2)=900.
freq_calNMC(3)=900.
freq_outNMC(3) : output frequency of variables on standard pressure levels

with following default values

freq_out(1) = 2592000. (30 days)
freq_out(2) = 86400. (1 day)
freq_out(3) = 21600. (6 hours)
lev_histdayNMC is 8 by default but may be switched to 17 (if we need more levels for a particular run)
IM

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
RevLine 
[524]1!
2! $Header$
3!
4c
[644]5       ndex3d = 0
6       itau_w = itau_phy + itap
7ccc
8c  Champs interpolles sur des niveaux de pression du NMC
[524]9c
[1352]10c     PARAMETER(nout=3) 
11c nout=1 : in=pdtphys,    out=mth
12c nout=2 : in=pdtphys,    out=day
13c nout=3 : in=pdtphys,    out=hf
[644]14ccc
[1352]15       CALL histwrite_phy(nid_mthnmc,"tnondef",itau_w,tnondef(:,:,1))
[524]16c
[1352]17c      CALL histwrite_phy(nid_mthnmc,"ta",itau_w,twriteSTD(:,:,1))
18       CALL histwrite_phy(nid_mthnmc,"ta",itau_w,tsumSTD(:,:,1))
[524]19c
[1352]20       CALL histwrite_phy(nid_mthnmc,"zg",itau_w,phiwriteSTD(:,:,1))
[524]21c
[1352]22       CALL histwrite_phy(nid_mthnmc,"hus",itau_w,qwriteSTD(:,:,1))
[524]23c
[1352]24       CALL histwrite_phy(nid_mthnmc,"hur",itau_w,rhwriteSTD(:,:,1))
[644]25c
[1352]26       CALL histwrite_phy(nid_mthnmc,"ua",itau_w,uwriteSTD(:,:,1))
[644]27c
[1352]28       CALL histwrite_phy(nid_mthnmc,"va",itau_w,vwriteSTD(:,:,1))
[644]29c
[1352]30       CALL histwrite_phy(nid_mthnmc,"wap",itau_w,wwriteSTD(:,:,1))
[644]31c
32       DO k=1, nlevSTD
33        DO i=1, klon
[1352]34         IF(tnondef(i,k,1).NE.missing_val) THEN
35          zx_tmp_fiNC(i,k) = (100.*tnondef(i,k,1))/ecrit_hf2mth
[644]36         ELSE
[1352]37          zx_tmp_fiNC(i,k) = missing_val
[524]38         ENDIF
[644]39        ENDDO
40       ENDDO !k=1, nlevSTD
[524]41c
[1352]42       CALL histwrite_phy(nid_mthnmc,"psbg",itau_w,zx_tmp_fiNC)
[524]43c
[1352]44       CALL histwrite_phy(nid_mthnmc,"uv",itau_w,uvsumSTD(:,:,1))
[524]45c
[1352]46       CALL histwrite_phy(nid_mthnmc,"vq",itau_w,vqsumSTD(:,:,1))
[524]47c
[1352]48       CALL histwrite_phy(nid_mthnmc,"vT",itau_w,vTsumSTD(:,:,1))
[524]49c
[1352]50       CALL histwrite_phy(nid_mthnmc,"wq",itau_w,wqsumSTD(:,:,1))
[524]51c
[1352]52       CALL histwrite_phy(nid_mthnmc,"vphi",itau_w,vphisumSTD(:,:,1))
[524]53c
[1352]54       CALL histwrite_phy(nid_mthnmc,"wT",itau_w,wTsumSTD(:,:,1))
[524]55c
[1352]56       CALL histwrite_phy(nid_mthnmc,"uxu",itau_w,u2sumSTD(:,:,1))
[644]57c
[1352]58       CALL histwrite_phy(nid_mthnmc,"vxv",itau_w,v2sumSTD(:,:,1))
[644]59c
[1352]60       CALL histwrite_phy(nid_mthnmc,"TxT",itau_w,T2sumSTD(:,:,1))
[644]61c
[524]62      if (ok_sync) then
[766]63c$OMP MASTER
[1352]64        call histsync(nid_mthnmc)
[766]65c$OMP END MASTER
[524]66      endif
Note: See TracBrowser for help on using the repository browser.