Changeset 64


Ignore:
Timestamp:
12/27/12 21:55:06 (11 years ago)
Author:
smasson
Message:

add back missing part of NEMO 3.4: div must be zero behind the open boundary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/DYN/divcur.F90

    r7 r64  
    2727   USE sbc_oce, ONLY : ln_rnf   ! surface boundary condition: ocean 
    2828   USE sbcrnf          ! river runoff  
     29   USE obc_oce         ! ocean lateral open boundary condition 
    2930   USE cla             ! cross land advection             (cla_div routine) 
    3031   USE in_out_manager  ! I/O manager 
     
    302303         END DO   
    303304 
     305#if defined key_obc 
     306         IF( Agrif_Root() ) THEN 
     307            ! open boundaries (div must be zero behind the open boundary) 
     308            !  mpp remark: The zeroing of hdivn can probably be extended to 1->jpi/jpj for the correct row/column 
     309            IF( lp_obc_east  )   hdivn(nie0p1:nie1p1,nje0  :nje1  ,jk) = 0.e0      ! east 
     310            IF( lp_obc_west  )   hdivn(niw0  :niw1  ,njw0  :njw1  ,jk) = 0.e0      ! west 
     311            IF( lp_obc_north )   hdivn(nin0  :nin1  ,njn0p1:njn1p1,jk) = 0.e0      ! north 
     312            IF( lp_obc_south )   hdivn(nis0  :nis1  ,njs0  :njs1  ,jk) = 0.e0      ! south 
     313         ENDIF 
     314#endif  
     315 
    304316         IF( .NOT. AGRIF_Root() ) THEN 
    305317            IF ((nbondi ==  1).OR.(nbondi == 2)) hdivn(nlci-1 , :     ,jk) = 0.e0      ! east 
Note: See TracChangeset for help on using the changeset viewer.