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/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/MY_TRC – NEMO

source: branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcini_my_trc.F90 @ 5601

Last change on this file since 5601 was 5601, checked in by cbricaud, 9 years ago

commit changes/bugfix/... for crs ; ok with time-splitting/fixed volume

  • Property svn:keywords set to Id
File size: 2.9 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   USE dom_oce, ONLY : gdepw_1d,e3t_1d,nyear_len
19
20   IMPLICIT NONE
21   PRIVATE
22
23   PUBLIC   trc_ini_my_trc   ! called by trcini.F90 module
24
25   !!----------------------------------------------------------------------
26   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
27   !! $Id$
28   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
29   !!----------------------------------------------------------------------
30CONTAINS
31
32   SUBROUTINE trc_ini_my_trc
33      !!----------------------------------------------------------------------
34      !!                     ***  trc_ini_my_trc  *** 
35      !!
36      !! ** Purpose :   initialization for MY_TRC model
37      !!
38      !! ** Method  : - Read the namcfc namelist and check the parameter values
39      !!----------------------------------------------------------------------
40
41      !                       ! Allocate MY_TRC arrays
42      IF( trc_sms_my_trc_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'trc_ini_my_trc: unable to allocate MY_TRC arrays' )
43
44      IF(lwp) WRITE(numout,*)
45      IF(lwp) WRITE(numout,*) ' trc_ini_my_trc: initialisation of MY_TRC model'
46      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~'
47
48      nlb_age = MINLOC( gdepw_1d, mask = gdepw_1d > age_depth, dim = 1  )
49      nl_age = nlb_age - 1
50      nla_age = nl_age - 1
51      frac_kill_age = (age_depth - gdepw_1d(nl_age))/e3t_1d(nl_age)
52      frac_add_age = 1._wp -  frac_kill_age
53      rryear = 1._wp / ( nyear_len(1) * rday )
54
55     
56      IF( .NOT. ln_rsttr ) trb(:,:,:,jp_myt0:jp_myt1) = 0.
57      IF( .NOT. ln_rsttr ) trn(:,:,:,jp_myt0:jp_myt1) = 0.
58      !
59   END SUBROUTINE trc_ini_my_trc
60
61#else
62   !!----------------------------------------------------------------------
63   !!   Dummy module                                        No MY_TRC model
64   !!----------------------------------------------------------------------
65CONTAINS
66   SUBROUTINE trc_ini_my_trc             ! Empty routine
67   END SUBROUTINE trc_ini_my_trc
68#endif
69
70   !!======================================================================
71END MODULE trcini_my_trc
Note: See TracBrowser for help on using the repository browser.