Ignore:
Timestamp:
Aug 17, 2006, 5:41:51 PM (18 years ago)
Author:
Laurent Fairhead
Message:

Inclusion des modifs de Y. Meurdesoif pour la version V3
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/V3_test/libf/phylmd/atm2geo.F

    r703 r704  
    44C
    55      SUBROUTINE atm2geo ( im, jm, pte, ptn, plon, plat, pxx, pyy, pzz )
     6      USE dimphy
     7      IMPLICIT NONE
     8      include 'dimensions90.h'
    69cc
    710cc Change wind local atmospheric coordinates to
    811cc geocentric
    912cc
    10 c$$$      INCLUDE 'param.h'
     13cxxx      INCLUDE 'param.h'
    1114c
    1215      INTEGER, INTENT (in)              :: im, jm
     
    2225c
    2326      LOGICAL, SAVE :: linit = .FALSE.
     27c$OMP THREADPRIVATE(linit)
    2428c
    25 c$$$      IF ( .NOT. linit ) THEN
     29cxxx      IF ( .NOT. linit ) THEN
    2630          zsinlon = SIN (rad * plon)
    2731          zcoslon = COS (rad * plon)
     
    2933          zcoslat = COS (rad * plat)
    3034          linit = .TRUE.
    31 c$$$      ENDIF
     35cxxx      ENDIF
    3236c
    3337      pxx = - zsinlon * pte - zsinlat * zcoslon * ptn
    3438      pyy =   zcoslon * pte - zsinlat * zsinlon * ptn
    3539      pzz =   zcoslat * ptn
     40
    3641c
    3742c 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
    4148c 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 
    4656      RETURN
    4757      END SUBROUTINE atm2geo
Note: See TracChangeset for help on using the changeset viewer.