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.
trcini_my_trc.F90 in branches/UKMO/dev_r5107_eorca025_closea/NEMOGCM/NEMO/TOP_SRC/MY_TRC – NEMO

source: branches/UKMO/dev_r5107_eorca025_closea/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcini_my_trc.F90 @ 5307

Last change on this file since 5307 was 5307, checked in by davestorkey, 9 years ago

UKMO dev_r5107_eorca025_closea branch: remove SVN keyword updating
and clear SVN keyword information.

File size: 2.5 KB
Line 
1MODULE trcini_my_trc
2   !!======================================================================
3   !!                         ***  MODULE trcini_my_trc  ***
4   !! TOP :   initialisation of the MY_TRC tracers
5   !!======================================================================
6   !! History :   2.0  !  2007-12  (C. Ethe, G. Madec) Original code
7   !!----------------------------------------------------------------------
8#if defined key_my_trc
9   !!----------------------------------------------------------------------
10   !!   'key_my_trc'                                               CFC tracers
11   !!----------------------------------------------------------------------
12   !! trc_ini_my_trc   : MY_TRC model initialisation
13   !!----------------------------------------------------------------------
14   USE par_trc         ! TOP parameters
15   USE oce_trc
16   USE trc
17   USE trcsms_my_trc
18
19   IMPLICIT NONE
20   PRIVATE
21
22   PUBLIC   trc_ini_my_trc   ! called by trcini.F90 module
23
24   !!----------------------------------------------------------------------
25   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
26   !! $Id$
27   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
28   !!----------------------------------------------------------------------
29CONTAINS
30
31   SUBROUTINE trc_ini_my_trc
32      !!----------------------------------------------------------------------
33      !!                     ***  trc_ini_my_trc  *** 
34      !!
35      !! ** Purpose :   initialization for MY_TRC model
36      !!
37      !! ** Method  : - Read the namcfc namelist and check the parameter values
38      !!----------------------------------------------------------------------
39
40      !                       ! Allocate MY_TRC arrays
41      IF( trc_sms_my_trc_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'trc_ini_my_trc: unable to allocate MY_TRC arrays' )
42
43      IF(lwp) WRITE(numout,*)
44      IF(lwp) WRITE(numout,*) ' trc_ini_my_trc: initialisation of MY_TRC model'
45      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~'
46     
47      IF( .NOT. ln_rsttr ) trn(:,:,:,jp_myt0:jp_myt1) = 0.
48      !
49   END SUBROUTINE trc_ini_my_trc
50
51#else
52   !!----------------------------------------------------------------------
53   !!   Dummy module                                        No MY_TRC model
54   !!----------------------------------------------------------------------
55CONTAINS
56   SUBROUTINE trc_ini_my_trc             ! Empty routine
57   END SUBROUTINE trc_ini_my_trc
58#endif
59
60   !!======================================================================
61END MODULE trcini_my_trc
Note: See TracBrowser for help on using the repository browser.