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 @ 375

Last change on this file since 375 was 349, checked in by opalod, 19 years ago

nemo_v1_update_031 : CT : change header names

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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_passivetrc
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 trc              ! ocean passive tracers variables
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
19   IMPLICIT NONE
20   PRIVATE
21
22   !! * Routine accessibility
23   PUBLIC trc_stp           ! called by step
24   !!----------------------------------------------------------------------
25   !!   TOP 1.0 , LOCEAN-IPSL (2005)
26   !! $Header$
27   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
28   !!----------------------------------------------------------------------
29
30CONTAINS
31
32   SUBROUTINE trc_stp( kt, kindic )
33      !!-------------------------------------------------------------------
34      !!                     ***  ROUTINE trc_stp  ***
35      !!                     
36      !! ** Purpose : Time loop of opa for passive tracer
37      !!
38      !! ** Method  :
39      !!              Compute the passive tracers trends
40      !!              Update the passive tracers
41      !!
42      !! History :
43      !!   9.0  !  04-03  (C. Ethe)  Original
44      !!-------------------------------------------------------------------
45      !! * Arguments
46      INTEGER, INTENT( in ) ::  kt  ! ocean time-step index
47      INTEGER, INTENT( in ) ::  kindic
48      CHARACTER (len=25) :: charout
49
50      IF( kt == nit000 )    CALL trc_dia( kt, kindic )     ! diagnostics init.
51
52      ! this ROUTINE is called only every ndttrc time step
53      IF( MOD( kt , ndttrc ) /= 0 ) RETURN
54
55      ! tracers: sink and source
56      IF(ln_ctl) THEN
57         WRITE(charout,FMT="('kt =', I4,'  d/m/y =',I2,I2,I4)") kt, nday, nmonth, nyear
58         CALL prt_ctl_trc_info(charout)
59      ENDIF
60
61
62      CALL trc_sms( kt )
63
64      IF(ln_ctl)   THEN  ! print mean trends (used for debugging)
65         WRITE(charout, FMT="('sms')")
66         CALL prt_ctl_trc_info(charout)
67         CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm)
68      ENDIF
69 
70
71      ! transport of passive tracers
72
73      CALL trc_trp( kt )
74
75      CALL trc_wri( kt )            ! outputs
76
77      CALL trc_dia( kt, kindic )     ! diagnostics
78
79
80   END SUBROUTINE trc_stp
81
82#else
83   !!----------------------------------------------------------------------
84   !!   Default key                                     NO passive tracers
85   !!----------------------------------------------------------------------
86CONTAINS
87   SUBROUTINE trc_stp( kt )        ! Empty routine
88      INTEGER, INTENT(in) :: kt
89      WRITE(*,*) 'trc_stp: You should not have seen this print! error?', kt
90   END SUBROUTINE trc_stp
91#endif
92
93   !!======================================================================
94END MODULE trcstp
Note: See TracBrowser for help on using the repository browser.