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

Last change on this file since 489 was 439, checked in by opalod, 18 years ago

nemo_v1_update_045 : CT : modifications to be able to run 1D on-line & off-line passive tracers configurations

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