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

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

CL : Add CVS Header and CeCILL licence information

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 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
15   IMPLICIT NONE
16   PRIVATE
17
18   !! * Routine accessibility
19   PUBLIC trc_stp           ! called by step
20   !!----------------------------------------------------------------------
21   !!   TOP 1.0 , LOCEAN-IPSL (2005)
22   !! $Header$
23   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
24   !!----------------------------------------------------------------------
25
26CONTAINS
27
28   SUBROUTINE trc_stp( kt )
29      !!-------------------------------------------------------------------
30      !!                     ***  ROUTINE trc_stp  ***
31      !!                     
32      !! ** Purpose : Time loop of opa for passive tracer
33      !!
34      !! ** Method  :
35      !!              Compute the passive tracers trends
36      !!              Update the passive tracers
37      !!
38      !! History :
39      !!   9.0  !  04-03  (C. Ethe)  Original
40      !!-------------------------------------------------------------------
41      !! * Arguments
42      INTEGER, INTENT( in ) ::  kt  ! ocean time-step index
43
44
45      ! this ROUTINE is called only every ndttrc time step
46      IF( MOD( kt , ndttrc ) /= 0 ) RETURN
47
48      ! tracers: sink and source
49
50
51      CALL trcsms( kt )
52 
53
54      ! transport of passive tracers
55
56      CALL trc_trp( kt )
57
58
59   END SUBROUTINE trc_stp
60
61#else
62   !!----------------------------------------------------------------------
63   !!   Default key                                     NO passive tracers
64   !!----------------------------------------------------------------------
65CONTAINS
66   SUBROUTINE trc_stp( kt )        ! Empty routine
67      INTEGER, INTENT(in) :: kt
68      WRITE(*,*) 'trc_stp: You should not have seen this print! error?', kt
69   END SUBROUTINE trc_stp
70#endif
71
72   !!======================================================================
73END MODULE trcstp
Note: See TracBrowser for help on using the repository browser.