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 14125 for NEMO/trunk/src/OCE/DOM/domain.F90 – NEMO

Ignore:
Timestamp:
2020-12-07T20:46:03+01:00 (4 years ago)
Author:
jchanut
Message:

#2222, restore correct ssh initialization from parent grid + suppress useless ice initializations (Clement)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/DOM/domain.F90

    r14090 r14125  
    3434#endif 
    3535   USE sshwzv  , ONLY : ssh_init_rst   ! set initial ssh 
     36#if defined key_agrif 
     37   USE agrif_oce_interp, ONLY : Agrif_istate_ssh ! ssh interpolated from parent 
     38#endif 
    3639   USE sbc_oce        ! surface boundary condition: ocean 
    3740   USE trc_oce        ! shared ocean & passive tracers variab 
     
    178181      !                                 != ssh initialization 
    179182      IF( .NOT.l_offline .AND. .NOT.l_SAS ) THEN 
    180          CALL ssh_init_rst( Kbb, Kmm, Kaa ) 
     183#if defined key_agrif 
     184         IF ( .NOT.Agrif_root().AND.(ln_init_chfrpar) ) THEN 
     185            ! Interpolate initial ssh from parent: 
     186            CALL Agrif_istate_ssh( Kbb, Kmm ) 
     187         ELSE 
     188#endif 
     189            CALL ssh_init_rst( Kbb, Kmm, Kaa ) 
     190#if defined key_agrif 
     191         ENDIF 
     192#endif 
    181193      ELSE 
    182194         ssh(:,:,:) = 0._wp 
Note: See TracChangeset for help on using the changeset viewer.