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

source: trunk/NEMO/TOP_SRC/SMS/trcini.lobster1.h90 @ 262

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

nemo_v1_update_005:RB+OA: Update and rewritting of (part of) the TOP component.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1!!---------------------------------------------------------------------
2!!
3!!                        trcini.lobster1.h
4!!  purpose :
5!!  ---------
6!!     specific initialisation for lobster1 model
7!!
8!!   History :
9!!   --------
10!!      original    : 99-09 (M. Levy)
11!!      additions   : 00-12 (0. Aumont, E. Kestenare)
12!!                           add sediment computations
13!!    03-05 : O. Aumont and A. El Moussaoui F90 
14!!---------------------------------------------------------------------
15!!  OPA.9
16!!---------------------------------------------------------------------
17!! local declarations
18!! ==================
19      INTEGER ji,jj,jk
20      REAL zdm0(jpi,jpj,jpk),zrro(jpi,jpj),zfluo,zfluu
21      REAL ztest
22
23!! 1. initialization of fields for optical model
24!! --------------------------------------------
25
26          xze(:,:)=5.
27          xpar(:,:,:)=0.
28
29!! 2. initialization for passive tracer remineralisation-damping  array
30!! -------------------------------------------------------------------------
31 
32      DO jn=1,jptra
33          remdmp(:,jn)=tminr
34      END DO
35
36      IF(lwp) THEN
37          WRITE(numout,*) ' '
38          WRITE(numout,*) ' trcini: compute remineralisation-damping  '
39          WRITE(numout,*) '         arrays for tracers'
40      ENDIF
41
42!! 3. initialization of biological variables
43!! ------------------------------------------
44
45!! Calculate vertical distribution of newly formed biogenic poc
46!! in the water column in the case of max. possible bottom depth
47!! ------------------------------------------------------------
48
49      zdm0   = 0.
50      zrro = 1.
51      DO jk = jpkb,jpkm1
52            zfluo = (fsdepw(:,:,jk)/fsdepw(:,:,jpkb))**xhr
53            zfluu = (fsdepw(:,:,jk+1)/fsdepw(:,:,jpkb))**xhr
54            IF (zfluo.gt.1.) zfluo = 1.
55            zdm0(:,:,jk) = zfluo-zfluu
56            IF (jk.le.jpkb-1) zdm0(:,:,jk)=0.
57            zrro(:,:) = zrro(:,:)-zdm0(:,:,jk)
58      ENDDO
59!!!
60
61          zdm0(:,:,jpk) = zrro(:,:)
62
63!! Calculate vertical distribution of newly formed biogenic poc
64!! in the water column with realistic topography (first "dry" layer
65!! contains total fraction, which has passed to the upper layers)
66!! ----------------------------------------------------------------------
67
68      dminl = 0.
69      dmin3 = zdm0
70
71      DO jk = 1,jpk
72         DO jj = 1,jpj
73           DO ji = 1,jpi
74
75            IF(tmask(ji,jj,jk) == 0) THEN
76                dminl(ji,jj) = dminl(ji,jj)+dmin3(ji,jj,jk)
77                dmin3(ji,jj,jk) = 0.0
78            ENDIF
79
80          ENDDO
81        ENDDO
82      ENDDO
83
84      DO jj = 1,jpj
85        DO ji = 1,jpi
86          IF (tmask(ji,jj,1) == 0) dmin3(ji,jj,1) = 0.
87        ENDDO
88      ENDDO
89
90!! CALCUL DU MASK DE COTE
91!! ----------------------   
92        cmask=0.
93        do ji=2,jpi-1
94          do jj=2,jpj-1
95            if (tmask(ji,jj,1) == 1) then
96             ztest=tmask(ji+1,jj,1)*tmask(ji-1,jj,1)*tmask(ji,jj+1,1)
97     .             *tmask(ji,jj-1,1)
98             if (ztest == 0) cmask(ji,jj)=1.
99             endif
100          end do
101        end do
102
103        cmask(1,:)=cmask(jpi-1,:)
104        cmask(jpi,:)=cmask(2,:)
105
106
107!! CALCUL DE LA SURFACE COTIERE
108!! ----------------------------
109         areacot=0.
110         do ji=2,jpi-1
111            do jj=2,jpj-1
112               areacot=areacot+e1t(ji,jj)*e2t(ji,jj)*cmask(ji,jj)
113            end do
114         end do
115
Note: See TracBrowser for help on using the repository browser.