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.npzd.h in trunk/NEMO/TOP_SRC/SMS – NEMO

source: trunk/NEMO/TOP_SRC/SMS/trcini.npzd.h @ 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: 2.3 KB
Line 
1
2CCC $Header$ 
3CCC  TOP 1.0 , LOCEAN-IPSL (2005) 
4C This software is governed by CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
5C ---------------------------------------------------------------------------
6C $Id$
7CCC---------------------------------------------------------------------
8CCC
9CCC                        trcini.npzd.h
10CCC                       ***************
11CCC
12CCC  purpose :
13CCC  ---------
14CCC     special initialisation for NPZD model
15CCC
16CCC  modifications :
17CC   -------------
18CC      original    : 99-09 (M. Levy) 
19CC      additions   : 00-12 (E. Kestenare) add sediment computations
20CCC
21CCC---------------------------------------------------------------------
22CCC  opa8, ipsl (11/96)
23CCC---------------------------------------------------------------------
24CCC local variables
25      REAL ztest
26C
27C 2. initialization of field for optical model
28C --------------------------------------------
29C
30      DO jj=1,jpj
31        DO ji=1,jpi
32          xze(ji,jj)=5.
33        END DO
34      END DO
35
36      DO jk=1,jpk
37        DO jj=1,jpj
38          DO ji=1,jpi
39            xpar(ji,jj,jk)=0.
40          END DO
41        END DO
42      END DO
43C
44C 3. initialization for passive tracer remineralisation-damping  array
45C -------------------------------------------------------------------------
46C
47      DO jn=1,jptra
48        DO jk=1,jpk
49          remdmp(jk,jn)=tminr
50        END DO
51      END DO
52C
53      IF(lwp) THEN
54          WRITE(numout,*) ' '
55          WRITE(numout,*) ' trcini: compute remineralisation-damping  '
56          WRITE(numout,*) '         arrays for tracers'
57      ENDIF
58C
59C 4. sediments: no martin's remineralisation profile
60C -------------------------------------------------------------------------
61C
62      dminl = 0.
63      dmin3 = 0. 
64C
65C    CALCUL DU MASK DE COTE
66C
67        cmask=0.
68        do ji=2,jpi-1
69          do jj=2,jpj-1
70            if (tmask(ji,jj,1).eq.1) then
71             ztest=tmask(ji+1,jj,1)*tmask(ji-1,jj,1)*tmask(ji,jj+1,1)
72     .             *tmask(ji,jj-1,1)
73             if (ztest.eq.0) cmask(ji,jj)=1.
74             endif
75          end do
76        end do
77
78        cmask(1,:)=cmask(jpi-1,:)
79        cmask(jpi,:)=cmask(2,:)
80C
81C     CALCUL DE LA SURFACE COTIERE
82C
83         do ji=2,jpi-1
84          do jj=2,jpj-1
85          areacot=areacot+e1t(ji,jj)*e2t(ji,jj)*cmask(ji,jj)
86          end do
87         end do
88
Note: See TracBrowser for help on using the repository browser.