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

Changeset 15130


Ignore:
Timestamp:
2021-07-19T16:54:25+02:00 (3 years ago)
Author:
jchanut
Message:

#2638, Remove useless interpolation over land points around zoom + revert external switch in the i direction to the previous one (issue with north fold corssing with nn_hls=2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/NST/agrif_user.F90

    r15119 r15130  
    434434      ! 1. Declaration of the type of variable which have to be interpolated 
    435435      !--------------------------------------------------------------------- 
    436       ind1 =              nbghostcells 
     436      ind1 =              nbghostcells - 1 ! Remove one land cell in ghosts  
    437437      ind2 = nn_hls + 1 + nbghostcells_x_w 
    438438      ind3 = nn_hls + 1 + nbghostcells_y_s 
     
    634634      !                            2,2 = two ghost lines 
    635635      !------------------------------------------------------------------------------------- 
    636       ind1 =              nbghostcells 
     636      ind1 =              nbghostcells - 1 ! Remove one land cell in ghosts  
    637637      ind2 = nn_hls + 1 + nbghostcells_x_w 
    638638      ind3 = nn_hls + 1 + nbghostcells_y_s 
     
    661661      ! 3. Set location of interpolations 
    662662      !---------------------------------- 
    663       CALL Agrif_Set_bc(tra_ice_id,(/0,ind1/)) 
    664       CALL Agrif_Set_bc(u_ice_id  ,(/0,ind1/)) 
    665       CALL Agrif_Set_bc(v_ice_id  ,(/0,ind1/)) 
    666  
    667       CALL Agrif_Set_bc(tra_iceini_id,(/0,ind1/)) 
    668       CALL Agrif_Set_bc(u_iceini_id  ,(/0,ind1/)) 
    669       CALL Agrif_Set_bc(v_iceini_id  ,(/0,ind1/)) 
     663      CALL Agrif_Set_bc(tra_ice_id,(/0,ind1-1/)) 
     664      CALL Agrif_Set_bc(u_ice_id  ,(/0,ind1-1/)) 
     665      CALL Agrif_Set_bc(v_ice_id  ,(/0,ind1-1/)) 
     666 
     667      CALL Agrif_Set_bc(tra_iceini_id,(/0,ind1-1/)) 
     668      CALL Agrif_Set_bc(u_iceini_id  ,(/0,ind1-1/)) 
     669      CALL Agrif_Set_bc(v_iceini_id  ,(/0,ind1-1/)) 
    670670 
    671671      ! 4. Set update type in case 2 ways (child=>parent) (normal & tangent to the grid cell for velocities) 
     
    782782      ! 1. Declaration of the type of variable which have to be interpolated 
    783783      !--------------------------------------------------------------------- 
    784       ind1 =              nbghostcells 
     784      ind1 =              nbghostcells - 1 ! Remove one land cell in ghosts  
    785785      ind2 = nn_hls + 1 + nbghostcells_x_w 
    786786      ind3 = nn_hls + 1 + nbghostcells_y_s 
     
    11061106           
    11071107            bounds_chunks(1,1,1,1) = bounds(1,1,2) 
    1108             bounds_chunks(1,1,2,1) = nn_hls+1 
     1108            bounds_chunks(1,1,2,1) = nn_hls+1  
    11091109        
    11101110            bounds_chunks(2,1,1,2) = nn_hls+1  
     
    11611161      IF( isens == 1 ) THEN 
    11621162         IF( ptx == 2 ) THEN ! T, V points 
    1163             agrif_external_switch_index = jpiglo-i1+2*nn_hls 
     1163            agrif_external_switch_index = jpiglo-i1+2 
    11641164         ELSE ! U, F points 
    1165             agrif_external_switch_index = jpiglo-i1+2*nn_hls-1       
     1165            agrif_external_switch_index = jpiglo-i1+1  
    11661166         ENDIF 
    11671167      ELSE IF( isens ==2 ) THEN 
Note: See TracChangeset for help on using the changeset viewer.