Changeset 1065 for LMDZ4/trunk/libf/phylmd
- Timestamp:
- Dec 17, 2008, 1:33:00 PM (16 years ago)
- Location:
- LMDZ4/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/phys_output_mod.F90
r1062 r1065 12 12 IMPLICIT NONE 13 13 14 private histdef2d, histdef3d 15 14 16 integer, parameter :: nfiles = 5 15 17 logical, dimension(nfiles), save :: clef_files … … 17 19 integer, dimension(nfiles), save :: nid_files 18 20 19 integer, dimension(nfiles), save:: nhorim, nvertm20 real, dimension(nfiles), save :: zstophym, zoutm21 CHARACTER(len=20), dimension(nfiles), save :: type_ecri21 integer, dimension(nfiles), private, save :: nhorim, nvertm 22 real, dimension(nfiles), private, save :: zstophym, zoutm 23 CHARACTER(len=20), dimension(nfiles), private, save :: type_ecri 22 24 23 25 ! integer, save :: nid_hf3d 24 25 !!!!!!!!!! stockage dans une region limitee pour chaque fichier !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!26 ! entre [lonmin_reg,lonmax_reg] et [latmin_reg,latmax_reg]27 28 logical, dimension(nfiles), save :: ok_reglim = (/ .false., .false., .false., .false., .true. /)29 real, dimension(nfiles), save :: lonmin_reg = (/ 0., -45., 0., 0., -162. /)30 real, dimension(nfiles), save :: lonmax_reg = (/ 90., 45., 90., 90., -144. /)31 real, dimension(nfiles), save :: latmin_reg = (/ 0., -45., 0., 0., 7. /)32 real, dimension(nfiles), save :: latmax_reg = (/ 90., 90., 90., 90., 21. /)33 26 34 27 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 36 29 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!/ histmth, histday, histhf, histins /)!!!!!!!!!!!! 37 30 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 31 32 integer, private:: levmin(nfiles) = 1 33 integer, private:: levmax(nfiles) 38 34 39 35 !!! 1D … … 318 314 ctetaSTD,dtime, presnivs, ok_veget, & 319 315 ocean, iflag_pbl,ok_mensuel,ok_journe, & 320 ok_hf,ok_instan,ok_LES , nid_fil)316 ok_hf,ok_instan,ok_LES) 321 317 322 318 USE iophy … … 349 345 character(len=6) :: ocean 350 346 CHARACTER(len=3) :: ctetaSTD(nbteta) 351 integer, dimension(nfiles) :: nid_fil352 347 real, dimension(nfiles) :: ecrit_files 353 348 CHARACTER(len=20), dimension(nfiles) :: name_files … … 356 351 integer :: imin_ins, imax_ins 357 352 integer :: jmin_ins, jmax_ins 358 integer, dimension(nfiles) :: lvlmax_reg 359 360 lvlmax_reg = (/ klev, klev, klev, klev, 17 /) 353 354 !!!!!!!!!! stockage dans une region limitee pour chaque fichier !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 355 ! entre [lonmin_reg,lonmax_reg] et [latmin_reg,latmax_reg] 356 357 logical, dimension(nfiles), save :: ok_reglim = (/ .false., .false., .false., .false., .true. /) 358 real, dimension(nfiles), save :: lonmin_reg = (/ 0., -45., 0., 0., -162. /) 359 real, dimension(nfiles), save :: lonmax_reg = (/ 90., 45., 90., 90., -144. /) 360 real, dimension(nfiles), save :: latmin_reg = (/ 0., -45., 0., 0., 7. /) 361 real, dimension(nfiles), save :: latmax_reg = (/ 90., 90., 90., 90., 21. /) 362 363 levmax = (/ klev, klev, klev, klev, 17 /) 361 364 362 365 name_files(1) = 'histmth' … … 409 412 if (ok_reglim(iff)) then 410 413 411 klev = lvlmax_reg(iff)412 413 414 imin_ins=1 414 415 imax_ins=iim … … 438 439 imin_ins,imax_ins-imin_ins+1, & 439 440 jmin_ins,jmax_ins-jmin_ins+1, & 440 itau_phy,zjulian,dtime,nhorim(iff),nid_fil (iff))441 itau_phy,zjulian,dtime,nhorim(iff),nid_files(iff)) 441 442 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 442 443 else 443 CALL histbeg_phy(name_files(iff),itau_phy,zjulian,dtime,nhorim(iff),nid_fil (iff))444 CALL histbeg_phy(name_files(iff),itau_phy,zjulian,dtime,nhorim(iff),nid_files(iff)) 444 445 endif 445 446 446 nid_files(iff)=nid_fil(iff)447 448 CALL histvert(nid_files(iff),"presnivs","Vertical levels","mb",klev, presnivs/100., nvertm(iff))447 CALL histvert(nid_files(iff), "presnivs", "Vertical levels", "mb", & 448 levmax(iff) - levmin(iff) + 1, & 449 presnivs(levmin(iff):levmax(iff))/100., nvertm(iff)) 449 450 450 451 !!!!!!!!!!!!! Traitement des champs 3D pour histhf !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 785 786 786 787 ENDDO ! 787 klev = lvlmax_reg(1)788 789 788 end subroutine phys_output_open 790 789 … … 837 836 838 837 if ( flag_var(iff)<=lev_files(iff) ) then 839 call histdef (nid_files(iff),nomvar,titrevar,unitvar, & 840 iim,jj_nb,nhorim(iff), klev,1,klev,nvertm(iff), 32, & 841 type_ecri(iff), zstophym(iff),zoutm(iff)) 838 call histdef (nid_files(iff), nomvar, titrevar, unitvar, & 839 iim, jj_nb, nhorim(iff), klev, levmin(iff), & 840 levmax(iff)-levmin(iff)+1, nvertm(iff), 32, type_ecri(iff), & 841 zstophym(iff), zoutm(iff)) 842 842 endif 843 843 end subroutine histdef3d -
LMDZ4/trunk/libf/phylmd/physiq.F
r1055 r1065 1 !2 ! $Header$3 !4 1 c 5 2 c#define IO_DEBUG … … 1535 1532 & ctetaSTD,dtime,presnivs,ok_veget, 1536 1533 & type_ocean,iflag_pbl,ok_mensuel,ok_journe, 1537 & ok_hf,ok_instan,ok_LES ,nid_files)1534 & ok_hf,ok_instan,ok_LES) 1538 1535 c$OMP END MASTER 1539 1536 c$OMP BARRIER
Note: See TracChangeset
for help on using the changeset viewer.