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 5758 for branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/DOM/domhgr.F90 – NEMO

Ignore:
Timestamp:
2015-09-24T08:31:40+02:00 (9 years ago)
Author:
gm
Message:

#1593: LDF-ADV, step II.1: phasing the improvements/simplifications of diffusive trend (see wiki)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/DOM/domhgr.F90

    r5755 r5758  
    1414   !!                            use of parameters in par_CONFIG-Rxx.h90, not in namelist 
    1515   !!             -   ! 2004-05  (A. Koch-Larrouy) Add Gyre configuration  
    16    !!            3.7  ! 2015-09  (G. Madec) add cell surface and their inverse 
     16   !!            3.7  ! 2015-09  (G. Madec, S. Flavoni) add cell surface and their inverse 
    1717   !!                                       add optional read of e1e2u & e1e2v 
    1818   !!---------------------------------------------------------------------- 
     
    126126      ENDIF 
    127127      ! 
    128       ie1e2u_v = 0               !  set to unread e1e2u and e1e2v 
    129128      ! 
    130129      SELECT CASE( jphgr_msh )   !  type of horizontal mesh   
     
    135134         IF(lwp) WRITE(numout,*) '          curvilinear coordinate on the sphere read in "coordinate" file' 
    136135         ! 
    137          CALL hgr_read( ie1e2u_v ) 
     136         ie1e2u_v = 0                  ! set to unread e1e2u and e1e2v 
     137         ! 
     138         CALL hgr_read( ie1e2u_v )     ! read the coordinate.nc file 
    138139         ! 
    139140         IF( ie1e2u_v == 0 ) THEN      ! e1e2u and e1e2v have not been read: compute them 
     
    141142            e1e2u (:,:) = e1u(:,:) * e2u(:,:)    
    142143            e1e2v (:,:) = e1v(:,:) * e2v(:,:)  
    143  
    144          ! 
    145          !                                                ! ===================== 
    146             IF( ie1e2u_v == 0 )   CALL dom_wri_coordinate 
    147             ! 
    148             ! 
    149144         ENDIF 
    150  
    151  
    152          ! 
    153          ! N.B. :  General case, lat and long function of both i and j indices: 
    154          !     e1t(ji,jj) = ra * rad * SQRT(  ( cos( rad*gphit(ji,jj) ) * fsdila( zti, ztj ) )**2   & 
    155          !                                  + (                           fsdiph( zti, ztj ) )**2  ) 
    156          !     e1u(ji,jj) = ra * rad * SQRT(  ( cos( rad*gphiu(ji,jj) ) * fsdila( zui, zuj ) )**2   & 
    157          !                                  + (                           fsdiph( zui, zuj ) )**2  ) 
    158          !     e1v(ji,jj) = ra * rad * SQRT(  ( cos( rad*gphiv(ji,jj) ) * fsdila( zvi, zvj ) )**2   & 
    159          !                                  + (                           fsdiph( zvi, zvj ) )**2  ) 
    160          !     e1f(ji,jj) = ra * rad * SQRT(  ( cos( rad*gphif(ji,jj) ) * fsdila( zfi, zfj ) )**2   & 
    161          !                                  + (                           fsdiph( zfi, zfj ) )**2  ) 
    162          ! 
    163          !     e2t(ji,jj) = ra * rad * SQRT(  ( cos( rad*gphit(ji,jj) ) * fsdjla( zti, ztj ) )**2   & 
    164          !                                  + (                           fsdjph( zti, ztj ) )**2  ) 
    165          !     e2u(ji,jj) = ra * rad * SQRT(  ( cos( rad*gphiu(ji,jj) ) * fsdjla( zui, zuj ) )**2   & 
    166          !                                  + (                           fsdjph( zui, zuj ) )**2  ) 
    167          !     e2v(ji,jj) = ra * rad * SQRT(  ( cos( rad*gphiv(ji,jj) ) * fsdjla( zvi, zvj ) )**2   & 
    168          !                                  + (                           fsdjph( zvi, zvj ) )**2  ) 
    169          !     e2f(ji,jj) = ra * rad * SQRT(  ( cos( rad*gphif(ji,jj) ) * fsdjla( zfi, zfj ) )**2   & 
    170          !                                  + (                           fsdjph( zfi, zfj ) )**2  ) 
    171          ! 
    172145         ! 
    173146      CASE ( 1 )                     !==  geographical mesh on the sphere with regular (in degree) grid-spacing  ==! 
     
    214187         ! Position coordinates (in kilometers) 
    215188         !                          ========== 
    216          glam0 = 0.e0 
     189         glam0 = 0._wp 
    217190         gphi0 = - ppe2_m * 1.e-3 
    218191         ! 
     
    309282         ze1 = 106000. / REAL( jp_cfg , wp )             
    310283         ! benchmark: forced the resolution to be about 100 km 
    311          IF( nbench /= 0 )   ze1 = 106000.e0      
     284         IF( nbench /= 0 )   ze1 = 106000._wp      
    312285         zsin_alpha = - SQRT( 2._wp ) * 0.5_wp 
    313286         zcos_alpha =   SQRT( 2._wp ) * 0.5_wp 
     
    444417         ! 
    445418         zbeta = 2. * omega * COS( rad * ppgphi0 ) / ra                     ! beta at latitude ppgphi0 
    446          zphi0 = 15.e0                                                      ! latitude of the first row F-points 
     419         zphi0 = 15._wp                                                     ! latitude of the first row F-points 
    447420         zf0   = 2. * omega * SIN( rad * zphi0 )                            ! compute f0 1st point south 
    448421         ! 
Note: See TracChangeset for help on using the changeset viewer.