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 7200 for branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/OPA_SRC/C1D/domc1d.F90 – NEMO

Ignore:
Timestamp:
2016-11-06T17:31:33+01:00 (7 years ago)
Author:
gm
Message:

#1692 - branch SIMPLIF_2_usrdef: add depth_e3 module + management of ORCA family + domain_cfg filename (in&out) given in namelist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/OPA_SRC/C1D/domc1d.F90

    r6596 r7200  
    8585      !  mesh, only glamt and gphit   ! 
    8686      ! ============================= ! 
    87  
     87      ! 
    8888      SELECT CASE( jphgr_msh )   ! type of horizontal mesh 
    89  
     89      ! 
    9090      CASE ( 0 )                 !  curvilinear coordinate on the sphere read in coordinate.nc file 
    91  
     91         ! 
    9292         CALL iom_open( 'coordinates', inum ) 
    9393         CALL iom_get( inum, jpdom_unknown, 'glamt', glamdta ) ! mig, mjg undefined at this point 
    9494         CALL iom_get( inum, jpdom_unknown, 'gphit', gphidta ) ! so use jpdom_unknown not jpdom_data 
    9595         CALL iom_close ( inum ) 
    96  
     96         ! 
    9797      CASE ( 1 )                 ! geographical mesh on the sphere with regular grid-spacing 
    98  
     98         ! 
    9999         DO jj = 1, jpjdta 
    100100            DO ji = 1, jpidta 
    101101               zti = FLOAT( ji - 1 + nimpp - 1 ) 
    102102               ztj = FLOAT( jj - 1 + njmpp - 1 ) 
    103  
     103               ! 
    104104               glamdta(ji,jj) = ppglam0 + ppe1_deg * zti 
    105105               gphidta(ji,jj) = ppgphi0 + ppe2_deg * ztj 
    106106            END DO 
    107107         END DO 
    108  
     108         ! 
    109109      CASE ( 2:3 )               ! f- or beta-plane with regular grid-spacing 
    110           
     110         ! 
    111111         glam0 = 0.e0 
    112112         gphi0 = - ppe2_m * 1.e-3 
    113  
     113         ! 
    114114         DO jj = 1, jpjdta 
    115115            DO ji = 1, jpidta 
     
    118118            END DO 
    119119         END DO 
    120  
     120         ! 
    121121      CASE ( 4 )                 ! geographical mesh on the sphere, isotropic MERCATOR type 
    122  
     122         ! 
    123123         IF( ppgphi0 == -90 )   CALL ctl_stop( ' Mercator grid cannot start at south pole !!!! ' ) 
    124  
     124         ! 
    125125         zarg = rpi / 4. - rpi / 180. * ppgphi0 / 2. 
    126126         ijeq = ABS( 180. / rpi * LOG( COS( zarg ) / SIN( zarg ) ) / ppe1_deg ) 
    127127         IF( ppgphi0 > 0 )   ijeq = -ijeq 
    128  
     128         ! 
    129129         DO jj = 1, jpjdta 
    130130            DO ji = 1, jpidta 
    131131               zti = FLOAT( ji - 1    + nimpp - 1 ) 
    132132               ztj = FLOAT( jj - ijeq + njmpp - 1 ) 
    133  
     133               ! 
    134134               glamdta(ji,jj) = ppglam0 + ppe1_deg * zti 
    135135               gphidta(ji,jj) = 1. / rad * ASIN ( TANH( ppe1_deg * rad * ztj ) ) 
    136136            END DO 
    137137         END DO 
    138  
     138         ! 
    139139      CASE ( 5 )                 ! beta-plane with regular grid-spacing and rotated domain (GYRE configuration) 
    140     
     140         ! 
    141141         zlam1 = -85 
    142142         zphi1 = 29 
    143          ze1 = 106000. / FLOAT(jp_cfg) 
    144   
     143         ze1 = 106000. / REAL( nn_cfg , wp ) 
     144         ! 
    145145         zsin_alpha = - SQRT( 2. ) / 2. 
    146146         zcos_alpha =   SQRT( 2. ) / 2. 
    147147         ze1deg = ze1 / (ra * rad) 
    148  
     148         ! 
    149149         glam0 = zlam1 + zcos_alpha * ze1deg * FLOAT( jpjdta-2 ) ! Force global 
    150150         gphi0 = zphi1 + zsin_alpha * ze1deg * FLOAT( jpjdta-2 ) 
    151  
     151         ! 
    152152         DO jj = 1, jpjdta 
    153153            DO ji = 1, jpidta 
     
    159159            END DO 
    160160         END DO 
    161  
     161         ! 
    162162      CASE DEFAULT 
    163  
     163         ! 
    164164         WRITE(ctmp1,*) '          bad flag value for jphgr_msh = ', jphgr_msh 
    165165         CALL ctl_stop( ctmp1 ) 
    166  
     166         ! 
    167167      END SELECT 
    168168 
Note: See TracChangeset for help on using the changeset viewer.