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 4980 for branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC – NEMO

Ignore:
Timestamp:
2014-12-08T19:23:02+01:00 (10 years ago)
Author:
jchanut
Message:

Recursive update 2: change update location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/step.F90

    r4978 r4980  
    8484      IF ( kstp == (nit000 + 1) ) lk_agrif_fstep = .FALSE. 
    8585 
    86       IF ( Agrif_NbStepint() .EQ. (Agrif_irhot()-1)) THEN  
    87          lk_agrif_doupd = .TRUE. 
    88       ELSE 
    89          lk_agrif_doupd = .FALSE. 
    90       ENDIF 
    91  
    9286# if defined key_iomput 
    9387      IF( Agrif_Nbstepint() == 0 )   CALL iom_swap( "nemo" ) 
     
    309303      IF( lk_vvl           )   CALL dom_vvl_sf_swp( kstp )  ! swap of vertical scale factors 
    310304      ! 
     305      IF( lrst_oce         )   CALL rst_write( kstp )       ! write output ocean restart file 
     306 
     307#if defined key_agrif 
     308      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     309      ! AGRIF 
     310      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<       
     311                               CALL Agrif_Integrate_ChildGrids( stp )   
     312 
     313      IF ( Agrif_NbStepint().EQ.0 ) THEN 
     314                               CALL Agrif_Update_Tra()      ! Update active tracers 
     315                               CALL Agrif_Update_Dyn()      ! Update momentum 
     316      ENDIF 
     317#endif 
    311318      IF( ln_diahsb        )   CALL dia_hsb( kstp )         ! - ML - global conservation diagnostics 
    312319      IF( lk_diaobs  )         CALL dia_obs( kstp )         ! obs-minus-model (assimilation) diagnostics (call after dynamics update) 
    313320 
    314 #if defined key_agrif 
    315       !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    316       ! AGRIF update (TWO WAY) 
    317       !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    318       IF ( Agrif_Level().EQ.Agrif_MaxLevel() ) THEN 
    319                                CALL Agrif_Update_Tra()      ! Update active tracers 
    320                                CALL Agrif_Update_Dyn()      ! Update momentum 
    321       ENDIF 
    322 #endif 
    323  
    324       !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    325       ! Control and restarts 
     321      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     322      ! Control 
    326323      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    327324                               CALL stp_ctl( kstp, indic ) 
     
    335332         IF(lwm) CALL FLUSH    ( numoni )     ! flush output namelist ice     
    336333      ENDIF 
    337       IF( lrst_oce         )   CALL rst_write    ( kstp )   ! write output ocean restart file 
    338334 
    339335      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    361357      IF( nn_timing == 1 .AND.  kstp == nit000  )   CALL timing_reset 
    362358      !      
    363 #if defined key_agrif 
    364                                CALL Agrif_Integrate_ChildGrids( stp )    
    365 #endif 
    366359      ! 
    367360   END SUBROUTINE stp 
Note: See TracChangeset for help on using the changeset viewer.