[909] | 1 | MODULE phys_state_var_mod |
---|
| 2 | ! Variables sauvegardees pour le startphy.nc |
---|
| 3 | !====================================================================== |
---|
| 4 | ! |
---|
| 5 | ! |
---|
| 6 | !====================================================================== |
---|
| 7 | ! Declaration des variables |
---|
| 8 | USE dimphy |
---|
| 9 | REAL, SAVE :: dtime, co2_ppm_etat0, solaire_etat0 |
---|
| 10 | REAL, ALLOCATABLE, SAVE :: rlat(:), rlon(:), pctsrf(:,:) |
---|
| 11 | REAL, ALLOCATABLE, SAVE :: ftsol(:,:) |
---|
| 12 | character(len=6), SAVE :: ocean |
---|
| 13 | logical, SAVE :: ok_veget |
---|
| 14 | REAL, ALLOCATABLE, SAVE :: falb1(:,:), falb2(:,:) |
---|
| 15 | REAL, ALLOCATABLE, SAVE :: rain_fall(:), snow_fall(:) |
---|
| 16 | REAL, ALLOCATABLE, SAVE :: solsw(:), sollw(:) |
---|
| 17 | REAL, ALLOCATABLE, SAVE :: radsol(:) |
---|
| 18 | !clesphy0 param physiq |
---|
| 19 | ! |
---|
| 20 | ! Parametres de l'Orographie a l'Echelle Sous-Maille (OESM): |
---|
| 21 | ! |
---|
| 22 | REAL, ALLOCATABLE, SAVE :: zmea(:), zstd(:), zsig(:), zgam(:) |
---|
| 23 | REAL, ALLOCATABLE, SAVE :: zthe(:), zpic(:), zval(:) |
---|
| 24 | ! REAL tabcntr0(100) |
---|
| 25 | REAL, ALLOCATABLE, SAVE :: rugoro(:) |
---|
| 26 | REAL, ALLOCATABLE, SAVE :: t_ancien(:,:), q_ancien(:,:) |
---|
| 27 | LOGICAL, SAVE :: ancien_ok |
---|
| 28 | REAL, ALLOCATABLE, SAVE :: clwcon(:,:),rnebcon(:,:) |
---|
| 29 | REAL, ALLOCATABLE, SAVE :: ratqs(:,:) |
---|
| 30 | REAL, ALLOCATABLE, SAVE :: pbl_tke(:,:,:) ! turb kinetic energy |
---|
| 31 | |
---|
| 32 | CONTAINS |
---|
| 33 | |
---|
| 34 | !====================================================================== |
---|
| 35 | SUBROUTINE phys_state_var_init |
---|
| 36 | use dimphy |
---|
| 37 | IMPLICIT NONE |
---|
| 38 | #include "indicesol.h" |
---|
| 39 | |
---|
| 40 | ALLOCATE( rlat(klon)) |
---|
| 41 | ALLOCATE( rlon(klon)) |
---|
| 42 | ALLOCATE( pctsrf(klon,nbsrf)) |
---|
| 43 | ALLOCATE( ftsol(klon,nbsrf)) |
---|
| 44 | ALLOCATE( falb1(klon,nbsrf)) |
---|
| 45 | ALLOCATE( falb2(klon,nbsrf)) |
---|
| 46 | ALLOCATE( rain_fall(klon) ) |
---|
| 47 | ALLOCATE( snow_fall(klon) ) |
---|
| 48 | ALLOCATE(solsw(klon), sollw(klon)) |
---|
| 49 | ALLOCATE( radsol(klon)) |
---|
| 50 | ALLOCATE( zmea(klon), zstd(klon), zsig(klon), zgam(klon) ) |
---|
| 51 | ALLOCATE( zthe(klon), zpic(klon), zval(klon) ) |
---|
| 52 | |
---|
| 53 | ALLOCATE( rugoro(klon)) |
---|
| 54 | ALLOCATE( t_ancien(klon,klev), q_ancien(klon,klev)) |
---|
| 55 | ALLOCATE( clwcon(klon,klev),rnebcon(klon,klev)) |
---|
| 56 | ALLOCATE( ratqs(klon,klev)) |
---|
| 57 | ALLOCATE(pbl_tke(klon,klev+1,nbsrf)) |
---|
| 58 | |
---|
| 59 | END SUBROUTINE phys_state_var_init |
---|
| 60 | |
---|
| 61 | !====================================================================== |
---|
| 62 | SUBROUTINE phys_state_var_end |
---|
| 63 | use dimphy |
---|
| 64 | IMPLICIT NONE |
---|
| 65 | #include "indicesol.h" |
---|
| 66 | ! deallocate(t_seri,q_seri,ql_seri,qs_seri) |
---|
| 67 | |
---|
| 68 | deallocate( rlat, rlon, pctsrf, ftsol, falb1, falb2 ) |
---|
| 69 | deallocate( rain_fall, snow_fall, solsw, sollw, radsol ) |
---|
| 70 | deallocate( zmea, zstd, zsig, zgam ) |
---|
| 71 | deallocate( zthe, zpic, zval ) |
---|
| 72 | deallocate( rugoro, t_ancien, q_ancien, clwcon, rnebcon ) |
---|
| 73 | deallocate( ratqs, pbl_tke ) |
---|
| 74 | |
---|
| 75 | END SUBROUTINE phys_state_var_end |
---|
| 76 | |
---|
| 77 | END MODULE phys_state_var_mod |
---|