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 7060 for branches/2016/dev_v3_6_STABLE_r6506_AGRIF_LIM3/NEMOGCM/NEMO/SAS_SRC/step.F90 – NEMO

Ignore:
Timestamp:
2016-10-20T16:16:29+02:00 (8 years ago)
Author:
clem
Message:

update agrif+lim3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_v3_6_STABLE_r6506_AGRIF_LIM3/NEMOGCM/NEMO/SAS_SRC/step.F90

    r5510 r7060  
    4343#endif 
    4444 
     45#if defined key_agrif 
     46   USE agrif_oce, ONLY: lk_agrif_debug  !clem 
     47#endif 
     48    
    4549   IMPLICIT NONE 
    4650   PRIVATE 
     
    7882#if defined key_agrif 
    7983      kstp = nit000 + Agrif_Nb_Step() 
     84      IF ( lk_agrif_debug ) THEN 
     85         IF ( Agrif_Root() .and. lwp) Write(*,*) '---' 
     86         IF (lwp) Write(*,*) 'Grid Number',Agrif_Fixed(),' time step ',kstp, 'int tstep',Agrif_NbStepint() 
     87      ENDIF 
     88 
     89      IF ( kstp == (nit000 + 1) ) lk_agrif_fstep = .FALSE. 
     90 
    8091# if defined key_iomput 
    8192      IF( Agrif_Nbstepint() == 0 )   CALL iom_swap( cxios_context ) 
    8293# endif    
    8394#endif    
     95                             indic = 0                    ! although indic is not changed in stp_ctl 
     96                                                          ! need to keep the same interface  
    8497      IF( kstp == nit000 )   CALL iom_init( cxios_context ) ! iom_put initialization (must be done after nemo_init for AGRIF+XIOS+OASIS) 
    8598      IF( kstp /= nit000 )   CALL day( kstp )             ! Calendar (day was already called at nit000 in day_init) 
     
    98111                             CALL dia_wri( kstp )         ! ocean model: outputs 
    99112 
    100                              indic = 0                    ! although indic is not changed in stp_ctl 
    101                                                           ! need to keep the same interface  
     113#if defined key_agrif 
     114      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     115      ! AGRIF 
     116      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<       
     117                             CALL Agrif_Integrate_ChildGrids( stp )   
     118#endif 
     119                              
     120      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     121      ! Control 
     122      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    102123                             CALL stp_ctl( kstp, indic ) 
     124      IF( indic < 0  )  THEN 
     125                             CALL ctl_stop( 'step: indic < 0' ) 
     126                             CALL dia_wri_state( 'output.abort', kstp ) 
     127      ENDIF 
     128      IF( kstp == nit000   ) CALL iom_close( numror )     ! close input  ocean restart file (clem: not sure...) 
     129       
    103130      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    104131      ! Coupled mode 
Note: See TracChangeset for help on using the changeset viewer.