Skip to content
Snippets Groups Projects
Commit 3e5b2dd9 authored by Guillaume Samson's avatar Guillaume Samson :snowman2:
Browse files

Merge branch '74bis-ice-and-ssh-initialization-agrif-no-ice-in-zoom-case' into 'branch_4.2'

manually report 74-ice-and-ssh-initialization-agrif-no-ice-in-zoom-case commit to branch_4.2

See merge request nemo/nemo!128
parents 34b6b5b2 0c63a503
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,10 @@ MODULE restart
USE trdmxl_oce ! ocean active mixed layer tracers trends variables
USE diu_bulk ! ???
#if defined key_agrif
#if defined key_si3
USE iceistate, ONLY: rsshadj, nn_iceini_file
USE sbc_oce, ONLY: ln_ice_embd
#endif
USE agrif_oce_interp
#endif
!
......@@ -420,8 +424,22 @@ CONTAINS
!
ENDIF
#if defined key_agrif
! Set ghosts points from parent
IF (.NOT.Agrif_Root()) CALL Agrif_istate_ssh( Kbb, Kmm, Kaa, .true. )
! Set ghosts points from parent
IF (.NOT.Agrif_Root()) THEN
CALL Agrif_istate_ssh( Kbb, Kmm, Kaa, .true. )
#if defined key_si3
IF ( (nn_ice/=2).AND.((Agrif_Parent(nn_ice)==2).AND. &
& (.NOT.(Agrif_Parent(ln_rstart) &
& .OR.(Agrif_Parent(nn_iceini_file)==2))).AND. &
& (.NOT.Agrif_Parent(ln_ice_embd)) &
& )) THEN
WHERE( ssmask(:,:) == 1._wp )
ssh(:,:,Kmm) = ssh(:,:,Kmm) - Agrif_Parent(rsshadj)
ssh(:,:,Kbb) = ssh(:,:,Kbb) - Agrif_Parent(rsshadj)
ENDWHERE
ENDIF
#endif
ENDIF
#endif
#if defined key_RK3
ssh(:,:,Kmm) = 0._wp !* RK3: set Kmm to 0 for AGRIF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment