New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2948 for branches/2011/dev_r2802_MERCATOR10_diadct/NEMOGCM/TOOLS/SECTIONS_DIADCT/src/compute_sections.f90 – NEMO

Ignore:
Timestamp:
2011-10-17T18:21:39+02:00 (13 years ago)
Author:
cbricaud
Message:

corrections after review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2802_MERCATOR10_diadct/NEMOGCM/TOOLS/SECTIONS_DIADCT/src/compute_sections.f90

    r2947 r2948  
    5151        nmesh                    ! number of cells in processor domain 
    5252     INTEGER :: itest , jtest    ! dummy integer 
    53      REAL(wp),SAVE :: zdistmesh  ! Taller cell of the mesh in ocean 
     53     REAL(wp),SAVE :: zdistmesh  ! Taller cell of the mesh in ocean in degrees 
    5454     REAL(wp)      :: & 
    5555        zdistEst   , zdistNorth , zdistWest , zdistSouth ,  &! temporary scalars 
     
    106106 
    107107     IF( jsec == 1 )THEN 
    108         !Find the taller cell of the mesh in ocean (used in compsec) 
     108        !Find the taller cell of the mesh in ocean (used in compsec),  
     109        !unit= degrees  
    109110        zdistmesh=0. 
    110111        DO jj=2,jpj 
     
    161162              !intersection section/[AB]=? 
    162163              coordTemp     = intersec(sec,coord_a,coord_b)     !compute intersection  
    163               coordTemp%lon = coordTemp%lon !* zmask(ji,jj)-9999.*(1-zmask(ji,jj)) 
    164               coordTemp%lat = coordTemp%lat !* zmask(ji,jj)-9999.*(1-zmask(ji,jj)) 
    165164  
    166165              IF( coordTemp%lon .NE. -9999 )THEN 
     
    474473              !------------------------------------------------------------------ 
    475474              ! BE CAREFUL! When the domain crosses the date line (ll_date_domain): 
     475              ! 
    476476              ! When we will compute distances between W/E/S/N points and endingPoint, 
    477477              ! we have to check if theses 4 lines crosses the date line 
    478478              ! (test: ABS(coordTemp%lon - coordLast%lon).GT. 180) 
    479               ! If it's true,we have to add 360° to coordLast%long to compute the  
    480               ! correct distance through the date line and not through the complementary 
    481               ! in the mesh. 
     479              ! 
     480              ! If on of this 4 lines  crosses the date line, we have to add 360° its  
     481              ! extremities longitudes to compute the correct distance through the date line 
     482              ! and not around the Earth 
    482483        
    483484              ! c.1 compute distWest: distance between west point and endingPoint 
Note: See TracChangeset for help on using the changeset viewer.