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

source: branches/2012/dev_NOC_MERCATOR_2012/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zint.F90 @ 3649

Last change on this file since 3649 was 3294, checked in by rblod, 12 years ago

Merge of 3.4beta into the trunk

  • 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 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      IF( nn_timing == 1 )  CALL timing_start('p4z_int')
44      !
45      ! Computation of phyto and zoo metabolic rate
46      ! -------------------------------------------
47      tgfunc (:,:,:) = EXP( 0.063913 * tsn(:,:,:,jp_tem) )
48      tgfunc2(:,:,:) = EXP( 0.07608  * tsn(:,:,:,jp_tem) )
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
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 )
57         END DO
58      END DO
59      !
60      IF( nday_year == nyear_len(1) ) THEN
61         xksi    = xksimax
62         xksimax = 0._wp
63      ENDIF
64      !
65      IF( nn_timing == 1 )  CALL timing_stop('p4z_int')
66      !
67   END SUBROUTINE p4z_int
68
69#else
70   !!======================================================================
71   !!  Dummy module :                                   No PISCES bio-model
72   !!======================================================================
73CONTAINS
74   SUBROUTINE p4z_int                   ! Empty routine
75      WRITE(*,*) 'p4z_int: You should not have seen this print! error?'
76   END SUBROUTINE p4z_int
77#endif 
78
79   !!======================================================================
80END MODULE  p4zint
Note: See TracBrowser for help on using the repository browser.