Changeset 503 for trunk/NEMO/OPA_SRC/DYN/dynspg_flt_jki.F90
- Timestamp:
- 2006-09-27T10:52:29+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/DYN/dynspg_flt_jki.F90
r474 r503 9 9 !! 'key_mpp_omp' j-k-i loop (vector opt.) 10 10 !!---------------------------------------------------------------------- 11 !!---------------------------------------------------------------------- 11 12 !! dyn_spg_flt_jki : Update the momentum trend with the surface pressure 12 13 !! gradient for the free surf. constant volume case 13 14 !! with auto-tasking (j-slab) (no vectior opt.) 14 15 !!---------------------------------------------------------------------- 15 !! OPA 9.0 , LOCEAN-IPSL (2005)16 !! $Header$17 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt18 !!----------------------------------------------------------------------19 !! * Modules used20 16 USE oce ! ocean dynamics and tracers 21 17 USE dom_oce ! ocean space and time domain … … 51 47 !! OPA 9.0 , LOCEAN-IPSL (2005) 52 48 !! $Header$ 53 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt49 !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 54 50 !!---------------------------------------------------------------------- 55 51 … … 100 96 !! ** Action : - Update (ua,va) with the surf. pressure gradient trend 101 97 !! 102 !! References : 103 !! Roullet and Madec 1999, JGR. 104 !! 105 !! History : 106 !! ! 98-05 (G. Roullet) Original code 107 !! ! 98-10 (G. Madec, M. Imbard) release 8.2 108 !! 8.5 ! 02-08 (G. Madec) F90: Free form and module 109 !! ! 02-11 (C. Talandier, A-M Treguier) Open boundaries 110 !! 9.0 ! 04-08 (C. Talandier) New trends organization 111 !! " ! 05-11 (V. Garnier) Surface pressure gradient organization 98 !! References : Roullet and Madec 1999, JGR. 112 99 !!--------------------------------------------------------------------- 113 !! * Arguments114 100 INTEGER, INTENT( in ) :: kt ! ocean time-step index 115 INTEGER, INTENT( out ) :: kindic ! solver convergence flag 116 ! if the solver doesn t converge 117 ! the flag is < 0 118 !! * Local declarations 101 INTEGER, INTENT( out ) :: kindic ! solver convergence flag, <0 if the solver doesn t converge 102 !! 119 103 INTEGER :: ji, jj, jk ! dummy loop indices 120 104 REAL(wp) :: & ! temporary scalars … … 154 138 spgv(ji,jj) = - grav * ( sshn(ji ,jj+1) - sshn(ji,jj) ) / e2v(ji,jj) 155 139 END DO 156 157 140 ! Add the surface pressure trend to the general trend 158 141 DO jk = 1, jpkm1 … … 162 145 END DO 163 146 END DO 164 165 147 ! Evaluate the masked next velocity (effect of the additional force not included) 166 148 DO jk = 1, jpkm1 … … 170 152 END DO 171 153 END DO 172 173 154 ! ! =============== 174 155 END DO ! End of slab … … 202 183 spgv(ji,jj) = 0.e0 203 184 END DO 204 205 185 ! vertical sum 206 186 DO jk = 1, jpk … … 210 190 END DO 211 191 END DO 212 213 192 ! transport: multiplied by the horizontal scale factor 214 193 DO ji = 2, jpim1 … … 216 195 spgv(ji,jj) = spgv(ji,jj) * e1v(ji,jj) 217 196 END DO 218 219 197 ! ! =============== 220 198 END DO ! End of slab … … 302 280 WRITE(ctmp1,*) ' ~~~~~~~~~~~~~~~~ not = ', nsolv 303 281 CALL ctl_stop( ' dyn_spg_flt_jki : e r r o r, nsolv = 1, 2, 3 or 4', ctmp1 ) 304 ENDIF 305 306 !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,synchro,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 307 308 !CDIR PARALLEL DO 309 !$OMP PARALLEL DO 282 ENDIF 283 ENDIF 284 285 !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,synchro,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 286 310 287 ! ! =============== 311 288 DO jj = 2, jpjm1 ! Vertical slab … … 353 330 ! 8. Sea surface elevation time stepping 354 331 ! -------------------------------------- 355 ! Euler (forward) time stepping, no time filter 356 IF( neuler == 0 .AND. kt == nit000 ) THEN 332 IF( neuler == 0 .AND. kt == nit000 ) THEN ! Euler (forward) time stepping, no time filter 357 333 DO ji = 1, jpi 358 334 ! after free surface elevation … … 362 338 sshn(ji,jj) = zssha 363 339 END DO 364 ELSE 365 ! Leap-frog time stepping and time filter 340 ELSE ! Leap-frog time stepping and time filter 366 341 DO ji = 1, jpi 367 342 ! after free surface elevation … … 384 359 CALL prt_ctl( tab2d_1=sshn, clinfo1=' spg - ssh: ', mask1=tmask) 385 360 ENDIF 386 387 361 ! 388 362 END SUBROUTINE dyn_spg_flt_jki 389 363
Note: See TracChangeset
for help on using the changeset viewer.