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 4147 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/BDY/bdyini.F90 – NEMO

Ignore:
Timestamp:
2013-11-04T12:51:55+01:00 (10 years ago)
Author:
cetlod
Message:

merge in dev_LOCEAN_2013, the 1st development branch dev_r3853_CNRS9_Confsetting, from its starting point ( r3853 ) on the trunk: see ticket #1169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/BDY/bdyini.F90

    r3703 r4147  
    102102      !! 
    103103      NAMELIST/nambdy_index/ ctypebdy, nbdyind, nbdybeg, nbdyend 
    104  
     104      INTEGER  ::   ios                 ! Local integer output status for namelist read 
    105105      !!---------------------------------------------------------------------- 
    106106 
     
    119119      cgrid= (/'t','u','v'/) 
    120120       
    121       ! ----------------------------------------- 
    122       ! Initialise and read namelist parameters 
    123       ! ----------------------------------------- 
    124  
    125       nb_bdy            = 0 
    126       ln_coords_file(:) = .false. 
    127       cn_coords_file(:) = '' 
    128       ln_mask_file      = .false. 
    129       cn_mask_file(:)   = '' 
    130       nn_dyn2d(:)       = 0 
    131       nn_dyn2d_dta(:)   = -1  ! uninitialised flag 
    132       nn_dyn3d(:)       = 0 
    133       nn_dyn3d_dta(:)   = -1  ! uninitialised flag 
    134       nn_tra(:)         = 0 
    135       nn_tra_dta(:)     = -1  ! uninitialised flag 
    136       ln_tra_dmp(:)     = .false. 
    137       ln_dyn3d_dmp(:)   = .false. 
    138       rn_time_dmp(:)    = 1. 
    139 #if defined key_lim2 
    140       nn_ice_lim2(:)    = 0 
    141       nn_ice_lim2_dta(:)= -1  ! uninitialised flag 
    142 #endif 
    143       ln_vol            = .false. 
    144       nn_volctl         = -1  ! uninitialised flag 
    145       nn_rimwidth(:)    = -1  ! uninitialised flag 
    146  
    147       REWIND( numnam )                     
    148       READ  ( numnam, nambdy ) 
     121      ! ------------------------ 
     122      ! Read namelist parameters 
     123      ! ------------------------ 
     124 
     125      REWIND( numnam_ref )              ! Namelist nambdy in reference namelist :Unstructured open boundaries   
     126      READ  ( numnam_ref, nambdy, IOSTAT = ios, ERR = 901) 
     127901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in reference namelist', lwp ) 
     128 
     129      REWIND( numnam_cfg )              ! Namelist nambdy in configuration namelist :Unstructured open boundaries 
     130      READ  ( numnam_cfg, nambdy, IOSTAT = ios, ERR = 902 ) 
     131902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in configuration namelist', lwp ) 
     132      WRITE ( numond, nambdy ) 
    149133 
    150134      ! ----------------------------------------- 
     
    301285      ! Work out global dimensions of boundary data 
    302286      ! --------------------------------------------- 
    303       REWIND( numnam )                     
     287      REWIND( numnam_cfg )      
     288 
     289      !!---------------------------------------------------------------------- 
     290 
     291               
    304292                
    305293      nblendta(:,:) = 0 
     
    319307            icount = icount + 1 
    320308            ! No REWIND here because may need to read more than one nambdy_index namelist. 
    321             READ  ( numnam, nambdy_index ) 
     309            ! Read only namelist_cfg to avoid unseccessfull overwrite 
     310!!          REWIND( numnam_ref )              ! Namelist nambdy_index in reference namelist : Open boundaries indexes 
     311!!          READ  ( numnam_ref, namrun, IOSTAT = ios, ERR = 903) 
     312!!903       IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_index in reference namelist', lwp ) 
     313 
     314!!          REWIND( numnam_cfg )              ! Namelist nambdy_index in configuration namelist : Open boundaries indexes 
     315            READ  ( numnam_cfg, nambdy_index, IOSTAT = ios, ERR = 904 ) 
     316904         IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_index in configuration namelist', lwp ) 
     317            WRITE ( numond, nambdy_index ) 
    322318 
    323319            SELECT CASE ( TRIM(ctypebdy) ) 
Note: See TracChangeset for help on using the changeset viewer.