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

source: trunk/NEMO/TOP_SRC/PISCES/p4zint.F90 @ 1715

Last change on this file since 1715 was 1715, checked in by smasson, 15 years ago

move daymod public variables in dom_oce, see ticket:590

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1MODULE p4zint
2   !!======================================================================
3   !!                         ***  MODULE p4zint  ***
4   !! TOP :   PISCES interpolation and computation of various accessory fields
5   !!======================================================================
6   !! History :   1.0  !  2004-03 (O. Aumont) Original code
7   !!             2.0  !  2007-12  (C. Ethe, G. Madec)  F90
8   !!----------------------------------------------------------------------
9#if defined key_pisces
10   !!----------------------------------------------------------------------
11   !!   'key_pisces'                                       PISCES bio-model
12   !!----------------------------------------------------------------------
13   !!   p4z_int        :  interpolation and computation of various accessory fields
14   !!----------------------------------------------------------------------
15   USE dom_oce         ! ocean space and time domain variables
16   USE oce_trc         !
17   USE trc
18   USE sms_pisces
19
20   IMPLICIT NONE
21   PRIVATE
22
23   PUBLIC   p4z_int 
24
25   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &   !:
26      tgfunc,            &  !:  Temp. dependancy of various biological rates
27      tgfunc2               !:  Temp. dependancy of mesozooplankton rates
28
29   !! * Module variables
30   REAL(wp) :: &
31      xksilim = 16.5E-6        ! Half-saturation constant for the computation of the Si half-saturation constant
32
33
34   !!----------------------------------------------------------------------
35   !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)
36   !! $Id$
37   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
38   !!----------------------------------------------------------------------
39
40CONTAINS
41
42   SUBROUTINE p4z_int
43      !!---------------------------------------------------------------------
44      !!                     ***  ROUTINE p4z_int  ***
45      !!
46      !! ** Purpose :   interpolation and computation of various accessory fields
47      !!
48      !! ** Method  : - ???
49      !!---------------------------------------------------------------------
50      !!
51      INTEGER  ::   ji, jj
52      REAL(wp) ::   zdum
53      !!---------------------------------------------------------------------
54
55      ! Computation of phyto and zoo metabolic rate
56      ! -------------------------------------------
57
58      tgfunc (:,:,:) = EXP( 0.063913 * tn(:,:,:) )
59      tgfunc2(:,:,:) = EXP( 0.07608  * tn(:,:,:) )
60
61      ! Computation of the silicon dependant half saturation
62      ! constant for silica uptake
63      ! ---------------------------------------------------
64
65      DO ji = 1, jpi
66         DO jj = 1, jpj
67            zdum = trn(ji,jj,1,jpsil) * trn(ji,jj,1,jpsil)
68            xksimax(ji,jj) = MAX( xksimax(ji,jj), ( 1.+ 7.* zdum / ( xksilim * xksilim + zdum ) ) * 1e-6 )
69         END DO
70      END DO
71
72      IF( nday_year == 365 ) THEN
73         xksi    = xksimax
74         xksimax = 0.e0
75      ENDIF
76      !
77   END SUBROUTINE p4z_int
78
79#else
80   !!======================================================================
81   !!  Dummy module :                                   No PISCES bio-model
82   !!======================================================================
83CONTAINS
84   SUBROUTINE p4z_int                   ! Empty routine
85      WRITE(*,*) 'p4z_int: You should not have seen this print! error?'
86   END SUBROUTINE p4z_int
87#endif 
88
89   !!======================================================================
90END MODULE  p4zint
Note: See TracBrowser for help on using the repository browser.