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 6507 for branches/UKMO/dev_r6501_GO6_package_trunk/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90 – NEMO

Ignore:
Timestamp:
2016-05-03T14:28:12+02:00 (8 years ago)
Author:
timgraham
Message:

First attempt at merging in science changes from GO6 package branch at v3.6 stable (Note-namelists not yet dealt with)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r6501_GO6_package_trunk/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90

    r6503 r6507  
    105105      INTEGER  ::   isrow                    ! index for ORCA1 starting row 
    106106      INTEGER , POINTER, DIMENSION(:,:) ::  imsk 
     107      REAL(wp) ::  zphi_drake_passage, zshlat_antarc 
    107108      REAL(wp), POINTER, DIMENSION(:,:) ::  zwf 
    108109      !! 
     
    345346      ENDIF 
    346347      ! 
     348      IF( cp_cfg == "orca" .AND. jp_cfg == 025 .AND. rn_shlat == 0.0 ) THEN    
     349         !                                              ! ORCA_R025 configuration 
     350         !                                              ! Increased lateral friction on parts of Antarctic coastline 
     351         !                                              ! for increased stability 
     352         !                                              ! NB. This only works to do this here if we have free slip  
     353         !                                              ! generally, so fmask is zero at coast points. 
     354         IF(lwp) WRITE(numout,*) 
     355         IF(lwp) WRITE(numout,*) '   orca_r025: increase friction in following regions : ' 
     356         IF(lwp) WRITE(numout,*) '      whole Antarctic coastline: partial slip shlat=1 ' 
     357 
     358         zphi_drake_passage = -58.0_wp 
     359         zshlat_antarc = 1.0_wp 
     360         zwf(:,:) = fmask(:,:,1)          
     361         DO jj = 2, jpjm1 
     362            DO ji = fs_2, fs_jpim1   ! vector opt. 
     363               IF( gphif(ji,jj) .lt. zphi_drake_passage .and. fmask(ji,jj,1) == 0._wp ) THEN 
     364                  fmask(ji,jj,:) = zshlat_antarc * MIN( 1._wp , MAX( zwf(ji+1,jj), zwf(ji,jj+1),   & 
     365                     &                                           zwf(ji-1,jj), zwf(ji,jj-1)  )  ) 
     366               ENDIF 
     367            END DO 
     368         END DO 
     369      END IF 
     370      ! 
    347371      CALL lbc_lnk( fmask, 'F', 1._wp )      ! Lateral boundary conditions on fmask 
    348372      ! 
Note: See TracChangeset for help on using the changeset viewer.