Changeset 9679 for branches/UKMO/dev_merge_2017_GC_couple_pkg/NEMOGCM/NEMO/OPA_SRC/SBC/geo2ocean.F90
- Timestamp:
- 2018-05-29T16:37:04+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_merge_2017_GC_couple_pkg/NEMOGCM/NEMO/OPA_SRC/SBC/geo2ocean.F90
r9677 r9679 34 34 PRIVATE 35 35 36 PUBLIC repcmo ! called in sbccpl 36 37 PUBLIC rot_rep ! called in sbccpl, fldread, and cyclone 37 38 PUBLIC geo2oce ! called in sbccpl … … 58 59 !!---------------------------------------------------------------------- 59 60 CONTAINS 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 60 102 61 103 SUBROUTINE rot_rep ( pxin, pyin, cd_type, cdtodo, prot )
Note: See TracChangeset
for help on using the changeset viewer.