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 9679 for branches/UKMO/dev_merge_2017_GC_couple_pkg/NEMOGCM/NEMO/OPA_SRC/SBC/geo2ocean.F90 – NEMO

Ignore:
Timestamp:
2018-05-29T16:37:04+02:00 (6 years ago)
Author:
dancopsey
Message:

Merge in r8183 version of this branch (dev_r8183_GC_couple_pkg [8730:8734])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_merge_2017_GC_couple_pkg/NEMOGCM/NEMO/OPA_SRC/SBC/geo2ocean.F90

    r9677 r9679  
    3434   PRIVATE 
    3535 
     36   PUBLIC   repcmo    ! called in sbccpl 
    3637   PUBLIC   rot_rep   ! called in sbccpl, fldread, and cyclone 
    3738   PUBLIC   geo2oce   ! called in sbccpl 
     
    5859   !!---------------------------------------------------------------------- 
    5960CONTAINS 
     61 
     62   SUBROUTINE repcmo ( pxu1, pyu1, pxv1, pyv1,   & 
     63                       px2 , py2 , kchoix  ) 
     64      !!---------------------------------------------------------------------- 
     65      !!                  ***  ROUTINE repcmo  *** 
     66      !! 
     67      !! ** Purpose :   Change vector componantes from a geographic grid to a 
     68      !!      stretched coordinates grid. 
     69      !! 
     70      !! ** Method  :   Initialization of arrays at the first call. 
     71      !! 
     72      !! ** Action  : - px2 : first  componante (defined at u point) 
     73      !!              - py2 : second componante (defined at v point) 
     74      !!---------------------------------------------------------------------- 
     75      REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj) ::   pxu1, pyu1   ! geographic vector componantes at u-point 
     76      REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj) ::   pxv1, pyv1   ! geographic vector componantes at v-point 
     77      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   px2          ! i-componante (defined at u-point) 
     78      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   py2          ! j-componante (defined at v-point) 
     79      !!---------------------------------------------------------------------- 
     80      INTEGER, INTENT( IN ) ::   & 
     81         kchoix   ! type of transformation 
     82                  ! = 1 change from geographic to model grid. 
     83                  ! =-1 change from model to geographic grid 
     84      !!---------------------------------------------------------------------- 
     85  
     86      SELECT CASE (kchoix) 
     87      CASE ( 1) 
     88        ! Change from geographic to stretched coordinate 
     89        ! ---------------------------------------------- 
     90      
     91        CALL rot_rep( pxu1, pyu1, 'U', 'en->i',px2 ) 
     92        CALL rot_rep( pxv1, pyv1, 'V', 'en->j',py2 ) 
     93      CASE (-1) 
     94       ! Change from stretched to geographic coordinate 
     95       ! ---------------------------------------------- 
     96      
     97       CALL rot_rep( pxu1, pyu1, 'U', 'ij->e',px2 ) 
     98       CALL rot_rep( pxv1, pyv1, 'V', 'ij->n',py2 ) 
     99     END SELECT 
     100      
     101   END SUBROUTINE repcmo 
    60102 
    61103   SUBROUTINE rot_rep ( pxin, pyin, cd_type, cdtodo, prot ) 
Note: See TracChangeset for help on using the changeset viewer.