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 branches/2011/dev_r2787_LOCEAN3_TRA_TRP/NEMOGCM/NEMO/TOP_SRC/PISCES – NEMO

source: branches/2011/dev_r2787_LOCEAN3_TRA_TRP/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zint.F90 @ 2819

Last change on this file since 2819 was 2819, checked in by cetlod, 13 years ago

Improvment of branch dev_r2787_LOCEAN3_TRA_TRP

  • Property svn:keywords set to Id
File size: 3.3 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 oce_trc         !  shared variables between ocean and passive tracers
16   USE trc             !  passive tracers common variables
17   USE sms_pisces      !  PISCES Source Minus Sink variables
18
19   IMPLICIT NONE
20   PRIVATE
21
22   PUBLIC   p4z_int 
23   REAL(wp) ::   xksilim = 16.5e-6_wp   ! Half-saturation constant for the Si half-saturation constant computation
24
25   !!----------------------------------------------------------------------
26   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
27   !! $Id$
28   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
29   !!----------------------------------------------------------------------
30CONTAINS
31
32   SUBROUTINE p4z_int
33      !!---------------------------------------------------------------------
34      !!                     ***  ROUTINE p4z_int  ***
35      !!
36      !! ** Purpose :   interpolation and computation of various accessory fields
37      !!
38      !!---------------------------------------------------------------------
39      INTEGER  ::   ji, jj                 ! dummy loop indices
40      REAL(wp) ::   zvar                   ! local variable
41      !!---------------------------------------------------------------------
42
43      ! Computation of phyto and zoo metabolic rate
44      ! -------------------------------------------
45      tgfunc (:,:,:) = EXP( 0.063913 * tsn(:,:,:,jp_tem) )
46      tgfunc2(:,:,:) = EXP( 0.07608  * tsn(:,:,:,jp_tem) )
47
48      ! Computation of the silicon dependant half saturation
49      ! constant for silica uptake
50      ! ---------------------------------------------------
51      DO ji = 1, jpi
52         DO jj = 1, jpj
53            zvar = trn(ji,jj,1,jpsil) * trn(ji,jj,1,jpsil)
54            xksimax(ji,jj) = MAX( xksimax(ji,jj), ( 1.+ 7.* zvar / ( xksilim * xksilim + zvar ) ) * 1e-6 )
55         END DO
56      END DO
57      !
58      IF( nday_year == nyear_len(1) ) THEN
59         xksi    = xksimax
60         xksimax = 0._wp
61      ENDIF
62      !
63   END SUBROUTINE p4z_int
64
65#else
66   !!======================================================================
67   !!  Dummy module :                                   No PISCES bio-model
68   !!======================================================================
69CONTAINS
70   SUBROUTINE p4z_int                   ! Empty routine
71      WRITE(*,*) 'p4z_int: You should not have seen this print! error?'
72   END SUBROUTINE p4z_int
73#endif 
74
75   !!======================================================================
76END MODULE  p4zint
Note: See TracBrowser for help on using the repository browser.