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 8189 for branches/2017/dev_r8127_AGRIF_LIM3_GHOST/NEMOGCM/NEMO/NST_SRC/agrif_user.F90 – NEMO

Ignore:
Timestamp:
2017-06-19T17:16:00+02:00 (7 years ago)
Author:
clem
Message:

bug fixes for ghostcells>1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8127_AGRIF_LIM3_GHOST/NEMOGCM/NEMO/NST_SRC/agrif_user.F90

    r8129 r8189  
    149149   !----------------------------- 
    150150   !!clem ghost (previously set to /0,0/) 
    151    CALL Agrif_Set_bc(e1u_id,(/0,ind1/)) 
    152    CALL Agrif_Set_bc(e2v_id,(/0,ind1/)) 
     151   CALL Agrif_Set_bc(e1u_id,(/0,ind1-1/)) 
     152   CALL Agrif_Set_bc(e2v_id,(/0,ind1-1/)) 
    153153   !!clem ghost 
    154154 
     
    433433   CALL Agrif_Set_bc(vn_sponge_id ,(/-nn_sponge_len*Agrif_irhox()-1,0/)) 
    434434 
    435    CALL Agrif_Set_bc(sshn_id,(/0,ind1/)) 
    436    CALL Agrif_Set_bc(unb_id ,(/0,ind1/)) 
    437    CALL Agrif_Set_bc(vnb_id ,(/0,ind1/)) 
    438    CALL Agrif_Set_bc(ub2b_interp_id,(/0,ind1/)) 
    439    CALL Agrif_Set_bc(vb2b_interp_id,(/0,ind1/)) 
    440  
    441    CALL Agrif_Set_bc(e3t_id,(/-2*Agrif_irhox()-1,ind1/))   ! if west and rhox=3 and ghost=1: column 1 to 9 
    442    CALL Agrif_Set_bc(umsk_id,(/0,ind1/)) 
    443    CALL Agrif_Set_bc(vmsk_id,(/0,ind1/)) 
     435   CALL Agrif_Set_bc(sshn_id,(/0,ind1-1/)) 
     436   CALL Agrif_Set_bc(unb_id ,(/0,ind1-1/)) 
     437   CALL Agrif_Set_bc(vnb_id ,(/0,ind1-1/)) 
     438   CALL Agrif_Set_bc(ub2b_interp_id,(/0,ind1-1/)) 
     439   CALL Agrif_Set_bc(vb2b_interp_id,(/0,ind1-1/)) 
     440 
     441   CALL Agrif_Set_bc(e3t_id,(/-2*Agrif_irhox()-1,ind1-1/))   ! if west and rhox=3 and ghost=1: column 2 to 9 
     442   CALL Agrif_Set_bc(umsk_id,(/0,ind1-1/)) 
     443   CALL Agrif_Set_bc(vmsk_id,(/0,ind1-1/)) 
    444444 
    445445   ! clem: previously set to /0,1/ 
     
    827827   CALL Agrif_Set_bc(trn_id,(/0,ind1/)) 
    828828   !clem: previously set to /-,0/ 
    829    CALL Agrif_Set_bc(trn_sponge_id,(/-nn_sponge_len*Agrif_irhox()-1,ind1/)) 
     829   CALL Agrif_Set_bc(trn_sponge_id,(/-nn_sponge_len*Agrif_irhox()-1,0/)) 
    830830 
    831831   ! 5. Update type 
Note: See TracChangeset for help on using the changeset viewer.