New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2236 for branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DYN/divcur.F90 – NEMO

Ignore:
Timestamp:
2010-10-12T20:49:32+02:00 (14 years ago)
Author:
cetlod
Message:

First guess of NEMO_v3.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DYN/divcur.F90

    r2148 r2236  
    1414   USE in_out_manager  ! I/O manager 
    1515   USE obc_oce         ! ocean lateral open boundary condition 
    16    USE bdy_oce         ! Unstructured open boundaries variables 
    1716   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
     17   USE sbcrnf         ! river runoff  
     18   USE sbc_oce, ONLY : ln_rnf   ! surface boundary condition: ocean 
    1819 
    1920   IMPLICIT NONE 
     
    7980      !!   9.0  !  03-08  (G. Madec)  merged of cur and div, free form, F90 
    8081      !!        !  05-01  (J. Chanut, A. Sellar) unstructured open boundaries 
     82      !! NEMO 3.3  !  2010-09  (D.Storkey and E.O'Dea) bug fixes for BDY module 
    8183      !!---------------------------------------------------------------------- 
    8284      !! * Arguments 
     
    132134            IF( lp_obc_south )   hdivn(nis0  :nis1  ,njs0  :njs1  ,jk) = 0.e0      ! south 
    133135         ENDIF 
    134 #endif          
    135 #if defined key_bdy 
    136          ! unstructured open boundaries (div must be zero behind the open boundary) 
    137          DO jj = 1, jpj 
    138             DO ji = 1, jpi 
    139                hdivn(ji,jj,jk)=hdivn(ji,jj,jk)*bdytmask(ji,jj) 
    140             END DO 
    141          END DO 
    142136#endif          
    143137         IF( .NOT. AGRIF_Root() ) THEN 
     
    245239      END DO                                           !   End of slab 
    246240      !                                                ! =============== 
     241 
     242      IF( ln_rnf )  CALL sbc_rnf_div( hdivn )          ! runoffs (update hdivn field) 
    247243       
    248244      ! 4. Lateral boundary conditions on hdivn and rotn 
     
    346342         ENDIF 
    347343#endif          
    348 #if defined key_bdy 
    349          ! unstructured open boundaries (div must be zero behind the open boundary) 
    350          DO jj = 1, jpj 
    351            DO ji = 1, jpi 
    352              hdivn(ji,jj,jk)=hdivn(ji,jj,jk)*bdytmask(ji,jj) 
    353            END DO 
    354          END DO 
    355 #endif         
    356344         IF( .NOT. AGRIF_Root() ) THEN 
    357345            IF ((nbondi ==  1).OR.(nbondi == 2)) hdivn(nlci-1 , :     ,jk) = 0.e0      ! east 
     
    374362      END DO                                           !   End of slab 
    375363      !                                                ! =============== 
    376        
     364 
     365      IF( ln_rnf )  CALL sbc_rnf_div( hdivn )          ! runoffs (update hdivn field) 
     366 
    377367      ! 4. Lateral boundary conditions on hdivn and rotn 
    378368      ! ---------------------------------=======---====== 
Note: See TracChangeset for help on using the changeset viewer.