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.
trcstp.F90 in trunk/NEMO/TOP_SRC/TRP – NEMO

source: trunk/NEMO/TOP_SRC/TRP/trcstp.F90 @ 1189

Last change on this file since 1189 was 1189, checked in by cetlod, 16 years ago

update transport modules to take into account new trends organization, see ticket:248

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1MODULE trcstp
2   !!======================================================================
3   !!                       ***  MODULE trcstp  ***
4   !! Time-stepping    : time loop of opa for passive tracer
5   !!======================================================================
6#if defined key_top
7   !!----------------------------------------------------------------------
8   !!   trc_stp      : passive tracer system time-stepping
9   !!----------------------------------------------------------------------
10   !! * Modules used
11   USE oce_trc          ! ocean dynamics and active tracers variables
12   USE trp_trc
13   USE trctrp           ! passive tracers transport
14   USE trcsms           ! passive tracers sources and sinks
15   USE prtctl_trc       ! Print control for debbuging
16   USE trcdia
17   USE trcrst
18   USE trdmld_trc_oce
19   USE trdmld_trc
20
21   IMPLICIT NONE
22   PRIVATE
23
24   !! * Routine accessibility
25   PUBLIC trc_stp           ! called by step
26   !!----------------------------------------------------------------------
27   !!   TOP 1.0 , LOCEAN-IPSL (2005)
28   !! $Id$
29   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
30   !!----------------------------------------------------------------------
31
32CONTAINS
33
34   SUBROUTINE trc_stp( kt, kindic )
35      !!-------------------------------------------------------------------
36      !!                     ***  ROUTINE trc_stp  ***
37      !!                     
38      !! ** Purpose : Time loop of opa for passive tracer
39      !!
40      !! ** Method  :
41      !!              Compute the passive tracers trends
42      !!              Update the passive tracers
43      !!
44      !! History :
45      !!   9.0  !  04-03  (C. Ethe)  Original
46      !!-------------------------------------------------------------------
47      !! * Arguments
48      INTEGER, INTENT( in ) ::  kt  ! ocean time-step index
49      INTEGER, INTENT( in ) ::  kindic
50      CHARACTER (len=25)    ::  charout
51
52      ! this ROUTINE is called only every ndttrc time step
53      IF( MOD( kt , ndttrc ) /= 0 ) RETURN
54
55      IF(ln_ctl) THEN
56         WRITE(charout,FMT="('kt =', I4,'  d/m/y =',I2,I2,I4)") kt, nday, nmonth, nyear
57         CALL prt_ctl_trc_info(charout)
58      ENDIF
59
60                             CALL trc_rst_opn( kt )       ! Open tracer restart file
61
62                             CALL trc_sms( kt )           ! tracers: sink and source
63
64                             CALL trc_trp( kt )           ! transport of passive tracers
65
66      IF( lrst_trc )         CALL trc_rst_wri( kt )       ! write tracer restart file
67
68                             CALL trc_dia( kt, kindic )   ! diagnostics
69
70      IF( lk_trdmld_trc  )   CALL trd_mld_trc( kt )     ! trends: Mixed-layer
71
72   END SUBROUTINE trc_stp
73
74#else
75   !!----------------------------------------------------------------------
76   !!   Default key                                     NO passive tracers
77   !!----------------------------------------------------------------------
78CONTAINS
79   SUBROUTINE trc_stp( kt )        ! Empty routine
80      INTEGER, INTENT(in) :: kt
81      WRITE(*,*) 'trc_stp: You should not have seen this print! error?', kt
82   END SUBROUTINE trc_stp
83#endif
84
85   !!======================================================================
86END MODULE trcstp
Note: See TracBrowser for help on using the repository browser.