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 – NEMO

Changeset 9780 for NEMO/trunk/src/OCE


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

Location:
NEMO/trunk/src/OCE
Files:
3 edited

Legend:

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

    r9656 r9780  
    8989   USE xios           ! xIOserver 
    9090#endif 
     91#if defined key_agrif 
     92   USE agrif_all_update   ! Master Agrif update 
     93#endif 
    9194 
    9295   IMPLICIT NONE 
     
    160163      !                                               !==  AGRIF time-stepping  ==! 
    161164      CALL Agrif_Regrid() 
     165      ! 
     166      ! Recursive update from highest nested level to lowest: 
     167      CALL Agrif_step_child_adj(Agrif_Update_All) 
    162168      ! 
    163169      DO WHILE( istp <= nitend .AND. nstop == 0 ) 
  • 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) 
  • NEMO/trunk/src/OCE/step_oce.F90

    r9598 r9780  
    104104#if defined key_agrif 
    105105   USE agrif_oce_sponge ! Momemtum and tracers sponges 
    106    USE agrif_oce_update ! Update (2-way nesting) 
    107 #if defined key_si3 
    108    USE agrif_ice_update 
    109 #endif 
    110 #if defined key_top 
    111    USE agrif_top_update ! passive tracers update (2-way nesting) 
    112 #endif 
     106   USE agrif_all_update ! Main update driver 
    113107#endif 
    114108#if defined key_top 
Note: See TracChangeset for help on using the changeset viewer.