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 15749 – NEMO

Changeset 15749


Ignore:
Timestamp:
2022-03-10T17:40:56+01:00 (2 years ago)
Author:
jwhile
Message:

Fix for pcbias boundary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_FOAMv14_ASMFix/NEMOGCM/NEMO/OPA_SRC/ASM/bias.F90

    r13114 r15749  
    524524         ! Use the inertial ramp. 
    525525         lenscl_bias = ( rn_maxlat_bias - rn_minlat_bias )*2._wp 
     526         fbcoef(:,:) = 1._wp - exp( -( abs( gphit(:,:) ) - rn_minlat_bias ) & 
     527                           * ( abs( gphit(:,:) ) - rn_minlat_bias ) / lenscl_bias )   
    526528         WHERE ( abs( gphit(:,:) ) <= rn_minlat_bias )          
    527             fbcoef(:,:) = 0._wp           
    528          ELSEWHERE ( abs( gphit(:,:) ) >= rn_maxlat_bias )          
     529            fbcoef(:,:) = 0._wp 
     530         ENDWHERE          
     531         WHERE ( abs( gphit(:,:) ) >= rn_maxlat_bias )          
    529532            fbcoef(:,:) = 1._wp                     
    530          ELSEWHERE         
    531             fbcoef(:,:) = 1._wp - exp( -( abs( gphit(:,:) ) - rn_minlat_bias ) & 
    532                            * ( abs( gphit(:,:) ) - rn_minlat_bias ) / lenscl_bias )                          
    533533         ENDWHERE  
     534          
    534535      ELSEIF ( nn_lat_ramp == 2 ) THEN    
    535536         ! Use a linear ramp consist with the geostrophic velocity balance ramp in NEMOVAR 
    536       
     537          
     538         fbcoef(:,:) = 1._wp - ((rn_maxlat_bias - abs( gphit(:,:)))/(rn_maxlat_bias - rn_minlat_bias)) 
    537539         WHERE ( abs( gphit(:,:) ) <= rn_minlat_bias ) 
    538540            fbcoef(:,:) = 0._wp 
    539          ELSEWHERE ( abs( gphit(:,:) ) >= rn_maxlat_bias )  
     541         ENDWHERE 
     542         WHERE ( abs( gphit(:,:) ) >= rn_maxlat_bias )  
    540543            fbcoef(:,:) = 1._wp 
    541          ELSEWHERE 
    542             fbcoef(:,:) = 1._wp - ((rn_maxlat_bias - abs( gphit(:,:)))/(rn_maxlat_bias - rn_minlat_bias)) 
    543544         ENDWHERE 
     545             
     546          
    544547      ELSE 
    545548         fbcoef(:,:) = 0.0_wp 
Note: See TracChangeset for help on using the changeset viewer.