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

source: trunk/NEMO/TOP_SRC/oce_trc.F90 @ 247

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

CL : Add CVS Header and CeCILL licence information

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.7 KB
Line 
1MODULE oce_trc
2   !!======================================================================
3   !!                      ***  MODULE  oce_trc  ***
4   !! Ocean passive tracer  :  share ocean-passive tracers variables
5   !!======================================================================
6   !! History :
7   !!   9.0  !  04-03  (C. Ethe)  F90: Free form and module
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   !! * Modules used
14   !! Domain characteristics
15   USE par_oce , ONLY :       &
16      cp_cfg   =>   cp_cfg,  & !: name of the configuration
17      jp_cfg   =>   jp_cfg,  & !: resolution of the configuration
18      jpiglo   =>   jpiglo,  & !: first  dimension of global domain --> i
19      jpjglo   =>   jpjglo,  & !: second dimension of global domain --> j
20      jpi      =>   jpi   ,  & !: first  dimension of grid --> i
21      jpj      =>   jpj   ,  & !: second dimension of grid --> j 
22      jpk      =>   jpk   ,  & !: number of levels 
23      jpim1    =>   jpim1 ,  & !: jpi - 1
24      jpjm1    =>   jpjm1 ,  & !: jpj - 1
25      jpkm1    =>   jpkm1 ,  & !: jpk - 1 
26      jpij     =>   jpij  ,  & !: jpi x jpj
27      jpidta   =>   jpidta,  & !: first horizontal dimension  > or = jpi
28      jpjdta   =>   jpjdta,  & !: second horizontal dimension > or = jpj
29      jpkdta   =>   jpkdta,  & !: number of levels            > or = jpk
30      lk_esopa =>   lk_esopa   !: flag to activate the all option
31
32
33   !! namelist parameters     
34   USE in_out_manager , ONLY :  &   
35      cexper   =>   cexper,  & !: experience name for vairmer format
36      no       =>   no    ,  & !: job number
37      nrstdt   =>   nrstdt,  & !: control of the time step (0,  & 1 or 2)
38      nit000   =>   nit000,  & !: number of the first time step
39      nitend   =>   nitend,  & !: number of the last time step
40      nleapy   =>   nleapy,  & !: Leap year calendar (0/1)
41      nwrite   =>   nwrite,  & !: frequency of OUTPUT file
42      nstock   =>   nstock,  & !: frequency of restart file
43      lwp      =>   lwp   ,  & !: boolean term for mpp output
44      l_ctl    =>   l_ctl ,  & !: = ln_ctl.AND.lwp (print control on the 1st proc)
45      nictl    =>   nictl ,  & !: = max i indice to make the control SUM
46      njctl    =>   njctl ,  & !: = max j indice to make the control SUM
47      numout   =>   numout,  & !: logical unit for output print
48      numwrs   =>   numwrs     !: logical unit for output restart
49
50   !! run controm   
51   USE in_out_manager , ONLY :  & 
52      nstop     =>   nstop    ,  &  !: e r r o r  flag (=number of reason for a
53      !                             !                   prematurely stop the run)
54      nwarn     =>   nwarn    ,  &  !: w a r n i n g  flag (=number of warning
55      !                             !                   found during the run)
56      cform_err =>   cform_err,  &  !:
57      cform_war =>   cform_war      !: 
58     
59   USE dom_oce , ONLY :           &           
60      lzoom      => lzoom     ,  & !: zoom flag
61      lzoom_e    => lzoom_e   ,  & !: East  zoom type flag
62      lzoom_w    => lzoom_w   ,  & !: West  zoom type flag
63      lzoom_s    => lzoom_s   ,  & !: South zoom type flag
64      lzoom_n    => lzoom_n   ,  & !: North zoom type flag
65      lzoom_arct => lzoom_arct,  & !: ORCA    arctic zoom flag
66      lzoom_anta => lzoom_anta     !: ORCA antarctic zoom flag
67
68
69
70   USE dom_oce , ONLY :       & 
71      nperio   =>   nperio,  & !: type of lateral boundary condition       
72      nlci     =>   nlci  ,  & !: index i for the sub domain left bottom
73      nlcj     =>   nlcj  ,  & !: index j for the sub domain left bottom
74      nimpp    =>   nimpp ,  & !: i index for mpp-subdomain left bottom
75      njmpp    =>   njmpp ,  & !: j index for mpp-subdomain left bottom
76      mig      =>   mig   ,  & !: local  ==> global  domain i-indice
77      mjg      =>   mjg   ,  & !: local  ==> global  domain i-indice
78      mi0      =>   mi0   ,  & !: global ==> local domain i-indice
79      mi1      =>   mi1   ,  & !: (mi0=1 and mi1=0 if the global indice is not in the local domain)
80      mj0      =>   mj0   ,  & !: global ==> local domain j-indice
81      mj1      =>   mj1        !: (mj0=1 and mj1=0 if the global indice is not in the local domain)
82     
83      !! horizontal curvilinear coordinate and scale factors
84   USE dom_oce , ONLY :            &   
85      glamt    =>   glamt ,  & !: longitude of t-point (degre) 
86      glamu    =>   glamu ,  & !: longitude of t-point (degre) 
87      glamv    =>   glamv ,  & !: longitude of t-point (degre) 
88      glamf    =>   glamf ,  & !: longitude of t-point (degre) 
89      gphit    =>   gphit ,  & !: latitude  of t-point (degre)   
90      gphiu    =>   gphiu ,  & !: latitude  of t-point (degre)   
91      gphiv    =>   gphiv ,  & !: latitude  of t-point (degre)   
92      gphif    =>   gphif ,  & !: latitude  of t-point (degre)   
93      e1t      =>   e1t   ,  & !: horizontal scale factors at t-point (m) 
94      e2t      =>   e2t   ,  & !: horizontal scale factors at t-point (m)   
95      e1u      =>   e1u   ,  & !: horizontal scale factors at u-point (m)
96      e2u      =>   e2u   ,  & !: horizontal scale factors at u-point (m)
97      e1v      =>   e1v   ,  & !: horizontal scale factors at v-point (m)
98      e2v      =>   e2v        !: horizontal scale factors at v-point (m) 
99
100   !! vertical coordinate and scale factors
101   USE dom_oce , ONLY :              &   
102      gdept    =>   gdept ,  & !: reference depth of t-points (m)
103      e3t      =>   e3t   ,  & !: reference depth of t-points (m) 
104      e3w      =>   e3w   ,  & !: reference depth of w-points (m)
105      gdepw    =>   gdepw      !: reference depth of w-points (m)
106
107   USE dom_oce ,   ONLY :            &     
108      lk_zps   =>  lk_zps ,  & !: partial steps flag
109      lk_sco   =>  lk_sco ,  & !: s-coordinate flag
110      lk_zco   =>  lk_zco      !: z-coordinate flag
111
112   USE lib_mpp ,   ONLY :            &     
113      lk_mpp   =>  lk_mpp      !: Mpp flag
114
115   USE dynspg_fsc ,   ONLY :            &     
116      lk_dynspg_fsc   =>  lk_dynspg_fsc      !: free surface constant volume flag
117
118   USE dynspg_fsc_atsk ,   ONLY :            &     
119      lk_dynspg_fsc_tsk   =>  lk_dynspg_fsc_tsk      !: free surface constant volume flag
120
121#if defined key_partial_steps
122   !! Partial steps ('key_partial_steps')
123   !! -----------------------------------
124   USE dom_oce , ONLY :                & 
125      gdep3w   =>  gdep3w  ,  & !: ???
126      gdept_ps =>  gdept_ps,  & !: depth of t-points (m)
127      gdepw_ps =>  gdepw_ps,  & !: depth of t-points (m)
128      e3t_ps   =>  e3t_ps  ,  & !: vertical scale factors at t-
129      e3u_ps   =>  e3u_ps  ,  & !: vertical scale factors at u-
130      e3v_ps   =>  e3v_ps  ,  & !: vertical scale factors v-
131      e3w_ps   =>  e3w_ps  ,  & !: w-points (m)
132      e3f_ps   =>  e3f_ps  ,  & !: f-points (m)
133      e3uw_ps  =>  e3uw_ps ,  & !: uw-points (m)
134      e3vw_ps  =>  e3vw_ps      !: vw-points (m)
135
136   USE oce , ONLY :                &
137      gtu   =>  gtu  ,  & !: t- horizontal gradient at u-
138      gtv   =>  gtv       !: and v-points at bottom ocean level
139#endif
140
141#if defined key_s_coord
142   USE dom_oce , ONLY :              &   
143      hbatt   =>   hbatt  ,  & !: ocean depth at the vertical of  t-point (m)
144      hbatu   =>   hbatu  ,  & !: ocean depth at the vertical of  u-point (m)
145      hbatv   =>   hbatv  ,  & !: ocean depth at the vertical of w-point (m)
146      hbatf   =>   hbatw  ,  & !: ocean depth at the vertical of f-point (m)
147      gsigt   =>   gsigt  ,  & !: model level depth coefficient at t-,  & w-levelsvertical scale factors at u-
148      gsigw   =>   gsigw  ,  & !: model level depth coefficient at t-,  & w-levelsvertical scale factors v-
149      gsi3w   =>   gsi3w  ,  & !: model level depth coef at w-levels (defined as the sum of e3w)
150      esigt   =>   esigt  ,  & !: vertical scale factor coef. at t-levels
151      esigw   =>   esigw       !: vertical scale factor coef. at w-levels
152#endif
153
154   !! masks, bathymetry
155   USE dom_oce , ONLY :             &   
156      mbathy   =>   mbathy,  & !: number of ocean level (=0,  & 1, ... , jpk-1)
157      tmask    =>   tmask ,  & !: land/ocean mask at t-points
158      umask    =>   umask ,  & !: land/ocean mask at u-points   
159      vmask    =>   vmask ,  & !: land/ocean mask at v-points
160      fmask    =>   fmask      !: land/ocean mask at f-points
161
162   USE dom_oce , ONLY :         &
163      n_cla   =>   n_cla       !: flag (0/1) for cross land advection
164
165   !! time domain
166   USE dom_oce , ONLY :                 &
167      neuler   =>   neuler,  & !: restart euler forward option (0=Euler)
168      rdt      =>   rdt   ,  & !: time step for the dynamics
169      atfp     =>   atfp  ,  & !: asselin time filter parameter
170      atfp1    =>   atfp1 ,  & !: asselin time filter coeff. (atfp1= 1-2*atfp)
171      rdttra   =>   rdttra     !: vertical profile of tracer time step
172
173   USE daymod , ONLY :                 &
174      ndastp    =>   ndastp,  & !: time step date in year/month/day aammjj
175      nday_year =>   nday_year  !: curent day counted from jan 1st of the current year
176
177   !! physical constants
178   USE phycst ,   ONLY :                & 
179      ra       =>   ra    ,  & !: earth radius
180      rpi      =>   rpi   ,  & !: pi
181      rday     =>   rday  ,  & !: day
182      rauw     =>   rauw  ,  & !: density of pure water kg/m3
183      ro0cpr   =>   ro0cpr,  & !: = 1. / ( rau0 * rcp )
184      rad      =>   rad   ,  & !: conversion coeff. from degre into radian
185      raass    =>   raass ,  & !: number of seconds in one year
186      rmoss    =>   rmoss ,  & !: number of seconds in one month
187      rjjss    =>   rjjss      !: number of seconds in one day
188
189   !! present fields (now)
190   USE oce , ONLY :            &     
191      ua      =>    ua    ,  & !: i-horizontal velocity (m s-1)
192      va      =>    va    ,  & !: j-horizontal velocity (m s-1)
193      un      =>    un    ,  & !: i-horizontal velocity (m s-1)
194      vn      =>    vn    ,  & !: j-horizontal velocity (m s-1)
195      wn      =>    wn    ,  & !: vertical velocity (m s-1) 
196      tn      =>    tn    ,  & !: pot. temperature (celsius)
197      sn      =>    sn    ,  & !: salinity (psu)
198      rhop    =>    rhop       !: potential volumic mass (kg m-3)
199
200#if defined key_flx_bulk_monthly || defined key_flx_bulk_daily
201   !! wind speed
202   USE blk_oce , ONLY :        &     
203      vatm    =>    vatm       !: wind speed at sea surface (m s-1)
204#endif
205
206   !! wind speed
207   USE taumod , ONLY :        &     
208      taux    =>    taux ,  &  !: i-surface stress component
209      tauy    =>    tauy       !: j-surface stress component
210
211#if   defined key_trabbl_dif   ||   defined key_trabbl_adv
212   USE trabbl , ONLY :           &     
213      atrbbl   =>   atrbbl     !: lateral coeff. for bottom boundary layer scheme (m2/s)
214#endif
215
216   !! lateral diffusivity (tracers)
217   USE ldftra_oce ,   ONLY :             &   
218      aht0    =>   aht0  ,  &  !: horizontal eddy diffusivity for tracers (m2/s)
219      ahtb0   =>   ahtb0 ,  &  !: background eddy diffusivity for isopycnal diff. (m2/s)
220      ahtu    =>   ahtu  ,  &  !: lateral diffusivity coef. at u-points
221      ahtv    =>   ahtv  ,  &  !: lateral diffusivity coef. at v-points
222      ahtw    =>   ahtw  ,  &  !: lateral diffusivity coef. at w-points
223      ahtt    =>   ahtt  ,  &  !: lateral diffusivity coef. at t-points
224      aeiv0   =>   aeiv0 ,  &  !: eddy induced velocity coefficient (m2/s)
225      aeiu    =>   aeiu  ,  &  !: eddy induced velocity coef. at u-points (m2/s)   
226      aeiv    =>   aeiv  ,  &  !: eddy induced velocity coef. at v-points (m2/s)
227      aeiw    =>   aeiw        !: eddy induced velocity coef. at w-points (m2/s)
228
229   !! vertical diffusion
230   USE zdf_oce , ONLY :      &   
231      avt     =>   avt    ,  & !: vert. diffusivity coef. at w-point for temp 
232      avm0    =>   avm0   ,  & !: vertical eddy viscosity for the dynamic (m2/s)
233      avt0    =>   avt0        !: vertical eddy diffusivity for tracers (m2/s)
234
235#if defined key_zdfddm
236   USE zdfddm , ONLY :             &     
237      avs     =>    avs        !: salinity vertical diffusivity coeff. at w-point
238#endif
239
240   !! penetrative solar radiation
241   USE traqsr , ONLY :            &     
242      xsi1   =>   xsi1         !: first depth of extinction
243
244   !! surface fluxes
245   USE ocesbc , ONLY :             &   
246      qt      =>    qt    ,  & !: total surface heat flux (w m-2)   
247      qsr     =>    qsr   ,  & !: penetrative solar radiation (w m-2) 
248      emp     =>    emp   ,  & !: evaporation minus precipitation (kg m-2 s-2)
249      emps    =>    emps       !: evaporation minus precipitation (kg m-2 s-2)
250
251   !! freezing area
252   USE ocfzpt , ONLY :            &     
253      freeze  =>    freeze,  & !: ice mask (0 or 1) 
254      fzptn   =>    fzptn      !: now freezing temperature at ocean surface 
255
256
257   !! mixing layer depth (turbocline)
258   USE zdfmxl , ONLY :             &   
259      hmld    =>   hmld   ,  & !: mixing layer depth (turbocline)
260      hmlp    =>   hmlp        !: mixed layer depth  (rho=rho0+zdcrit) (m)
261
262   USE ldfslp , ONLY :              & 
263      lk_ldfslp  =>  lk_ldfslp     !: slopes flag
264#if   defined key_ldfslp
265   !! direction of lateral diffusion (momentum  tracers)
266   USE ldfslp , ONLY :              & 
267      uslp       =>   uslp    ,  & !: i-direction slope at u-, w-points
268      vslp       =>   vslp    ,  & !: j-direction slope at v-, w-points
269      wslpi      =>   wslpi   ,  & !: i-direction slope at u-, w-points
270      wslpj      =>   wslpj        !: j-direction slope at v-, w-points
271#endif
272
273   !! ocean forcings runoff
274   USE flxrnf , ONLY :              &   
275      upsrnfh =>   upsrnfh ,  & !: mixed adv scheme in runoffs vicinity (hori.)
276      upsrnfz =>   upsrnfz ,  & !: mixed adv scheme in runoffs vicinity (vert.)
277      upsadv  =>   upsadv       !: mixed adv scheme in straits vicinity (hori.)
278
279END MODULE oce_trc
Note: See TracBrowser for help on using the repository browser.