Skip to content
Snippets Groups Projects
Commit e4c95a04 authored by Jérôme Chanut's avatar Jérôme Chanut Committed by Guillaume Samson
Browse files

Resolve "Issues with ssh initialization in iceinit with vvl and AGRIF"

parent 9bcf5bfb
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,10 @@ MODULE restart
USE usrdef_istate, ONLY : usr_def_istate_ssh ! user defined ssh initial state
USE trdmxl_oce ! ocean active mixed layer tracers trends variables
USE diu_bulk ! ???
#if defined key_si3
USE iceistate, ONLY: rsshadj, nn_iceini_file
USE sbc_oce, ONLY: ln_ice_embd
#endif
#if defined key_agrif
USE agrif_oce_interp
#endif
......@@ -435,7 +439,21 @@ CONTAINS
ENDIF
#if defined key_agrif
! Set ghosts points from parent
IF (.NOT.Agrif_Root()) CALL Agrif_istate_ssh( Kbb, Kmm, Kaa, .true. )
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
!
ssh(:,:,Kmm) = ssh(:,:,Kbb) !* set now values from to before ones
......
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