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_PISCES_improvment/NEMOGCM/NEMO/TOP_SRC/PISCES – NEMO

source: branches/2011/dev_r2787_PISCES_improvment/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zint.F90 @ 2823

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

Add new parameterisation in PISCES, see ticket #854

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