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

Last change on this file since 433 was 345, checked in by opalod, 19 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
RevLine 
[259]1MODULE initrc
[335]2   !!================================================
[259]3   !!
4   !!                       *** MODULE initrc ***
5   !! Initialisation the tracer model
[335]6   !!================================================
7                                                                                                                           
8#if defined key_passivetrc
[274]9
[335]10   !!-------------------------------------------------------
[340]11   !!  TOP 1.0,  LOCEAN-IPSL (2005)
12   !! $Header$
13   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
[335]14   !!-------------------------------------------------------
[274]15
[335]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
[345]26   USE prtctl_trc      ! Print control passive tracers (prt_ctl_trc_init routine)
[335]27   
28   IMPLICIT NONE
29   PRIVATE
30   
31   
[259]32   !! * Accessibility
33   PUBLIC ini_trc
[335]34   
[259]35CONTAINS
[335]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)
[345]55      !!                  05-03 (O. Aumont and A. El Moussaoui) F90
56      !!                  05-10 (C. Ethe ) print control initialization
[335]57      !!----------------------------------------------------------------------
[259]58
[335]59      !!---------------------------------------------------------------------
60      !!  OPA.9, 03-2005
61      !!---------------------------------------------------------------------
[259]62
[335]63      !! 0.b PRINT the number of tracer
64      !! ------------------------------
[259]65
66      IF(lwp) WRITE(numout,*) ' '
67      IF(lwp) WRITE(numout,*) ' *** number of passive tracer jptra = ',jptra
68      IF(lwp) WRITE(numout,*) ' '
69
[335]70      ! 1. READ passive tracers namelists
71      ! ---------------------------------
[259]72
73      CALL trc_lec
74
[335]75      ! 2. control consistency between parameters, cpp key and namelists
76      ! ----------------------------------------------------------------
[259]77
78      CALL trc_ctl
79
[335]80      ! 3. computes some initializations
81      ! --------------------------------
[259]82
83      CALL trc_ini
84
[335]85      ! 4. restart from a FILE (nutrst)
86      ! ----------------------
[259]87
[335]88      IF( lrsttr ) THEN
[259]89
90
[335]91         CALL trc_rst
92
[259]93      ELSE
94
[335]95         ! start from anything ELSE
[259]96
[335]97         CALL trc_dtr
[259]98
99      ENDIF
100
[345]101      ! 5. Print control
102      !------------------
103
104      IF( ln_ctl )    CALL prt_ctl_trc_init
105
[335]106   END SUBROUTINE ini_trc
[259]107
108#else
[335]109   !!======================================================================
110   !!  Empty module : No passive tracer
111   !!======================================================================
112CONTAINS
113   SUBROUTINE ini_trc
114     
115   END SUBROUTINE ini_trc
[259]116#endif
117
118END MODULE initrc 
Note: See TracBrowser for help on using the repository browser.