- Timestamp:
- Feb 10, 2020, 9:54:26 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/IPSLCM5A2.1/libf/phylmd/vertical_layers_mod.F90
r2907 r3629 9 9 REAL,SAVE,ALLOCATABLE :: bp(:) ! hybrid (sigma contribution) coordinate 10 10 ! at layer interfaces (Pa) 11 REAL,SAVE,ALLOCATABLE :: aps(:) ! hybrid (pressure contribution) coordinate 12 ! at mid-layer (Pa) 13 REAL,SAVE,ALLOCATABLE :: bps(:) ! hybrid (sigma contribution) coordinate 14 ! at mid-layer 11 15 REAL,SAVE,ALLOCATABLE :: presnivs(:) ! reference pressure at mid-layer (Pa), 12 16 ! based on preff, ap and bp … … 14 18 ! based on preff and scaleheight 15 19 16 !$OMP THREADPRIVATE(preff,scaleheight,ap,bp,presnivs,pseudoalt) 17 REAL, SAVE, ALLOCATABLE :: Ahyb(:), Bhyb(:) 18 !$OMP THREADPRIVATE(Ahyb, Bhyb) 20 !$OMP THREADPRIVATE(preff,scaleheight,ap,bp,aps,bps,presnivs,pseudoalt) 21 19 22 20 23 CONTAINS 21 24 22 25 SUBROUTINE init_vertical_layers(nlayer,preff_,scaleheight_,ap_,bp_,& 23 presnivs_, pseudoalt_)26 aps_,bps_,presnivs_, pseudoalt_) 24 27 IMPLICIT NONE 25 28 INTEGER,INTENT(IN) :: nlayer ! number of atmospheric layers … … 28 31 REAL,INTENT(IN) :: ap_(nlayer+1) ! hybrid coordinate at interfaces 29 32 REAL,INTENT(IN) :: bp_(nlayer+1) ! hybrid coordinate at interfaces 33 REAL,INTENT(IN) :: aps_(nlayer) ! hybrid coordinate at mid-layer 34 REAL,INTENT(IN) :: bps_(nlayer) ! hybrid coordinate at mid-layer 30 35 REAL,INTENT(IN) :: presnivs_(nlayer) ! Appproximative pressure of atm. layers (Pa) 31 36 REAL,INTENT(IN) :: pseudoalt_(nlayer) ! pseudo-altitude of atm. layers (km) … … 33 38 ALLOCATE(ap(nlayer+1)) 34 39 ALLOCATE(bp(nlayer+1)) 40 ALLOCATE(aps(nlayer)) 41 ALLOCATE(bps(nlayer)) 35 42 ALLOCATE(presnivs(nlayer)) 36 43 ALLOCATE(pseudoalt(nlayer)) 37 ALLOCATE(Ahyb(nlayer)) 38 ALLOCATE(Bhyb(nlayer)) 39 40 44 41 45 preff = preff_ 42 46 scaleheight=scaleheight_ 43 47 ap(:) = ap_(:) 44 48 bp(:) = bp_(:) 49 aps(:) = aps_(:) 50 bps(:) = bps_(:) 45 51 presnivs(:) = presnivs_(:) 46 52 pseudoalt(:) = pseudoalt_(:)
Note: See TracChangeset
for help on using the changeset viewer.