Changeset 789 for trunk/NEMO/OPA_SRC/DYN/wzvmod.F90
- Timestamp:
- 2008-01-11T19:04:56+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/DYN/wzvmod.F90
r719 r789 36 36 37 37 CONTAINS 38 39 #if defined key_mpp_omp40 !!----------------------------------------------------------------------41 !! 'key_mpp_omp' j-k-i loop (j-slab)42 !!----------------------------------------------------------------------43 44 SUBROUTINE wzv( kt )45 !!----------------------------------------------------------------------46 !! *** ROUTINE wzv ***47 !!48 !! ** Purpose : Compute the now vertical velocity after the array swap49 !!50 !! ** Method : Using the incompressibility hypothesis, the vertical51 !! velocity is computed by integrating the horizontal divergence52 !! from the bottom to the surface.53 !! The boundary conditions are w=0 at the bottom (no flux) and,54 !! in rigid-lid case, w=0 at the sea surface.55 !!56 !! ** action : wn array : the now vertical velocity57 !!----------------------------------------------------------------------58 !! * Arguments59 INTEGER, INTENT( in ) :: kt ! ocean time-step index60 61 !! * Local declarations62 INTEGER :: jj, jk ! dummy loop indices63 !!----------------------------------------------------------------------64 65 IF( kt == nit000 ) THEN66 IF(lwp) WRITE(numout,*)67 IF(lwp) WRITE(numout,*) 'wzv : vertical velocity from continuity eq.'68 IF(lwp) WRITE(numout,*) '~~~~~~~ j-k-i loops'69 70 ! bottom boundary condition: w=0 (set once for all)71 wn(:,:,jpk) = 0.e072 ENDIF73 74 ! ! ===============75 DO jj = 1, jpj ! Vertical slab76 ! ! ===============77 ! Computation from the bottom78 DO jk = jpkm1, 1, -179 wn(:,jj,jk) = wn(:,jj,jk+1) - fse3t(:,jj,jk) * hdivn(:,jj,jk)80 END DO81 ! ! ===============82 END DO ! End of slab83 ! ! ===============84 85 IF(ln_ctl) CALL prt_ctl(tab3d_1=wn, clinfo1=' w**2 - : ', mask1=wn)86 87 END SUBROUTINE wzv88 89 #else90 !!----------------------------------------------------------------------91 !! Default option k-j-i loop92 !!----------------------------------------------------------------------93 38 94 39 SUBROUTINE wzv( kt ) … … 189 134 190 135 END SUBROUTINE wzv 191 #endif192 136 193 137 !!======================================================================
Note: See TracChangeset
for help on using the changeset viewer.