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 9210 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/step.F90 – NEMO

Ignore:
Timestamp:
2018-01-11T16:41:21+01:00 (6 years ago)
Author:
gm
Message:

dev_merge_2017: merge a 4th mpp_max (stop, see WP2017/HPC03) cleaning in nemo_gcm routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/step.F90

    r9124 r9210  
    280280      IF(.NOT.ln_linssh) CALL dom_vvl_sf_swp( kstp )  ! swap of vertical scale factors 
    281281      ! 
    282       IF( ln_diahsb        )   CALL dia_hsb( kstp )         ! - ML - global conservation diagnostics 
     282      IF( ln_diahsb  )   CALL dia_hsb       ( kstp )  ! - ML - global conservation diagnostics 
    283283 
    284284!!gm : This does not only concern the dynamics ==>>> add a new title 
     
    287287!!jc: That would be better, but see comment above 
    288288!! 
    289       IF( lrst_oce         )   CALL rst_write    ( kstp )   ! write output ocean restart file 
    290       IF( ln_sto_eos       )   CALL sto_rst_write( kstp )   ! write restart file for stochastic parameters 
     289      IF( lrst_oce   )   CALL rst_write    ( kstp )   ! write output ocean restart file 
     290      IF( ln_sto_eos )   CALL sto_rst_write( kstp )   ! write restart file for stochastic parameters 
    291291 
    292292#if defined key_agrif 
     
    298298      IF( Agrif_NbStepint() == 0 ) THEN               ! AGRIF Update  
    299299!!jc in fact update is useless at last time step, but do it for global diagnostics 
    300                              CALL Agrif_Update_ssh()      ! Update ssh 
    301          IF(.NOT.ln_linssh)  CALL Agrif_Update_vvl()      ! Update vertical scale factors   
    302                              CALL Agrif_Update_Tra()      ! Update active tracers 
    303                              CALL Agrif_Update_Dyn()      ! Update momentum 
    304 #if defined key_top 
    305                              CALL Agrif_Update_Trc()      ! Update passive tracers 
    306 #endif 
    307       ENDIF 
    308 #endif 
    309       IF( ln_diaobs  )   CALL dia_obs( kstp )         ! obs-minus-model (assimilation) diagnostics (call after dynamics update) 
     300                              CALL Agrif_Update_ssh()    ! Update ssh 
     301         IF(.NOT.ln_linssh)   CALL Agrif_Update_vvl()    ! Update vertical scale factors   
     302                              CALL Agrif_Update_Tra()    ! Update active tracers 
     303                              CALL Agrif_Update_Dyn()    ! Update momentum 
     304# if defined key_top 
     305                              CALL Agrif_Update_Trc()    ! Update passive tracers 
     306# endif 
     307      ENDIF 
     308#endif 
     309      IF( ln_diaobs  )   CALL dia_obs      ( kstp )      ! obs-minus-model (assimilation) diagnostics (call after dynamics update) 
    310310 
    311311      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    312312      ! Control 
    313313      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    314                          CALL stp_ctl       ( kstp, indic ) 
    315       IF( indic < 0  ) THEN 
    316                          CALL ctl_stop( 'step: indic < 0' ) 
    317                          CALL dia_wri_state( 'output.abort', kstp ) 
    318       ENDIF 
    319       IF( kstp == nit000 ) THEN 
    320                  CALL iom_close( numror )     ! close input  ocean restart file 
    321          IF(lwm) CALL FLUSH    ( numond )     ! flush output namelist oce 
    322          IF(lwm.AND.numoni /= -1 )   & 
    323             &    CALL FLUSH    ( numoni )     ! flush output namelist ice (if exist) 
     314                         CALL stp_ctl      ( kstp, indic ) 
     315                          
     316      IF( kstp == nit000 ) THEN                          ! 1st time step only 
     317                                        CALL iom_close( numror )   ! close input  ocean restart file 
     318         IF(lwm)                        CALL FLUSH    ( numond )   ! flush output namelist oce 
     319         IF(lwm .AND. numoni /= -1 )    CALL FLUSH    ( numoni )   ! flush output namelist ice (if exist) 
    324320      ENDIF 
    325321 
     
    337333#endif 
    338334      ! 
    339       IF( ln_timing ) THEN 
    340          IF( ln_timing      )   CALL timing_start('stp') 
    341 !!gm avoid the init phase during 1st time step ???  useless now no? 
    342          IF( kstp == nit000 )   CALL timing_reset            
    343       ENDIF 
     335      IF( ln_timing )   CALL timing_stop('stp') 
    344336      ! 
    345337   END SUBROUTINE stp 
Note: See TracChangeset for help on using the changeset viewer.