- Timestamp:
- 2010-10-11T18:51:54+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DEV_r2191_3partymerge2010/NEMO/OPA_SRC/BDY/bdyvol.F90
r1739 r2207 11 11 #if defined key_bdy && defined key_dynspg_flt 12 12 !!---------------------------------------------------------------------- 13 !! 'key_bdy' andunstructured open boundary conditions13 !! 'key_bdy' AND unstructured open boundary conditions 14 14 !! 'key_dynspg_flt' filtered free surface 15 15 !!---------------------------------------------------------------------- … … 30 30 # include "domzgr_substitute.h90" 31 31 !!---------------------------------------------------------------------- 32 !! NEMO/OPA 3. 0 , LOCEAN-IPSL (2008)32 !! NEMO/OPA 3.3 , NEMO Consortium (2010) 33 33 !! $Id$ 34 34 !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 35 35 !!---------------------------------------------------------------------- 36 37 36 CONTAINS 38 37 … … 73 72 INTEGER :: ji, jj, jk, jb, jgrd 74 73 INTEGER :: ii, ij 75 REAL(wp) :: zubtpecor, z_cflxemp, ztranst , zraur74 REAL(wp) :: zubtpecor, z_cflxemp, ztranst 76 75 !!----------------------------------------------------------------------------- 77 76 … … 85 84 ! ----------------------------------------------------------------------- 86 85 z_cflxemp = 0.e0 87 zraur = 1.e0 / rau0 88 z_cflxemp = SUM ( emp(:,:) * bdytmask(:,:) * e1t(:,:) * e2t(:,:) * zraur ) 89 IF( lk_mpp ) CALL mpp_sum( z_cflxemp ) ! sum over the global domain 86 z_cflxemp = SUM ( ( emp(:,:)-rnf(:,:) ) * bdytmask(:,:) * e1t(:,:) * e2t(:,:) ) / rau0 87 IF( lk_mpp ) CALL mpp_sum( z_cflxemp ) ! sum over the global domain 90 88 91 ! Barotropic velocitythrough the unstructured open boundary92 ! ------------------------------------------------ ----------89 ! Transport through the unstructured open boundary 90 ! ------------------------------------------------ 93 91 zubtpecor = 0.e0 94 92 jgrd = 2 ! cumulate u component contribution first … … 112 110 ! The normal velocity correction 113 111 ! ------------------------------ 114 IF (volbdy==1) THEN ; zubtpecor = ( zubtpecor - z_cflxemp) / bdysurftot115 ELSE ; zubtpecor = zubtpecor / bdysurftot112 IF( volbdy==1 ) THEN ; zubtpecor = ( zubtpecor - z_cflxemp) / bdysurftot 113 ELSE ; zubtpecor = zubtpecor / bdysurftot 116 114 END IF 117 115 … … 141 139 ! Check the cumulated transport through unstructured OBC once barotropic velocities corrected 142 140 ! ------------------------------------------------------ 143 144 141 IF( lwp .AND. MOD( kt, nwrite ) == 0) THEN 145 142 IF(lwp) WRITE(numout,*)
Note: See TracChangeset
for help on using the changeset viewer.