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

Ignore:
Timestamp:
2018-05-21T11:29:38+02:00 (6 years ago)
Author:
frrh
Message:

Create 3D U and V interior masks to mask out wrap columns
and 1st and last rows. Apply to appropriate grids
at dfinition phase.

File:
1 edited

Legend:

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

    r9608 r9614  
    256256         ENDIF 
    257257      ENDIF 
     258 
     259 
    258260      IF( jperio == 5 .OR. jperio == 6 ) THEN      ! F-point pivot 
    259261         tpol(     1    :jpiglo) = 0._wp 
     
    292294      CALL lbc_lnk( vmask_i, 'V', 1._wp ) 
    293295      CALL lbc_lnk( fmask_i, 'F', 1._wp ) 
     296 
     297      ! Set up interior 3d U mask 
     298      umask_i_3d(:,:,:) = umask(:,:,:)  
     299      ! Now mask out any wrap columns 
     300      umask_i_3d( 1 :iif,:,:) = 0._wp       ! first columns 
     301      umask_i_3d(iil:jpi,:,:) = 0._wp       ! last  columns (including mpp extra columns) 
     302      ! Now mask out any extra rows 
     303      umask_i_3d(:,1:ijf,:) = 0._wp         ! first rows 
     304      umask_i_3d(:,ijl:jpj,:) = 0._wp       ! last  rows (including mpp extra rows) 
     305 
     306      ! Set up interior 3d V mask 
     307      vmask_i_3d(:,:,:) = vmask(:,:,:)  
     308      ! Now mask out any wrap columns 
     309      vmask_i_3d( 1 :iif,:,:) = 0._wp       ! first columns 
     310      vmask_i_3d(iil:jpi,:,:) = 0._wp       ! last  columns (including mpp extra columns) 
     311      ! Now mask out any extra rows 
     312      vmask_i_3d(:,1:ijf,:) = 0._wp         ! first rows 
     313      vmask_i_3d(:,ijl:jpj,:) = 0._wp       ! last  rows (including mpp extra rows) 
     314 
    294315 
    295316      ! 3. Ocean/land mask at wu-, wv- and w points  
Note: See TracChangeset for help on using the changeset viewer.