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

source: trunk/NEMO/TOP_SRC/trcini.F90 @ 331

Last change on this file since 331 was 274, checked in by opalod, 19 years ago

nemo_v1_update_005:RB: update headers for the TOP component.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1MODULE trcini
2   !!==========================================================================
3   !!
4   !!                       *** MODULE trcini ***
5   !!
6   !! Initialization for passive tracer (for restart or not) 
7   !!     
8   !!=========================================================================
9   !!  TOP 1.0,  LOCEAN-IPSL (2005)
10   !! $Header$
11   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
12   !!----------------------------------------------------------------------
13                                                                                                                     
14      !! * Modules used
15      !! ==============
16      USE ioipsl
17      USE oce_trc
18      USE trc
19      USE sms
20      USE lib_mpp
21
22     IMPLICIT NONE
23     PRIVATE
24
25    !! * Accessibility
26    PUBLIC trc_ini
27
28CONTAINS
29
30#if defined key_passivetrc
31
32 SUBROUTINE trc_ini
33!!---------------------------------------------------------------------
34!!                       ROUTINE trcini
35!!                     ******************
36!!  PURPOSE :
37!!  ---------
38!!     initialization for passive tracer
39!!     for restart or not
40!!
41!!   WORKSPACE :
42!!   ---------
43!!      ji jj jk
44!!
45!!   History:
46!!   --------
47!!                 04/00 (O. Aumont, M.A. Foujols) HAMOCC3 and P3ZD
48!!                 03/05  O.Aumont and A.El Moussaoui  F90
49!!----------------------------------------------------------------------
50!!----------------------------------------------------------------------
51!! local declarations
52!! ==================
53
54      INTEGER :: ji,jj,jk,jn,jl
55
56!!----------------------------------------------------------------------
57!! statement functions
58!! ===================
59
60#include "passivetrc_substitute.h90"
61
62!!---------------------------------------------------------------------
63!!  OPA.9   
64!!---------------------------------------------------------------------
65
66#    if defined key_trc_npzd
67#    include "trcini.npzd.h90"
68#    elif defined key_trc_lobster1
69#    include "trcini.lobster1.h90"
70#    elif defined key_trc_hamocc3
71#    include "trcini.hamocc3.h90"
72#    elif defined key_trc_pisces
73#    include "trcini.pisces.h90"
74#    else
75
76! Specific initialization to do
77!!-----------------------------
78#    endif
79
80!! 1. initialization of passives tracers field
81!! -------------------------------------------
82      DO jn=1,jptra
83              trn(:,:,:,jn)=0.e0
84              tra(:,:,:,jn)=0.e0
85      END DO
86
87#if defined key_trc_diaadd
88!! initialization of output 2d and 3d arrays
89
90      DO jn=1,jpdia2d
91            trc2d(:,:,jn)=0.e0
92      END DO
93      DO jn=1,jpdia3d
94              trc3d(:,:,:,jn)=0.e0
95      END DO
96#endif
97
98#if defined key_trc_diabio
99   !! initialization of biological trends
100      DO jn=1,jpdiabio
101              trbio(ji,jj,jk,jn)=0.e0
102      END DO
103#endif
104
105#if defined key_trc_diatrd
106   !! initialization of tracer trends
107      DO jl=1,jpdiatrc
108        DO jn=1,jptra
109                trtrd(:,:,:,jn,jl)=0.e0
110        END DO
111      END DO
112#endif     
113     
114      IF(lwp) THEN
115          WRITE(numout,*) ' '
116          WRITE(numout,*) ' trcini: generic initialisation done '
117          WRITE(numout,*) ' '
118      ENDIF
119
120END SUBROUTINE trc_ini
121
122#else
123
124SUBROUTINE trc_ini
125
126   !! no passive tracers
127   !!===================
128END SUBROUTINE trc_ini
129
130#endif
131
132END MODULE trcini
Note: See TracBrowser for help on using the repository browser.