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 9780 for NEMO/trunk/src/OCE/step.F90 – NEMO

Ignore:
Timestamp:
2018-06-12T14:12:51+02:00 (6 years ago)
Author:
jchanut
Message:

Reorganize Agrif update in a single subroutine ; use adjoint stepping for initial state update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/step.F90

    r9610 r9780  
    294294                         CALL Agrif_Integrate_ChildGrids( stp )  ! allows to finish all the Child Grids before updating 
    295295 
    296       IF( Agrif_NbStepint() == 0 ) THEN               ! AGRIF Update from zoom N to zoom 1 then to Parent  
    297 !!jc in fact update is useless at last time step, but do it for global diagnostics 
    298 #if defined key_si3 
    299                               CALL Agrif_Update_ice( kstp )   ! update sea-ice 
    300 #endif 
    301                               CALL Agrif_Update_ssh()          ! Update ssh 
    302          IF(.NOT.ln_linssh)   CALL Agrif_Update_vvl()          ! Update vertical scale factors   
    303                               CALL Agrif_Update_Tra()          ! Update active tracers 
    304                               CALL Agrif_Update_Dyn()          ! Update momentum 
    305 # if defined key_top 
    306                               CALL Agrif_Update_Trc()          ! Update passive tracers 
    307 # endif 
    308       ENDIF 
     296                         IF( Agrif_NbStepint() == 0 ) CALL Agrif_update_all( ) ! Update all components 
    309297#endif 
    310298      IF( ln_diaobs  )   CALL dia_obs      ( kstp )      ! obs-minus-model (assimilation) diagnostics (call after dynamics update) 
Note: See TracChangeset for help on using the changeset viewer.