[4176] | 1 | module comgeomfi |
---|
| 2 | |
---|
| 3 | real,save,allocatable :: long(:) |
---|
| 4 | real,save,allocatable :: lati(:) |
---|
| 5 | real,save,allocatable :: area(:) |
---|
| 6 | real,save,allocatable :: sinlon(:) |
---|
| 7 | real,save,allocatable :: coslon(:) |
---|
| 8 | real,save,allocatable :: sinlat(:) |
---|
| 9 | real,save,allocatable :: coslat(:) |
---|
| 10 | real,save :: totarea |
---|
| 11 | integer,save :: ngridmax,nlayermx,nsoilmx |
---|
| 12 | !$OMP THREADPRIVATE(long,lati,area,sinlon,coslon,sinlat,coslat,totarea) |
---|
| 13 | !$OMP THREADPRIVATE(ngridmax,nlayermx,nsoilmx) |
---|
| 14 | contains |
---|
| 15 | |
---|
| 16 | subroutine InitComgeomfi |
---|
| 17 | USE mod_phys_lmdz_para |
---|
| 18 | USE dimphy, ONLY : klon,klev |
---|
| 19 | USE geometry_mod, ONLY : latitude_deg,longitude_deg |
---|
| 20 | implicit none |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | print*,'Dans initcomgeomfi ' |
---|
| 24 | ngridmax=klon_omp |
---|
| 25 | nlayermx=klev |
---|
| 26 | nsoilmx=10 |
---|
| 27 | print*,'ngridmax,nlayermx',ngridmax,nlayermx |
---|
| 28 | |
---|
| 29 | allocate(long(klon_omp)) |
---|
| 30 | allocate(lati(klon_omp)) |
---|
| 31 | long=longitude_deg |
---|
| 32 | lati=latitude_deg |
---|
| 33 | allocate(area(klon_omp)) |
---|
| 34 | allocate(sinlon(klon_omp)) |
---|
| 35 | allocate(coslon(klon_omp)) |
---|
| 36 | allocate(sinlat(klon_omp)) |
---|
| 37 | allocate(coslat(klon_omp)) |
---|
| 38 | |
---|
| 39 | end subroutine InitComgeomfi |
---|
| 40 | |
---|
| 41 | end module comgeomfi |
---|