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.
step.F90 in tags/nemo_v1_13_dev4/NEMO/OPA_SRC – NEMO

source: tags/nemo_v1_13_dev4/NEMO/OPA_SRC/step.F90 @ 5712

Last change on this file since 5712 was 474, checked in by opalod, 18 years ago

nemo_v1_update_061: SM: end of ctl_stop + mpi optimization in _bilap

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 22.3 KB
Line 
1MODULE step
2   !!======================================================================
3   !!                       ***  MODULE step  ***
4   !! Time-stepping    : manager of the ocean, tracer and ice time stepping
5   !!======================================================================
6   !! History :
7   !!        !  91-03  ()  Original code
8   !!        !  91-11  (G. Madec)
9   !!        !  92-06  (M. Imbard)  add a first output record
10   !!        !  96-04  (G. Madec)  introduction of dynspg
11   !!        !  96-04  (M.A. Foujols)  introduction of passive tracer
12   !!   8.0  !  97-06  (G. Madec)  new architecture of call
13   !!   8.2  !  97-06  (G. Madec, M. Imbard, G. Roullet)  free surface
14   !!   8.2  !  99-02  (G. Madec, N. Grima)  hpg implicit
15   !!   8.2  !  00-07  (J-M Molines, M. Imbard)  Open Bondary Conditions
16   !!   9.0  !  02-06  (G. Madec)  free form, suppress macro-tasking
17   !!    "   !  04-08  (C. Talandier) New trends organization
18   !!    "   !  05-01  (C. Ethe) Add the KPP closure scheme
19   !!    "   !  05-11  (V. Garnier) Surface pressure gradient organization
20   !!    "   !  05-11  (G. Madec)  Reorganisation of tra and dyn calls
21   !!----------------------------------------------------------------------
22   !!   stp            : OPA system time-stepping
23   !!----------------------------------------------------------------------
24   !! * Modules used
25   USE oce             ! ocean dynamics and tracers variables
26   USE dom_oce         ! ocean space and time domain variables
27   USE zdf_oce         ! ocean vertical physics variables
28   USE ldftra_oce      ! ocean tracer   - trends
29   USE ldfdyn_oce      ! ocean dynamics - trends
30   USE cpl_oce         ! coupled ocean-atmosphere variables
31   USE in_out_manager  ! I/O manager
32   USE lbclnk
33
34   USE daymod          ! calendar                         (day     routine)
35
36   USE dtatem          ! ocean temperature data           (dta_tem routine)
37   USE dtasal          ! ocean salinity    data           (dta_sal routine)
38   USE dtasst          ! ocean sea surface temperature    (dta_sst routine)
39   USE dtasss          ! ocean sea surface salinity       (dta_sss routine)
40   USE taumod          ! surface stress                   (tau     routine)
41   USE flxmod          ! thermohaline fluxes              (flx     routine)
42   USE ocesbc          ! thermohaline fluxes              (oce_sbc routine)
43   USE flxrnf          ! runoffs                          (flx_rnf routine)
44   USE flxfwb          ! freshwater budget correction     (flx_fwb routine)
45   USE closea          ! closed sea freshwater budget     (flx_clo routine)
46   USE ocfzpt          ! surface ocean freezing point    (oc_fz_pt routine)
47
48   USE trcstp          ! passive tracer time-stepping      (trc_stp routine)
49
50   USE traqsr          ! solar radiation penetration      (tra_qsr routine)
51   USE trasbc          ! surface boundary condition       (tra_sbc routine)
52   USE trabbc          ! bottom boundary condition        (tra_bbc routine)
53   USE trabbl          ! bottom boundary layer            (tra_bbl routine)
54   USE tradmp          ! internal damping                 (tra_dmp routine)
55   USE traadv          ! advection scheme control     (tra_adv_ctl routine)
56   USE traldf          ! lateral mixing                   (tra_ldf routine)
57   USE cla             ! cross land advection             (tra_cla routine)
58   !   zdfkpp          ! KPP non-local tracer fluxes      (tra_kpp routine)
59   USE trazdf          ! vertical mixing                  (tra_zdf routine)
60   USE tranxt          ! time-stepping                    (tra_nxt routine)
61   USE tranpc          ! non-penetrative convection       (tra_npc routine)
62
63   USE eosbn2          ! equation of state                (eos_bn2 routine)
64
65   USE dynhpg          ! hydrostatic pressure grad.       (dyn_hpg routine)
66   USE dynkeg          ! kinetic energy gradient          (dyn_keg routine)
67   USE dynvor          ! vorticity term                   (dyn_vor routine)
68   USE dynzad          ! vertical advection               (dyn_adv routine)
69   USE dynldf          ! lateral momentum diffusion       (dyn_ldf routine)
70   USE dynzdf          ! vertical diffusion               (dyn_zdf routine)
71   USE dynspg_oce      ! surface pressure gradient        (dyn_spg routine)
72   USE dynspg          ! surface pressure gradient        (dyn_spg routine)
73   USE dynnxt          ! time-stepping                    (dyn_nxt routine)
74
75   USE obc_par         ! open boundary condition variables
76   USE obcdta          ! open boundary condition data     (obc_dta routine)
77   USE obcrst          ! open boundary cond. restart      (obc_rst routine)
78   USE obcrad          ! open boundary cond. radiation    (obc_rad routine)
79   USE obcspg          ! open boundary cond  spg          (obc_spg routine)
80
81   USE divcur          ! hor. divergence and curl      (div & cur routines)
82   USE cla_div         ! cross land: hor. divergence      (div_cla routine)
83   USE wzvmod          ! vertical velocity                (wzv     routine)
84
85   USE ldfslp          ! iso-neutral slopes               (ldf_slp routine)
86   USE ldfeiv          ! eddy induced velocity coef.      (ldf_eiv routine)
87
88   USE zdfbfr          ! bottom friction                  (zdf_bfr routine)
89   USE zdftke          ! TKE vertical mixing              (zdf_tke routine)
90   USE zdftke_jki      ! TKE vertical mixing              (zdf_tke routine)
91   USE zdfkpp          ! KPP vertical mixing              (zdf_kpp routine)
92   USE zdfddm          ! double diffusion mixing          (zdf_ddm routine)
93   USE zdfevd          ! enhanced vertical diffusion      (zdf_evd routine)
94   USE zdfric          ! Richardson vertical mixing       (zdf_ric routine)
95   USE zdfmxl          ! Mixed-layer depth                (zdf_mxl routine)
96
97   USE zpshde          ! partial step: hor. derivative     (zps_hde routine)
98   USE ice_oce         ! sea-ice variable
99   USE icestp          ! sea-ice time-stepping             (ice_stp routine)
100
101   USE diawri          ! Standard run outputs             (dia_wri routine)
102   USE trdicp          ! Ocean momentum/tracers trends    (trd_wri routine)
103   USE trdmld          ! mixed-layer trends               (trd_mld routine)
104   USE trdvor          ! vorticity budget                 (trd_vor routine)
105   USE diagap          ! hor. mean model-data gap         (dia_gap routine)
106   USE diahdy          ! dynamic height                   (dia_hdy routine)
107   USE diaptr          ! poleward transports              (dia_ptr routine)
108   USE diahth          ! thermocline depth                (dia_hth routine)
109   USE diafwb          ! freshwater budget                (dia_fwb routine)
110   USE diaspr          ! suface pressure (rigid-lid)      (dia_spr routine)
111   USE flo_oce         ! floats variables
112   USE floats          ! floats computation               (flo_stp routine)
113
114   USE stpctl          ! time stepping control            (stp_ctl routine)
115   USE restart         ! ocean restart                    (rst_wri routine)
116   USE cpl             ! exchanges in coupled mode        (cpl_stp routine)
117   USE prtctl          ! Print control                    (prt_ctl routine)
118
119#if defined key_agrif
120   USE agrif_opa_sponge ! Momemtum and tracers sponges
121#endif
122
123   IMPLICIT NONE
124   PRIVATE
125
126   !! * Routine accessibility
127   PUBLIC stp            ! called by opa.F90
128
129   !! * Substitutions
130#  include "domzgr_substitute.h90"
131#  include "zdfddm_substitute.h90"
132   !!----------------------------------------------------------------------
133   !!   OPA 9.0 , LOCEAN-IPSL (2005)
134   !! $Header$
135   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
136   !!----------------------------------------------------------------------
137
138CONTAINS
139
140#if !defined key_agrif
141   SUBROUTINE stp( kstp )
142#else
143   SUBROUTINE stp( )
144#endif
145      !!----------------------------------------------------------------------
146      !!                     ***  ROUTINE stp  ***
147      !!                     
148      !! ** Purpose : - Time stepping of OPA (momentum and active tracer eqs.)
149      !!              - Time stepping of LIM (dynamic and thermodynamic eqs.)
150      !!              - Tme stepping  of TRC (passive tracer eqs.)
151      !!
152      !! ** Method  : -1- Update forcings and data 
153      !!              -2- Update ocean physics
154      !!              -3- Compute the t and s trends
155      !!              -4- Update t and s
156      !!              -5- Compute the momentum trends
157      !!              -6- Update the horizontal velocity
158      !!              -7- Compute the diagnostics variables (rd,N2, div,cur,w)
159      !!              -8- Outputs and diagnostics
160      !!
161      !!----------------------------------------------------------------------
162      !! * Arguments
163#if !defined key_agrif   
164      INTEGER, INTENT( in ) :: kstp   ! ocean time-step index
165#else
166      INTEGER               :: kstp   ! ocean time-step index
167#endif     
168
169      !! * local declarations
170      INTEGER ::   indic    ! error indicator if < 0
171      !! ---------------------------------------------------------------------
172
173#if defined key_agrif
174      kstp = nit000 + Agrif_Nb_Step()
175!      IF ( Agrif_Root() .and. lwp) Write(*,*) '---'
176!      IF (lwp) Write(*,*) 'Grid N°',Agrif_Fixed(),' time step ',kstp
177#endif   
178      indic = 1                    ! reset to no error condition
179      adatrj = adatrj + rdt/86400._wp
180
181      CALL day( kstp )             ! Calendar
182
183      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
184      ! Update data, open boundaries and Forcings
185      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
186
187      IF( lk_dtatem  )   CALL dta_tem( kstp )         ! update 3D temperature data
188
189      IF( lk_dtasal  )   CALL dta_sal( kstp )         ! Salinity data
190
191      IF( lk_dtasst  )   CALL dta_sst( kstp )         ! Sea Surface Temperature data
192
193      IF( lk_dtasss  )   CALL dta_sss( kstp )         ! Sea Surface Salinity data
194
195      IF( lk_obc     )   CALL obc_dta( kstp )         ! update dynamic and tracer data at open boundaries
196
197      IF( lk_obc     )   CALL obc_rad( kstp )         ! compute phase velocities at open boundaries
198
199                         CALL tau( kstp )             ! wind stress
200
201                         CALL flx_rnf( kstp )         ! runoff data
202
203                         CALL flx( kstp )             ! heat and freshwater fluxes
204
205      IF( lk_ice_lim )   CALL ice_stp( kstp )         ! sea-ice model (Update stress & fluxes)
206
207                         CALL oce_sbc( kstp )         ! ocean surface boudaries
208
209      IF( ln_fwb     )   CALL flx_fwb( kstp )         ! freshwater budget
210
211      IF( nclosea == 1 ) CALL flx_clo( kstp )         ! closed sea in the domain (update freshwater fluxes)
212
213      IF( kstp == nit000 ) THEN
214         IF( ninist == 1 ) THEN                       ! Output the initial state and forcings
215            CALL dia_wri_state( 'output.init' )
216         ENDIF
217      ENDIF
218
219      IF(ln_ctl) THEN         ! print mean trends (used for debugging)
220         CALL prt_ctl(tab2d_1=emp    , clinfo1=' emp  -   : ', mask1=tmask, ovlap=1)
221         CALL prt_ctl(tab2d_1=emps   , clinfo1=' emps -   : ', mask1=tmask, ovlap=1)
222         CALL prt_ctl(tab2d_1=qt     , clinfo1=' qt   -   : ', mask1=tmask, ovlap=1)
223         CALL prt_ctl(tab2d_1=qsr    , clinfo1=' qsr  -   : ', mask1=tmask, ovlap=1)
224         CALL prt_ctl(tab2d_1=runoff , clinfo1=' runoff   : ', mask1=tmask, ovlap=1)
225         CALL prt_ctl(tab3d_1=tmask  , clinfo1=' tmask    : ', mask1=tmask, ovlap=1, kdim=jpk)
226         CALL prt_ctl(tab3d_1=tn     , clinfo1=' sst  -   : ', mask1=tmask, ovlap=1, kdim=1)
227         CALL prt_ctl(tab3d_1=sn     , clinfo1=' sss  -   : ', mask1=tmask, ovlap=1, kdim=1)
228         CALL prt_ctl(tab2d_1=taux   , clinfo1=' tau  - x : ', tab2d_2=tauy, clinfo2='      - y : ', ovlap=1)
229      ENDIF
230
231
232      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
233      ! Ocean physics update
234      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
235      !-----------------------------------------------------------------------
236      !  VERTICAL PHYSICS
237      !-----------------------------------------------------------------------
238      ! N.B. ua, va, ta, sa arrays are used as workspace in this section
239      !-----------------------------------------------------------------------
240
241                       CALL bn2( tb, sb, rn2 )              ! before Brunt-Vaisala frequency
242     
243      !                                                     ! Vertical eddy viscosity and diffusivity coefficients
244      IF( lk_zdfric )   CALL zdf_ric( kstp )                       ! Richardson number dependent Kz
245#if defined key_mpp_omp
246      IF( lk_zdftke )   CALL zdf_tke_jki( kstp )                   ! TKE closure scheme for Kz - j-k-i loops
247#else
248      IF( lk_zdftke )   CALL zdf_tke( kstp )                       ! TKE closure scheme for Kz
249#endif
250      IF( lk_zdfkpp )   CALL zdf_kpp( kstp )                       ! KPP closure scheme for Kz
251
252      IF( lk_zdfcst )   avt (:,:,:) = avt0 * tmask(:,:,:)          ! Constant Kz (reset avt to the background value)
253
254      IF( cp_cfg == "orca" ) THEN                           ! ORCA: Reduce vertical mixing in some specific areas
255         SELECT CASE ( jp_cfg )
256            CASE ( 05 )                         ! ORCA R2 configuration
257               avt  (:,:,2) = avt  (:,:,2) + 1.e-3 * upsrnfh(:,:)   ! increase diffusivity of rivers mouths
258            CASE ( 025 )                         ! ORCA R025 configuration
259               avt  (:,:,2) = avt  (:,:,2) + 2.e-3 * upsrnfh(:,:)   ! increase diffusivity of rivers mouths
260         END SELECT
261      ENDIF
262
263      IF( ln_zdfevd )   CALL zdf_evd( kstp )                 ! enhanced vertical eddy diffusivity
264
265      IF( lk_zdfddm .AND. .NOT. lk_zdfkpp)   &
266         &              CALL zdf_ddm( kstp )                 ! double diffusive mixing
267
268                        CALL zdf_bfr( kstp )                 ! bottom friction
269
270                        CALL zdf_mxl( kstp )                 ! mixed layer depth
271
272
273      !-----------------------------------------------------------------------
274      !  LATERAL PHYSICS
275      !-----------------------------------------------------------------------
276      ! N.B. ua, va, ta, sa arrays are used as workspace in this section
277      !-----------------------------------------------------------------------
278
279      IF( lk_ldfslp     )   CALL ldf_slp( kstp, rhd, rn2 )       ! before slope of the lateral mixing
280
281#if defined key_traldf_c2d
282      IF( lk_traldf_eiv )   CALL ldf_eiv( kstp )                 ! eddy induced velocity coefficient
283#endif
284
285
286#if defined key_passivetrc
287      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
288      ! Passive Tracer Model
289      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
290      ! N.B. ua, va, ta, sa arrays are used as workspace in this section
291      !-----------------------------------------------------------------------
292
293                             CALL trc_stp( kstp, indic )            ! time-stepping
294
295#endif
296
297
298      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
299      ! Active tracers
300      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
301      ! N.B. ua, va arrays are used as workspace in this section
302      !-----------------------------------------------------------------------
303
304                             ta(:,:,:) = 0.e0               ! set tracer trends to zero
305                             sa(:,:,:) = 0.e0
306
307                             CALL tra_sbc    ( kstp )       ! surface boundary condition
308
309      IF( ln_traqsr      )   CALL tra_qsr    ( kstp )       ! penetrative solar radiation qsr
310
311      IF( lk_trabbc      )   CALL tra_bbc    ( kstp )       ! bottom heat flux
312
313      IF( lk_trabbl_dif  )   CALL tra_bbl_dif( kstp )       ! diffusive bottom boundary layer scheme
314      IF( lk_trabbl_adv  )   CALL tra_bbl_adv( kstp )       ! advective (and/or diffusive) bottom boundary layer scheme
315
316      IF( lk_tradmp      )   CALL tra_dmp    ( kstp )       ! internal damping trends
317
318                             CALL tra_adv    ( kstp )       ! horizontal & vertical advection
319
320      IF( n_cla == 1     )   CALL tra_cla    ( kstp )       ! Cross Land Advection (Update Hor. advection)
321
322      IF( lk_zdfkpp )        CALL tra_kpp    ( kstp )       ! KPP non-local tracer fluxes
323
324                             CALL tra_ldf    ( kstp )       ! lateral mixing
325#if defined key_agrif
326      IF (.NOT. Agrif_Root())  CALL Agrif_Sponge_tra( kstp )          ! tracers sponge
327#endif
328                             CALL tra_zdf    ( kstp )       ! vertical mixing
329
330                             CALL tra_nxt( kstp )           ! tracer fields at next time step
331
332      IF( ln_zdfnpc      )   CALL tra_npc( kstp )           ! update the new (t,s) fields by non
333      !                                                     ! penetrative convective adjustment
334
335      IF( ln_dynhpg_imp  ) THEN                             ! semi-implicit hpg
336                               CALL eos( ta, sa, rhd, rhop )          ! Time-filtered in situ density used in dynhpg module
337         IF( ln_zps    )       CALL zps_hde( kstp, ta, sa, rhd,   &   ! Partial steps: time filtered hor. gradient
338            &                                     gtu, gsu, gru,  &   ! of t, s, rd at the bottom ocean level
339            &                                     gtv, gsv, grv )
340      ELSE                                                  ! centered hpg (default case)
341                               CALL eos( tb, sb, rhd, rhop )          ! now (swap=before) in situ density for dynhpg module
342         IF( ln_zps    )       CALL zps_hde( kstp, tb, sb, rhd,   &   ! Partial steps: now horizontal gradient
343            &                                     gtu, gsu, gru,  &   ! of t, s, rd at the bottom ocean level
344            &                                     gtv, gsv, grv )
345      ENDIF
346
347      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
348      ! Dynamics
349      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
350      ! N.B. ta, sa arrays are used as workspace in this section
351      !-----------------------------------------------------------------------
352
353
354                               ua(:,:,:) = 0.e0               ! set dynamics trends to zero
355                               va(:,:,:) = 0.e0
356
357                               CALL dyn_keg( kstp )           ! horizontal gradient of kinetic energy
358
359                               CALL dyn_vor( kstp )           ! vorticity term including Coriolis
360
361                               CALL dyn_ldf( kstp )           ! lateral mixing
362#if defined key_agrif
363      IF (.NOT. Agrif_Root())  CALL Agrif_Sponge_dyn( kstp )         ! momemtum sponge
364#endif
365                               CALL dyn_hpg( kstp )           ! horizontal gradient of Hydrostatic pressure
366
367                               CALL dyn_zad( kstp )           ! vertical advection
368
369                               CALL dyn_zdf( kstp )           ! vertical diffusion
370
371      IF( lk_dynspg_rl ) THEN
372         IF( lk_obc    )       CALL obc_spg( kstp )           ! surface pressure gradient at open boundaries
373      ENDIF
374                       indic=0
375!i bug lbc sur emp
376      CALL lbc_lnk( emp, 'T', 1. )
377!i
378                               CALL dyn_spg( kstp, indic )    ! surface pressure gradient
379
380                               CALL dyn_nxt( kstp )           ! lateral velocity at next time step
381
382
383      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
384      ! Computation of diagnostic variables
385      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
386      ! N.B. ua, va, ta, sa arrays are used as workspace in this section
387      !-----------------------------------------------------------------------
388
389                       CALL oc_fz_pt                        ! ocean surface freezing temperature
390
391                       CALL div_cur( kstp )                 ! Horizontal divergence & Relative vorticity
392
393      IF( n_cla == 1 ) CALL div_cla( kstp )                 ! Cross Land Advection (Update Hor. divergence)
394
395                       CALL wzv( kstp )                     ! Vertical velocity
396
397
398
399      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
400      ! Control, diagnostics and outputs
401      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
402      ! N.B. ua, va, ta, sa arrays are used as workspace in this section
403      !-----------------------------------------------------------------------
404
405      !                                            ! Time loop: control and print
406                       CALL stp_ctl( kstp, indic )
407                       IF ( indic < 0 ) CALL ctl_stop( 'step: indic < 0' ) 
408
409      IF ( nstop == 0 ) THEN
410         !                                         ! Diagnostics:
411         IF( lk_floats  )   CALL flo_stp( kstp )                 ! drifting Floats
412         IF( lk_trddyn  )   CALL trd_dwr( kstp )                 ! trends: dynamics
413         IF( lk_trdtra  )   CALL trd_twr( kstp )                 ! trends: active tracers
414         IF( lk_trdmld  )   CALL trd_mld( kstp )                 ! trends: Mixed-layer
415         IF( lk_trdvor  )   CALL trd_vor( kstp )                 ! trends: vorticity budget
416         IF( lk_diaspr  )   CALL dia_spr( kstp )                 ! Surface pressure diagnostics
417         IF( lk_diahth  )   CALL dia_hth( kstp )                 ! Thermocline depth (20 degres isotherm depth)
418         IF( lk_diagap  )   CALL dia_gap( kstp )                 ! basin averaged diagnostics
419         IF( lk_diahdy  )   CALL dia_hdy( kstp )                 ! dynamical heigh diagnostics
420         IF( lk_diafwb  )   CALL dia_fwb( kstp )                 ! Fresh water budget diagnostics
421         IF( ln_diaptr  )   CALL dia_ptr( kstp )                 ! Poleward TRansports diagnostics
422
423         !                                         ! save and outputs
424                            CALL rst_write  ( kstp )             ! ocean model: restart file output
425         IF( lk_obc     )   CALL obc_rst_wri( kstp )             ! ocean model: open boundary restart file output
426                            CALL dia_wri    ( kstp, indic )      ! ocean model: outputs
427
428      ENDIF
429
430      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
431      ! Coupled mode
432      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
433
434      IF( lk_cpl    )   CALL cpl_stp( kstp )                 ! coupled mode : field exchanges
435
436   END SUBROUTINE stp
437
438   !!======================================================================
439END MODULE step
Note: See TracBrowser for help on using the repository browser.