Changeset 2786 for LMDZ5/trunk/libf/phy_common
- Timestamp:
- Jan 30, 2017, 11:24:47 AM (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phy_common/vertical_layers_mod.F90
r2784 r2786 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)20 !$OMP THREADPRIVATE(preff,scaleheight,ap,bp,aps,bps,presnivs,pseudoalt) 17 21 18 22 … … 20 24 21 25 SUBROUTINE init_vertical_layers(nlayer,preff_,scaleheight_,ap_,bp_,& 22 presnivs_, pseudoalt_)26 aps_,bps_,presnivs_, pseudoalt_) 23 27 IMPLICIT NONE 24 28 INTEGER,INTENT(IN) :: nlayer ! number of atmospheric layers … … 27 31 REAL,INTENT(IN) :: ap_(nlayer+1) ! hybrid coordinate at interfaces 28 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 29 35 REAL,INTENT(IN) :: presnivs_(nlayer) ! Appproximative pressure of atm. layers (Pa) 30 36 REAL,INTENT(IN) :: pseudoalt_(nlayer) ! pseudo-altitude of atm. layers (km) … … 32 38 ALLOCATE(ap(nlayer+1)) 33 39 ALLOCATE(bp(nlayer+1)) 40 ALLOCATE(aps(nlayer)) 41 ALLOCATE(bps(nlayer)) 34 42 ALLOCATE(presnivs(nlayer)) 35 43 ALLOCATE(pseudoalt(nlayer)) … … 39 47 ap(:) = ap_(:) 40 48 bp(:) = bp_(:) 49 aps(:) = aps_(:) 50 bps(:) = bps_(:) 41 51 presnivs(:) = presnivs_(:) 42 52 pseudoalt(:) = pseudoalt_(:)
Note: See TracChangeset
for help on using the changeset viewer.