- Timestamp:
- 2015-09-24T08:31:40+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/DOM/domhgr.F90
r5755 r5758 14 14 !! use of parameters in par_CONFIG-Rxx.h90, not in namelist 15 15 !! - ! 2004-05 (A. Koch-Larrouy) Add Gyre configuration 16 !! 3.7 ! 2015-09 (G. Madec ) add cell surface and their inverse16 !! 3.7 ! 2015-09 (G. Madec, S. Flavoni) add cell surface and their inverse 17 17 !! add optional read of e1e2u & e1e2v 18 18 !!---------------------------------------------------------------------- … … 126 126 ENDIF 127 127 ! 128 ie1e2u_v = 0 ! set to unread e1e2u and e1e2v129 128 ! 130 129 SELECT CASE( jphgr_msh ) ! type of horizontal mesh … … 135 134 IF(lwp) WRITE(numout,*) ' curvilinear coordinate on the sphere read in "coordinate" file' 136 135 ! 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 138 139 ! 139 140 IF( ie1e2u_v == 0 ) THEN ! e1e2u and e1e2v have not been read: compute them … … 141 142 e1e2u (:,:) = e1u(:,:) * e2u(:,:) 142 143 e1e2v (:,:) = e1v(:,:) * e2v(:,:) 143 144 !145 ! ! =====================146 IF( ie1e2u_v == 0 ) CALL dom_wri_coordinate147 !148 !149 144 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 !172 145 ! 173 146 CASE ( 1 ) !== geographical mesh on the sphere with regular (in degree) grid-spacing ==! … … 214 187 ! Position coordinates (in kilometers) 215 188 ! ========== 216 glam0 = 0. e0189 glam0 = 0._wp 217 190 gphi0 = - ppe2_m * 1.e-3 218 191 ! … … 309 282 ze1 = 106000. / REAL( jp_cfg , wp ) 310 283 ! benchmark: forced the resolution to be about 100 km 311 IF( nbench /= 0 ) ze1 = 106000. e0284 IF( nbench /= 0 ) ze1 = 106000._wp 312 285 zsin_alpha = - SQRT( 2._wp ) * 0.5_wp 313 286 zcos_alpha = SQRT( 2._wp ) * 0.5_wp … … 444 417 ! 445 418 zbeta = 2. * omega * COS( rad * ppgphi0 ) / ra ! beta at latitude ppgphi0 446 zphi0 = 15. e0! latitude of the first row F-points419 zphi0 = 15._wp ! latitude of the first row F-points 447 420 zf0 = 2. * omega * SIN( rad * zphi0 ) ! compute f0 1st point south 448 421 !
Note: See TracChangeset
for help on using the changeset viewer.