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 12119 for NEMO/branches/2019/dev_r11233_AGRIF-05_jchanut_vert_coord_interp/src/NST/agrif_user.F90 – NEMO

Ignore:
Timestamp:
2019-12-09T11:55:22+01:00 (4 years ago)
Author:
jchanut
Message:

#2222, remove useless mask checking (and restrict scale factor check at the boundary only until nesting tools are updated in sponge areas). Take into account special values in tracer updates, again, till nesting tools are updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11233_AGRIF-05_jchanut_vert_coord_interp/src/NST/agrif_user.F90

    r12048 r12119  
    259259      ! check if masks and bathymetries match 
    260260      IF(ln_chk_bathy) THEN 
     261         Agrif_UseSpecialValue = .FALSE. 
    261262         ! 
    262263         IF(lwp) WRITE(numout,*) ' ' 
     
    266267# if ! defined key_vertical 
    267268         ! 
    268          ! check if umask agree with parent along western and eastern boundaries: 
    269          CALL Agrif_Bc_variable(umsk_id,calledweight=1.,procname=interpumsk) 
    270          ! check if vmask agree with parent along northern and southern boundaries: 
    271          CALL Agrif_Bc_variable(vmsk_id,calledweight=1.,procname=interpvmsk) 
    272          ! check if tmask and vertical scale factors agree with parent over first two coarse grid points: 
     269         ! check if tmask and vertical scale factors agree with parent in sponge area: 
    273270         CALL Agrif_Bc_variable(e3t_id,calledweight=1.,procname=interpe3t) 
    274271         ! 
     
    346343 
    347344      CALL agrif_declare_variable((/2,2,0/),(/ind3,ind3,0/),(/'x','y','N'/),(/1,1,1/),(/nlci,nlcj,jpk/),e3t_id) 
    348       CALL agrif_declare_variable((/1,2,0/),(/ind2,ind3,0/),(/'x','y','N'/),(/1,1,1/),(/nlci,nlcj,jpk/),umsk_id) 
    349       CALL agrif_declare_variable((/2,1,0/),(/ind3,ind2,0/),(/'x','y','N'/),(/1,1,1/),(/nlci,nlcj,jpk/),vmsk_id) 
     345 
    350346# if defined key_vertical 
    351347      CALL agrif_declare_variable((/2,2/),(/ind3,ind3/),(/'x','y'/),(/1,1/),(/nlci,nlcj/),mbkt_id) 
     
    401397 
    402398      CALL Agrif_Set_bcinterp(e3t_id,interp=AGRIF_constant) 
    403       CALL Agrif_Set_bcinterp(umsk_id,interp=AGRIF_constant) 
    404       CALL Agrif_Set_bcinterp(vmsk_id,interp=AGRIF_constant) 
    405399 
    406400# if defined key_vertical 
     
    427421      CALL Agrif_Set_bc( vb2b_interp_id, (/0,ind1-1/) ) 
    428422 
    429       CALL Agrif_Set_bc(  e3t_id, (/-nn_sponge_len*Agrif_irhox(),ind1-1/) )     ! if west,  rhox=3, nn_sponge_len=2 
    430       CALL Agrif_Set_bc( umsk_id, (/0,0/) )                                     ! and nbghost=3: 
    431       CALL Agrif_Set_bc( vmsk_id, (/0,0/) )                                     ! columns 2 to 10 
     423!      CALL Agrif_Set_bc(  e3t_id, (/-nn_sponge_len*Agrif_irhox(),ind1-1/) )   
     424! JC: check near the boundary only until matching in sponge has been sorted out: 
     425      CALL Agrif_Set_bc(  e3t_id, (/0,ind1-1/) )   
     426 
    432427# if defined key_vertical  
    433428      ! extend the interpolation zone by 1 more point than necessary: 
Note: See TracChangeset for help on using the changeset viewer.