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

source: trunk/NEMO/TOP_SRC/initrc.F90 @ 489

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

nemo_v1_update_030:RB: small correction in step when calling passive tracers,

add control print at tracers initialization

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1MODULE initrc
2   !!================================================
3   !!
4   !!                       *** MODULE initrc ***
5   !! Initialisation the tracer model
6   !!================================================
7                                                                                                                           
8#if defined key_passivetrc
9
10   !!-------------------------------------------------------
11   !!  TOP 1.0,  LOCEAN-IPSL (2005)
12   !! $Header$
13   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
14   !!-------------------------------------------------------
15
16   !!--------------------------------------------------------------
17   !! * Modules used
18   !! ==============
19   USE oce_trc
20   USE trc
21   USE trcrst
22   USE trcctl
23   USE trclec
24   USE trcdtr
25   USE trcini
26   USE prtctl_trc      ! Print control passive tracers (prt_ctl_trc_init routine)
27   
28   IMPLICIT NONE
29   PRIVATE
30   
31   
32   !! * Accessibility
33   PUBLIC ini_trc
34   
35CONTAINS
36   
37   SUBROUTINE ini_trc
38      !!---------------------------------------------------------------------
39      !!
40      !!                       ROUTINE ini_trc
41      !!                     ******************
42      !!
43      !!  PURPOSE :
44      !!  ---------
45      !!     initialize the tracer model
46      !!
47      !!   METHOD :
48      !!   -------
49      !!
50      !!
51      !!   History:
52      !!   -------
53      !!      original  : 91-03 ()
54      !!      additions : 92-01 (C. Levy)
55      !!                  05-03 (O. Aumont and A. El Moussaoui) F90
56      !!                  05-10 (C. Ethe ) print control initialization
57      !!----------------------------------------------------------------------
58
59      !!---------------------------------------------------------------------
60      !!  OPA.9, 03-2005
61      !!---------------------------------------------------------------------
62
63      !! 0.b PRINT the number of tracer
64      !! ------------------------------
65
66      IF(lwp) WRITE(numout,*) ' '
67      IF(lwp) WRITE(numout,*) ' *** number of passive tracer jptra = ',jptra
68      IF(lwp) WRITE(numout,*) ' '
69
70      ! 1. READ passive tracers namelists
71      ! ---------------------------------
72
73      CALL trc_lec
74
75      ! 2. control consistency between parameters, cpp key and namelists
76      ! ----------------------------------------------------------------
77
78      CALL trc_ctl
79
80      ! 3. computes some initializations
81      ! --------------------------------
82
83      CALL trc_ini
84
85      ! 4. restart from a FILE (nutrst)
86      ! ----------------------
87
88      IF( lrsttr ) THEN
89
90
91         CALL trc_rst
92
93      ELSE
94
95         ! start from anything ELSE
96
97         CALL trc_dtr
98
99      ENDIF
100
101      ! 5. Print control
102      !------------------
103
104      IF( ln_ctl )    CALL prt_ctl_trc_init
105
106   END SUBROUTINE ini_trc
107
108#else
109   !!======================================================================
110   !!  Empty module : No passive tracer
111   !!======================================================================
112CONTAINS
113   SUBROUTINE ini_trc
114     
115   END SUBROUTINE ini_trc
116#endif
117
118END MODULE initrc 
Note: See TracBrowser for help on using the repository browser.