[1335] | 1 | ! |
---|
| 2 | ! phys_local_var_mod.F90 1327 2010-03-17 15:33:56Z idelkadi $ |
---|
| 3 | |
---|
| 4 | MODULE phys_output_var_mod |
---|
| 5 | |
---|
| 6 | use dimphy |
---|
| 7 | ! Variables outputs pour les ecritures des sorties |
---|
| 8 | !====================================================================== |
---|
| 9 | ! |
---|
| 10 | ! |
---|
| 11 | !====================================================================== |
---|
| 12 | ! Declaration des variables |
---|
| 13 | |
---|
| 14 | REAL, SAVE, ALLOCATABLE :: snow_o(:), zfra_o(:) |
---|
| 15 | !$OMP THREADPRIVATE(snow_o, zfra_o) |
---|
[1791] | 16 | INTEGER, SAVE, ALLOCATABLE :: itau_con(:) ! Nombre de pas ou rflag <= 1 |
---|
[1758] | 17 | !$OMP THREADPRIVATE(itau_con) |
---|
[1753] | 18 | REAL, ALLOCATABLE :: bils_ec(:) ! Contribution of energy conservation |
---|
[1761] | 19 | REAL, ALLOCATABLE :: bils_tke(:) ! Contribution of energy conservation |
---|
| 20 | REAL, ALLOCATABLE :: bils_diss(:) ! Contribution of energy conservation |
---|
[1753] | 21 | REAL, ALLOCATABLE :: bils_kinetic(:) ! bilan de chaleur au sol, kinetic |
---|
| 22 | REAL, ALLOCATABLE :: bils_enthalp(:) ! bilan de chaleur au sol |
---|
| 23 | REAL, ALLOCATABLE :: bils_latent(:) ! bilan de chaleur au sol |
---|
[1761] | 24 | !$OMP THREADPRIVATE(bils_ec,bils_tke,bils_diss,bils_kinetic,bils_enthalp,bils_latent) |
---|
[1753] | 25 | |
---|
[1791] | 26 | ! ug Plein de variables venues de phys_output_mod |
---|
| 27 | INTEGER, PARAMETER :: nfiles = 6 |
---|
| 28 | LOGICAL, DIMENSION(nfiles), SAVE :: clef_files |
---|
| 29 | LOGICAL, DIMENSION(nfiles), SAVE :: clef_stations |
---|
| 30 | INTEGER, DIMENSION(nfiles), SAVE :: lev_files |
---|
| 31 | INTEGER, DIMENSION(nfiles), SAVE :: nid_files |
---|
| 32 | INTEGER, DIMENSION(nfiles), SAVE :: nnid_files |
---|
| 33 | !$OMP THREADPRIVATE(clef_files, clef_stations, lev_files,nid_files,nnid_files) |
---|
| 34 | INTEGER, DIMENSION(nfiles), SAVE :: nnhorim |
---|
[1761] | 35 | |
---|
[1791] | 36 | INTEGER, DIMENSION(nfiles), SAVE :: nhorim, nvertm |
---|
| 37 | INTEGER, DIMENSION(nfiles), SAVE :: nvertap, nvertbp, nvertAlt |
---|
| 38 | REAL, DIMENSION(nfiles), SAVE :: zoutm |
---|
| 39 | CHARACTER(LEN=20), DIMENSION(nfiles), SAVE :: type_ecri |
---|
| 40 | !$OMP THREADPRIVATE(nnhorim, nhorim, nvertm, zoutm,type_ecri) |
---|
| 41 | CHARACTER(LEN=20), DIMENSION(nfiles), SAVE :: type_ecri_files, phys_out_filetypes |
---|
| 42 | !$OMP THREADPRIVATE(type_ecri_files, phys_out_filetypes) |
---|
| 43 | |
---|
| 44 | ! swaero_diag : flag indicates if it is necessary to do calculation for some aerosol diagnostics |
---|
| 45 | LOGICAL, SAVE :: swaero_diag=.FALSE. |
---|
| 46 | !$OMP THREADPRIVATE(swaero_diag) |
---|
| 47 | |
---|
| 48 | INTEGER, SAVE:: levmin(nfiles) = 1 |
---|
| 49 | INTEGER, SAVE:: levmax(nfiles) |
---|
| 50 | !$OMP THREADPRIVATE(levmin, levmax) |
---|
| 51 | |
---|
[1807] | 52 | REAL, SAVE :: zdtime_moy |
---|
| 53 | !$OMP THREADPRIVATE(zdtime_moy) |
---|
[1797] | 54 | |
---|
[1807] | 55 | LOGICAL, SAVE :: vars_defined = .FALSE. ! ug PAS THREADPRIVATE ET C'EST NORMAL |
---|
| 56 | |
---|
[1791] | 57 | TYPE ctrl_out |
---|
| 58 | INTEGER,DIMENSION(nfiles) :: flag |
---|
| 59 | CHARACTER(len=20) :: name |
---|
| 60 | CHARACTER(len=150) :: description |
---|
| 61 | CHARACTER(len=20) :: unit |
---|
| 62 | CHARACTER(len=20),DIMENSION(nfiles) :: type_ecrit |
---|
| 63 | END TYPE ctrl_out |
---|
[1335] | 64 | CONTAINS |
---|
| 65 | |
---|
| 66 | !====================================================================== |
---|
| 67 | SUBROUTINE phys_output_var_init |
---|
| 68 | use dimphy |
---|
| 69 | |
---|
| 70 | IMPLICIT NONE |
---|
| 71 | |
---|
| 72 | allocate(snow_o(klon), zfra_o(klon)) |
---|
| 73 | allocate(itau_con(klon)) |
---|
[1761] | 74 | allocate (bils_ec(klon),bils_tke(klon),bils_diss(klon),bils_kinetic(klon),bils_enthalp(klon),bils_latent(klon)) |
---|
[1335] | 75 | |
---|
| 76 | END SUBROUTINE phys_output_var_init |
---|
| 77 | |
---|
| 78 | !====================================================================== |
---|
| 79 | SUBROUTINE phys_output_var_end |
---|
| 80 | use dimphy |
---|
| 81 | IMPLICIT NONE |
---|
| 82 | |
---|
| 83 | deallocate(snow_o,zfra_o,itau_con) |
---|
[1761] | 84 | deallocate (bils_ec,bils_tke,bils_diss,bils_kinetic,bils_enthalp,bils_latent) |
---|
[1335] | 85 | |
---|
| 86 | END SUBROUTINE phys_output_var_end |
---|
| 87 | |
---|
| 88 | END MODULE phys_output_var_mod |
---|