Changeset 7646 for trunk/NEMOGCM/NEMO/SAS_SRC/step.F90
- Timestamp:
- 2017-02-06T10:25:03+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/SAS_SRC/step.F90
r6140 r7646 23 23 USE eosbn2 ! equation of state (eos_bn2 routine) 24 24 USE diawri ! Standard run outputs (dia_wri routine) 25 USE bdy_par ! clem: mandatory for LIM3 26 #if defined key_bdy 25 USE bdy_oce , ONLY: ln_bdy 27 26 USE bdydta ! clem: mandatory for LIM3 28 #endif29 27 USE stpctl ! time stepping control (stp_ctl routine) 30 28 ! … … 38 36 #endif 39 37 38 #if defined key_agrif 39 USE agrif_oce, ONLY: lk_agrif_debug !clem 40 #endif 41 40 42 IMPLICIT NONE 41 43 PRIVATE … … 70 72 #if defined key_agrif 71 73 kstp = nit000 + Agrif_Nb_Step() 74 IF ( lk_agrif_debug ) THEN 75 IF ( Agrif_Root() .and. lwp) Write(*,*) '---' 76 IF (lwp) Write(*,*) 'Grid Number',Agrif_Fixed(),' time step ',kstp, 'int tstep',Agrif_NbStepint() 77 ENDIF 78 79 IF ( kstp == (nit000 + 1) ) lk_agrif_fstep = .FALSE. 80 72 81 # if defined key_iomput 73 82 IF( Agrif_Nbstepint() == 0 ) CALL iom_swap( cxios_context ) 74 83 # endif 75 84 #endif 85 indic = 0 ! although indic is not changed in stp_ctl 86 ! need to keep the same interface 76 87 IF( kstp == nit000 ) CALL iom_init( cxios_context ) ! iom_put initialization (must be done after nemo_init for AGRIF+XIOS+OASIS) 77 88 IF( kstp /= nit000 ) CALL day( kstp ) ! Calendar (day was already called at nit000 in day_init) … … 82 93 ! From SAS: ocean bdy data are wrong (but we do not care) and ice bdy data are OK. 83 94 ! This is not clean and should be changed in the future. 84 #if defined key_bdy 85 IF( lk_bdy ) CALL bdy_dta ( kstp, time_offset=+1 ) ! update dynamic & tracer data at open boundaries 86 #endif 95 IF( ln_bdy ) CALL bdy_dta ( kstp, time_offset=+1 ) ! update dynamic & tracer data at open boundaries 87 96 ! ==> 88 97 CALL sbc ( kstp ) ! Sea Boundary Condition (including sea-ice) … … 90 99 CALL dia_wri( kstp ) ! ocean model: outputs 91 100 92 indic = 0 ! although indic is not changed in stp_ctl 93 ! need to keep the same interface 101 #if defined key_agrif 102 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 103 ! AGRIF 104 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 105 CALL Agrif_Integrate_ChildGrids( stp ) 106 #endif 107 108 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 109 ! Control 110 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 94 111 CALL stp_ctl( kstp, indic ) 112 IF( indic < 0 ) THEN 113 CALL ctl_stop( 'step: indic < 0' ) 114 CALL dia_wri_state( 'output.abort', kstp ) 115 ENDIF 116 IF( kstp == nit000 ) CALL iom_close( numror ) ! close input ocean restart file (clem: not sure...) 117 95 118 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 96 119 ! Coupled mode
Note: See TracChangeset
for help on using the changeset viewer.