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 9707 for branches/UKMO/dev_r5518_GO6_diag_bitcomp/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2018-05-31T11:48:34+02:00 (6 years ago)
Author:
frrh
Message:

Work out N-fold mask points for U and V grids based on
value flipping during N-fold lbc_lnk operations.
It's much easier this way.
Tidy up remaining code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_diag_bitcomp/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r9614 r9707  
    14001400      IF ( ln_mskland ) THEN 
    14011401         ! mask land points, keep values on coast line -> specific mask for U, V and W points 
     1402 
     1403 
    14021404         SELECT CASE ( cdgrd ) 
     1405         ! The masks applied here are specifically used to mask out duplicate  
     1406         ! data poits in wrap columns and N-fold rows in order to ensure bit  
     1407         ! comparison of diagnostics which have not undergone an explicit 
     1408         ! lbc_lnk prior to writing and which are thus prone to junk in  
     1409         ! in these duplicate points since they are not usually explicitly  
     1410         ! involved in field computation.  
    14031411         CASE('T')    
    1404             zmask(:,:,:) = tmask_i_3d(:,:,:) 
    1405          CASE('U') 
    1406             zmask(:,:,:) = umask_i_3d(:,:,:)  
    1407          CASE('V')  
    1408             zmask(:,:,:) = vmask_i_3d(:,:,:)  
     1412            zmask(:,:,:) = tmask_i_diag(:,:,:) 
     1413         CASE('U')       
     1414            zmask(:,:,:) = umask_i_diag(:,:,:) 
     1415    CASE('V')   
     1416            zmask(:,:,:) = vmask_i_diag(:,:,:) 
    14091417         CASE('W')    
    1410             zmask(:,:,2:jpk  ) = tmask_i_3d(:,:,1:jpkm1) + tmask_i_3d(:,:,2:jpk)    
    1411             zmask(:,:,1) = tmask_i_3d(:,:,1) 
    1412          END SELECT 
     1418            zmask(:,:,2:jpk  ) = tmask_i_diag(:,:,1:jpkm1) + tmask_i_diag(:,:,2:jpk)    
     1419            zmask(:,:,1) = tmask_i_diag(:,:,1) 
     1420        END SELECT 
    14131421         ! 
    14141422#if ! defined key_xios2 
Note: See TracChangeset for help on using the changeset viewer.