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/UKMO/dev_r10171_test_crs_AMM7/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z – NEMO

source: branches/UKMO/dev_r10171_test_crs_AMM7/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zint.F90 @ 10207

Last change on this file since 10207 was 10207, checked in by cmao, 6 years ago

remove svn keyword

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