Changeset 704 for LMDZ4/branches/V3_test/libf/phylmd/atm2geo.F
- Timestamp:
- Aug 17, 2006, 5:41:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/V3_test/libf/phylmd/atm2geo.F
r703 r704 4 4 C 5 5 SUBROUTINE atm2geo ( im, jm, pte, ptn, plon, plat, pxx, pyy, pzz ) 6 USE dimphy 7 IMPLICIT NONE 8 include 'dimensions90.h' 6 9 cc 7 10 cc Change wind local atmospheric coordinates to 8 11 cc geocentric 9 12 cc 10 c $$$INCLUDE 'param.h'13 cxxx INCLUDE 'param.h' 11 14 c 12 15 INTEGER, INTENT (in) :: im, jm … … 22 25 c 23 26 LOGICAL, SAVE :: linit = .FALSE. 27 c$OMP THREADPRIVATE(linit) 24 28 c 25 c $$$IF ( .NOT. linit ) THEN29 cxxx IF ( .NOT. linit ) THEN 26 30 zsinlon = SIN (rad * plon) 27 31 zcoslon = COS (rad * plon) … … 29 33 zcoslat = COS (rad * plat) 30 34 linit = .TRUE. 31 c $$$ENDIF35 cxxx ENDIF 32 36 c 33 37 pxx = - zsinlon * pte - zsinlat * zcoslon * ptn 34 38 pyy = zcoslon * pte - zsinlat * zsinlon * ptn 35 39 pzz = zcoslat * ptn 40 36 41 c 37 42 c Value at North Pole 38 pxx ( :, 1) = - ptn ( 1, 1) 39 pyy ( :, 1) = - pte ( 1, 1) 40 pzz ( :, 1) = 0.0 43 IF (jjphy_begin==1) THEN 44 pxx ( :, 1) = - ptn ( 1, 1) 45 pyy ( :, 1) = - pte ( 1, 1) 46 pzz ( :, 1) = 0.0 47 ENDIF 41 48 c Value at South Pole 42 pxx ( :, jm) = + ptn ( 1, jm) 43 pyy ( :, jm) = + pte ( 1, jm) 44 pzz ( :, jm) = 0.0 45 c 49 50 IF (jjphy_end==jjm+1) THEN 51 pxx ( :, jm) = + ptn ( 1, jm) 52 pyy ( :, jm) = + pte ( 1, jm) 53 pzz ( :, jm) = 0.0 54 ENDIF 55 46 56 RETURN 47 57 END SUBROUTINE atm2geo
Note: See TracChangeset
for help on using the changeset viewer.