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 7029 for branches/NERC/dev_r6998_ORCHESTRA/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90 – NEMO

Ignore:
Timestamp:
2016-10-14T11:10:43+02:00 (8 years ago)
Author:
jamesharle
Message:

Adding ORCHESTRA configuration
Merging with branches/2016/dev_r5549_BDY_ZEROGRAD
Merging with branches/2016/dev_r5840_BDY_MSK
Merging with branches/2014/dev_r4621_NOC4_BDY_VERT_INTERP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r6998_ORCHESTRA/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90

    r6140 r7029  
    2424   USE oce             ! ocean dynamics and tracers 
    2525   USE dom_oce         ! ocean space and time domain 
    26    ! 
     26   USE bdy_oce       
    2727   USE in_out_manager  ! I/O manager 
    2828   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    2929   USE lib_mpp         ! 
     30   USE iom 
    3031   USE wrk_nemo        ! Memory allocation 
    3132   USE timing          ! Timing 
     
    102103      INTEGER  ::   iif, iil, ii0, ii1, ii   ! local integers 
    103104      INTEGER  ::   ijf, ijl, ij0, ij1       !   -       - 
    104       INTEGER  ::   ios 
     105      INTEGER  ::   ios, inum 
    105106      INTEGER  ::   isrow                    ! index for ORCA1 starting row 
    106107      INTEGER , POINTER, DIMENSION(:,:) ::  imsk 
     
    108109      !! 
    109110      NAMELIST/namlbc/ rn_shlat, ln_vorlat 
     111#if defined key_bdy  
     112      NAMELIST/nambdy/ nb_bdy, ln_coords_file, cn_coords_file,                 & 
     113         &             ln_mask_file, cn_mask_file, cn_dyn2d, nn_dyn2d_dta,     & 
     114         &             cn_dyn3d, nn_dyn3d_dta, cn_tra, nn_tra_dta,             & 
     115         &             ln_tra_dmp, ln_dyn3d_dmp, rn_time_dmp, rn_time_dmp_out, & 
     116         &             cn_ice_lim, nn_ice_lim_dta,                           & 
     117         &             rn_ice_tem, rn_ice_sal, rn_ice_age,                 & 
     118         &             ln_vol, nn_volctl, nn_rimwidth, nb_jpk_bdy 
     119#endif 
    110120      !!--------------------------------------------------------------------- 
    111121      ! 
     
    155165      END DO   
    156166       
     167#if defined key_bdy  
     168      REWIND( numnam_ref )              ! Namelist nambdy in reference namelist :Unstructured open boundaries   
     169      READ  ( numnam_ref, nambdy, IOSTAT = ios, ERR = 903) 
     170903   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in reference namelist', lwp ) 
     171 
     172      REWIND( numnam_cfg )              ! Namelist nambdy in configuration namelist :Unstructured open boundaries 
     173      READ  ( numnam_cfg, nambdy, IOSTAT = ios, ERR = 904 ) 
     174904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in configuration namelist', lwp ) 
     175      IF(lwm) WRITE ( numond, nambdy ) 
     176 
     177     IF( ln_mask_file ) THEN ! correct for bdy mask 
     178         CALL iom_open( cn_mask_file, inum ) 
     179         CALL iom_get ( inum, jpdom_data, 'bdy_msk', bdytmask(:,:) ) 
     180         CALL iom_close( inum ) 
     181 
     182         ! Mask corrections 
     183         ! ---------------- 
     184         DO jk = 1, jpkm1 
     185            DO jj = 1, jpj 
     186               DO ji = 1, jpi 
     187                  tmask(ji,jj,jk) = tmask(ji,jj,jk) * bdytmask(ji,jj) 
     188               END DO 
     189            END DO 
     190         END DO 
     191      ENDIF 
     192#endif 
    157193      ! (ISF) define barotropic mask and mask the ice shelf point 
    158194      ssmask(:,:)=tmask(:,:,1) ! at this stage ice shelf is not masked 
Note: See TracChangeset for help on using the changeset viewer.