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 6862 for branches/2016/dev_r6522_SIMPLIF_3/NEMOGCM/NEMO/OPA_SRC/BDY/bdyini.F90 – NEMO

Ignore:
Timestamp:
2016-08-12T15:16:24+02:00 (8 years ago)
Author:
lovato
Message:

#1729 - trunk: removed key_bdy from the code and set usage of ln_bdy. Tested with SETTE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6522_SIMPLIF_3/NEMOGCM/NEMO/OPA_SRC/BDY/bdyini.F90

    r6140 r6862  
    1313   !!            3.4  !  2012     (J. Chanut) straight open boundary case update 
    1414   !!            3.5  !  2012     (S. Mocavero, I. Epicoco) optimization of BDY communications 
    15    !!---------------------------------------------------------------------- 
    16 #if defined key_bdy 
    17    !!---------------------------------------------------------------------- 
    18    !!   'key_bdy'                     Unstructured Open Boundary Conditions 
     15   !!            3.7  !  2016     (T. Lovato) Remove bdy macro, call here init for dta and tides 
    1916   !!---------------------------------------------------------------------- 
    2017   !!   bdy_init      : Initialization of unstructured open boundaries 
     
    2320   USE dom_oce        ! ocean space and time domain 
    2421   USE bdy_oce        ! unstructured open boundary conditions 
     22   USE bdydta         ! open boundary cond. setting   (bdy_dta_init routine) 
     23   USE bdytides       ! open boundary cond. setting   (bdytide_init routine) 
    2524   USE sbctide  , ONLY: lk_tide ! Tidal forcing or not 
    2625   USE phycst   , ONLY: rday 
     
    9493      INTEGER                              ::   nbdyind, nbdybeg, nbdyend 
    9594      !! 
    96       NAMELIST/nambdy/ nb_bdy, ln_coords_file, cn_coords_file,                 & 
     95      NAMELIST/nambdy/ ln_bdy, nb_bdy, ln_coords_file, cn_coords_file,         & 
    9796         &             ln_mask_file, cn_mask_file, cn_dyn2d, nn_dyn2d_dta,     & 
    9897         &             cn_dyn3d, nn_dyn3d_dta, cn_tra, nn_tra_dta,             &   
    9998         &             ln_tra_dmp, ln_dyn3d_dmp, rn_time_dmp, rn_time_dmp_out, & 
    100          &             cn_ice_lim, nn_ice_lim_dta,                           & 
    101          &             rn_ice_tem, rn_ice_sal, rn_ice_age,                 & 
     99         &             cn_ice_lim, nn_ice_lim_dta,                             & 
     100         &             rn_ice_tem, rn_ice_sal, rn_ice_age,                     & 
    102101         &             ln_vol, nn_volctl, nn_rimwidth 
    103102         ! 
     
    108107      IF( nn_timing == 1 )   CALL timing_start('bdy_init') 
    109108      ! 
    110       IF(lwp) WRITE(numout,*) 
    111       IF(lwp) WRITE(numout,*) 'bdy_init : initialization of open boundaries' 
    112       IF(lwp) WRITE(numout,*) '~~~~~~~~' 
    113       ! 
    114       IF( jperio /= 0 )   CALL ctl_stop( 'Cyclic or symmetric,',   & 
    115          &                               ' and general open boundary condition are not compatible' ) 
    116  
    117109      cgrid = (/'t','u','v'/) 
    118110       
     
    133125      ! ----------------------------------------- 
    134126      !                                   ! control prints 
    135       IF(lwp) WRITE(numout,*) '   nambdy' 
     127      IF ( ln_bdy ) THEN 
     128         IF(lwp) WRITE(numout,*) 
     129         IF(lwp) WRITE(numout,*) 'bdy_init : initialization of open boundaries' 
     130         IF(lwp) WRITE(numout,*) '~~~~~~~~' 
     131      ELSE 
     132         IF(lwp) WRITE(numout,*) 
     133         IF(lwp) WRITE(numout,*) 'bdy_init : open boundaries not used (ln_bdy = F)' 
     134         IF(lwp) WRITE(numout,*) '~~~~~~~~' 
     135         IF( nn_timing == 1 )   CALL timing_stop('bdy_init') 
     136         return 
     137      ENDIF 
     138 
     139      IF( jperio /= 0 )   CALL ctl_stop( 'bdy_init: Cyclic or symmetric,',   & 
     140         &                               ' and general open boundary condition are not compatible' ) 
    136141 
    137142      IF( nb_bdy == 0 ) THEN  
     
    13001305      CALL wrk_dealloc(jpi,jpj,   zfmask )  
    13011306      ! 
     1307      ! Open boundaries initialisation of external data arrays 
     1308      CALL bdy_dta_init 
     1309      ! 
     1310      ! Open boundaries initialisation of tidal harmonic forcing 
     1311      IF( lk_tide ) CALL bdytide_init 
     1312 
     1313      ! 
    13021314      IF( nn_timing == 1 )   CALL timing_stop('bdy_init') 
    13031315      ! 
     
    17131725   END SUBROUTINE bdy_ctl_corn 
    17141726 
    1715 #else 
    1716    !!--------------------------------------------------------------------------------- 
    1717    !!   Dummy module                                   NO open boundaries 
    1718    !!--------------------------------------------------------------------------------- 
    1719 CONTAINS 
    1720    SUBROUTINE bdy_init      ! Dummy routine 
    1721    END SUBROUTINE bdy_init 
    1722 #endif 
    1723  
    17241727   !!================================================================================= 
    17251728END MODULE bdyini 
Note: See TracChangeset for help on using the changeset viewer.