1 | MODULE 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 | !!---------------------------------------------------------------------- |
---|
30 | CONTAINS |
---|
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 | !!====================================================================== |
---|
73 | CONTAINS |
---|
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 | !!====================================================================== |
---|
80 | END MODULE p4zint |
---|